# Overpass API

Category: [Location Information](https://free-web-services.com/web-services/geo/location-info/)  
Page: https://free-web-services.com/web-services/geo/location-info/overpass-api.html  
Documentation: https://wiki.openstreetmap.org/wiki/Overpass_API

The Overpass API lets you query OpenStreetMap data: find all cafés in a city, all bus stops along a route, or every object with a certain tag in an area. Queries use the Overpass QL language (try them first on overpass-turbo.eu) and return JSON, XML or CSV. Free on the public servers with fair use; heavy users should run their own instance.

- API key: Not needed
- Pricing: Free on the public servers with fair use; heavy users should run their own instance.
- From the browser: Yes (CORS)
- Formats: JSON, XML
- Interface: REST, HTTP-GET
- Provider: wiki.openstreetmap.org
- Last checked: Working on November 16th, 2026

Example request:

```sh
curl 'https://overpass-api.de/api/interpreter?data=[out:json];node(51.50,-0.13,51.51,-0.12)[amenity=cafe];out%205;'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

