OpenCage
communityGeocoding API using open data sources like OpenStreetMap with forward and reverse geocoding.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
GET
https://api.opencagedata.com/geocode/v1/jsonForward geocode
Parameters
qaddress or place (stringrequiredlimitresults (integeroptionallanguageen (stringoptionalcountrycodeISO country (stringoptionalReturns
results[] with formatted, geometry.lat, geometry.lng, components, confidence, boundsGET
https://api.opencagedata.com/geocode/v1/jsonReverse geocode
Parameters
qlat+lng (stringrequiredlanguageen (stringoptionalReturns
results[] with formatted, components.road, components.city, components.country, confidence, annotations.timezone