API
OpenStreetMap has an editing API for fetching and saving raw geodata from/to the OpenStreetMap database — this is the entry page for the documentation. If you just want to embed a map into a webpage, you don't want this API. Use a web map library instead. Alternatively, consider the Overpass API which provides read-only API access.
REST specifications for the editing API
- API v0.6 - (currently used, as of April 2009 including multiple minor changes afterwards)
API v0.5(no longer used as of April 2009); though this document may still be of useAPI v0.4(no longer used as of October 2007)API v0.3(no longer used as of May 2007)
Wiki pages are labelled with {{Not 0.6 compatible}} if they describe something which does not, or may not work with the 0.6 API version.
Instances
Implementations and scripting
The current full serverside implementation is the Rails port.
For other uses, see Software libraries.
Terms of use
The editing API is provided in order to edit the map data, not for read-only purposes or projects. Clients may be blocked without notice if they are affecting the service level for others or causing data corruption. See our API usage policy.
See Import/Guidelines and Automated Edits code of conduct for more information. Imports/automated edits which do not follow these guidelines might be reverted!
Summaries of editing API changes
- API changes between v0.5 and v0.6
- API changes between v0.4 and v0.5
- API changes between v0.3 and v0.4
Links
- API v0.7 - Brainstorming for the next version of the OSM API