O
OpenStreetMap API v0.6
Details
- URL
-
https://www.openstreetmap.org/api/0.6 - Docs
- https://wiki.openstreetmap.org/wiki/API_v0.6
Authentication
OpenStreetMap OAuth 2.0 application (client ID, optional client secret, and user-granted access token) oauth2 discovered Set up OAuth ↗
Authorization: Bearer <credential> Log in to your OpenStreetMap account, then open OAuth 2 applications from your user settings and create a new application at New OAuth 2 application. Set the application name, allowed redirect URI(s), whether it is a confidential application, and the scopes you may request. After creation, save the client_id; save the client_secret too if you marked it confidential, because the secret is only shown once. Then send the user to https://www.openstreetmap.org/oauth2/authorize and exchange the returned code at https://www.openstreetmap.org/oauth2/token to obtain a bearer access token. OpenStreetMap supports Authorization Code and Authorization Code with PKCE; tokens currently do not expire automatically.