Skip to main content
The geocode endpoint lets you search for a location by name and retrieve its geographic coordinates along with administrative metadata. It is backed by the Open-Meteo Geocoding API and is oriented toward Latin American regions. You can use it to resolve a user-entered place name into latitude/longitude before calling other endpoints such as /agri/advisor or /fires/hotspots.

Endpoint

Parameters

string
required
Location name to search. Can be a city, municipality, region, or other place name. Example: "Oaxaca", "Valle del Cauca", "Cochabamba".
integer
default:"5"
Maximum number of results to return. The API returns the top matches ranked by relevance.

Response

array
required
Array of matching locations. May be empty if no results are found.

Error codes

Example