search: Search for locations

API: open-meteo.com:open-meteo
Endpoint: /v1/search
Response format: application/json
Auth: unknown
Method: GET
Last Status: 200
Latency: 154ms

Description

Geocoding service that converts location names to geographic coordinates. Returns multiple results with detailed information including timezone, elevation, country, and administrative divisions. Use this to find coordinates for weather API calls.

From spec: Search for locations by name and return coordinates and metadata.

Usage Tips

- Supports fuzzy matching for city names - Results sorted by population (largest first) - Use 'count' parameter to limit results (default 10, max 100) - Supports multiple languages via 'language' parameter - Filter by country_code or feature_code for better precision

Parameters (5)

count (integer, query, optional, default: 10)

Number of search results to return (1-100).

Constraints: {'minimum': 1, 'maximum': 100}

countryCode (string, query, optional)

ISO-3166-1 alpha2 country code to filter results.

format (string, query, optional, default: json)

Constraints: {'enum': ['json', 'protobuf']}

language (string, query, optional, default: en)

Return translated results if available.

name (string, query, required)

Location name to search for. Must be at least 2 characters.

Examples (1)

Search for locations named 'Berlin' probe-gate

Demonstrates geocoding search to find locations by name

curl 'https://geocoding-api.open-meteo.com/v1/search?name=Berlin&count=5&language=en&format=json'
import requests

resp = requests.get(
    "https://geocoding-api.open-meteo.com/v1/search",
    params={
        'name': 'Berlin',
        'count': '5',
        'language': 'en',
        'format': 'json',
    },
)
data = resp.json()
import zingu_apis

api = zingu_apis.api("open-meteo")
result = api.fetch("v1/search", name="Berlin", count=5, language="en", format="json")

for item in result:
    print(item)
const resp = await fetch("https://geocoding-api.open-meteo.com/v1/search?name=Berlin&count=5&language=en&format=json");
const data = await resp.json();

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-04-16 01:18:14.696285 200 154ms
2026-04-15 00:27:06.946542 200 182ms
2026-04-14 02:23:17.012557 200 154ms
2026-04-12 16:33:12.826135 200 188ms
2026-04-10 00:41:26.584735 200 101ms
2026-04-09 03:11:34.730009 200 147ms