Overpass API User's Manual

Find Objects
Counting Objects
Analysing data
More information

Further Map APIs

In addition to requests in the query language, the Overpass API also offers some ready-made API calls. The majority of them exists for the purpose of backwards compatibility, and all of them are emulated by executing the corresponding Overpass QL request. They thus only need coordinates.

The Export of the Main Site

In the export tab of the OSM main site, there is a feature to export all data by Overpass API. It adheres to the semantics of the OSM main site, but it can export substantially larger extracts. This is driven by a simple URL:


Here the order of the coordinates is in the style of legacy interfaces: western edge, southern edge, eastern edge, northern edge. Please note that it is different from the standard order in Overpass QL.

This API call executes the following request:

( node(51.477,-0.001,51.478,0.001);
( ._;
  ( rel(bn)->.a;
out meta;

Thus the result contains:

  1. all nodes in the given bounding box
  2. all ways that have at least one node in this bounding box
  3. all nodes used by these ways
  4. all relations that contain one or more elements from (1.) to (3.) as members
  5. all relations that contain one or more relations from (4.) as members

and it is printed the degree of detail with version and timestamp.

Not contained are ways that cross the bounding box without having any node inside the bounding box. How to fix that problem is explained in the preceding subsection, in particular in the section Grand Total.



next: Polygon and Around