https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/webmaps/osm/light-gray/base
Returns the JSON for OSM Light Gray Base as a web map.
OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world. This vector basemap is based on the Daylight map distribution of OSM data and is hosted by Esri. It provides a detailed base layer for the world featuring a light neutral style with minimal colors.
Data providers:
Map data © OpenStreetMap contributors, Microsoft, Facebook, Google, Esri Community Maps contributors, Map layer by Esri. For more details see Esri and Data Attribution.
Mature support:
OSM basemap styles are now in mature support. This means OSM basemap styles and data are no longer being updated and will be removed in the future. For more information, see the Overture Maps Data in ArcGIS blog. Please use Open Basemaps Light Gray Base instead.
Note:
This endpoint does not support worldviews. Making a request to this endpoint with a worldview
query parameter will result in a bad request
.
Query parameters
Name | Type | Required | Default value | Description |
---|---|---|---|---|
token | string |
| The authentication token, used to access the Basemap styles service. | |
f | string | json | Optional, case-sensitive parameter to specify the format in which responses are given. Can either be json or pjson. |
token
The authentication token, used to access the Basemap styles service.
The token
parameter can be:
- an API key
- a short-lived token
API keys and short-lived tokens must be created from an account with the premium:user:basemaps
privilege.
Developer guide: To learn more, go to Security and authentication.
This parameter is required unless you supply an access token in the request header with one of the following keys using the "Bearer" scheme:
Authorization: Bearer <YOUR_TOKEN>
X-Esri-Authorization: Bearer <YOUR_TOKEN>
f
Optional, case-sensitive parameter to specify the format in which responses are given. Can either be json or pjson.
- Default
- json
Enumerated values
Response status
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | A successful response for a webmap request. | Webmap |
400 | Bad Request | Invalid query parameters / Incorrect portal item type. | Error |
401 | Unauthorized | Authentication Error. The API key or token is missing, invalid or expired. | Error |
403 | Forbidden | The requested resource cannot be accesed because of incorrent sharing permissions. | Error |
5XX | **Server Error** | An error occurred on the server. | Error |
Examples
Request
# You can also use wget
curl -X GET https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/webmaps/osm/light-gray/base \
-H 'Authorization: Bearer <YOUR_TOKEN>'