Technical specification

This technical specification explains the content of the OS Maps API, and the methods that you can use to call it. If you are not familiar with the OS Maps API you may want to read the overview documentation before proceeding.

If you are not familiar with the OS Maps API please read the overview documentation before proceeding.

Core concepts

This specification does not cover core concepts that apply to all Ordnance Survey APIs.

Please read the following pages to learn more about OS API core concepts:

API reference

OS Maps API is available using the Open Geospatial Consortium Web Map Tile Service (OGC WMTS) standard and as ZXY.

Access and download data for a specific tile

GEThttps://api.os.uk/maps/raster/v1/zxy/{layer}/{z}/{x}/{y}.png
Authorization
Path parameters
layer*enum

The tile set layer that will be requested.

Road_27700Road_3857Outdoor_27700Outdoor_3857Light_27700Light_3857Leisure_27700
z*integer (int32)

Zoom level

x*integer (int32)

X coordinate

y*integer (int32)

Y coordinate

Response

Tile image retrieved successfully

Body
any
Request
const response = await fetch('https://api.os.uk/maps/raster/v1/zxy/{layer}/{z}/{x}/{y}.png', {
    method: 'GET',
    headers: {},
});
const data = await response.json();

Access and download data for a specific tile

GEThttps://api.os.uk/maps/raster/v1/wmts
Authorization
Query parameters
Response

Tile image retrieved successfully

Body
any
Request
const response = await fetch('https://api.os.uk/maps/raster/v1/wmts', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "service": {
    "title": "text",
    "description": "text",
    "version": "text"
  },
  "operations": [
    "text"
  ],
  "tileMatrixSets": [
    "text"
  ],
  "layers": [
    "text"
  ]
}

Last updated