ZXY
API test authentication
The Open API block allows you to test OS APIs directly from the page with example data and parameters. To use this feature, you will need to add your API Key or OAuth2 token to the authentication field.
For help generating an API Key or OAuth2 token, please see the Getting started with an API project or OAuth2 documentation.
Authorizations
Path parameters
layerstring · enumRequiredPossible values:
The tile set layer that will be requested.
zinteger · int32Required
Zoom level
xinteger · int32Required
X coordinate
yinteger · int32Required
Y coordinate
Responses
200
Tile image retrieved successfully
image/png
get
GET /maps/raster/v1/zxy/{layer}/{z}/{x}/{y}.png HTTP/1.1
Host: api.os.uk
Accept: */*
200
Tile image retrieved successfully
No content
Example Request
https://api.os.uk/maps/raster/v1/zxy/Outdoor_27700/7/323/489.png?key=INSERT_API_KEY
Last updated
Was this helpful?