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 geocoding now with a free trial

2,500 API requests per day, for as long as you like.

No credit card required.

Start your free trial