Location Information

Overpass API

by wiki.openstreetmap.org

Location Information Added on October 31st, 2026 Checked and working on November 16th, 2026
Visit wiki.openstreetmap.org →

What it does

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
  • HTTP-GET
  • JSON
  • REST
  • XML

At a glance

API key
Not needed · More APIs with no key
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

More information: https://wiki.openstreetmap.org/wiki/Overpass_API

Is this your service? Show that it is listed

Put this badge on your website or in your README; it links to this page. About the badge

Listed on Free Web Services

wiki.openstreetmap.org
Overpass API

Example request

curl

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

JavaScript

const response = await fetch("https://overpass-api.de/api/interpreter?data=[out:json];node(51.50,-0.13,51.51,-0.12)[amenity=cafe];out%205;");
const data = await response.json();
console.log(data);

Python

import requests

response = requests.get(
    "https://overpass-api.de/api/interpreter?data=[out:json];node(51.50,-0.13,51.51,-0.12)[amenity=cafe];out%205;",
    timeout=30,
)
print(response.json())

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

Did it work for you?

Tell us what you found when you tried Overpass API.