Command line Geocoding Tutorial

Using the OpenCage Geocoding API with cURL

$ curl 'https://api.opencagedata.com/geocode/v1/json?q=-23.5373732,-46.8374628&pretty=1&key=YOUR-API-KEY' 

Using the OpenCage Geocoding API with WGET

$ WGET 'https://api.opencagedata.com/geocode/v1/json?q=-23.5373732,-46.8374628&pretty=1&key=YOUR-API-KEY' -O results.json
Start your free trial

2,500 API requests per day.

No credit card required.