> For the complete documentation index, see [llms.txt](https://docs.os.uk/os-apis/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.os.uk/os-apis/accessing-os-apis/os-ngd-api-tiles/technical-specification/tiles.md).

# Tiles

## GET /collections/{collectionId}/tiles/{tileMatrix}/{tileRow}/{tileCol}

> Retrieve a vector tile from a collection for Web Mercator Quad EPSG: 3857 tile matrix set.

```json
{"openapi":"3.0.1","info":{"title":"OS NGD API - Tiles","version":"v1.8"},"servers":[{"description":"NGD OGC API - Tiles server","url":"https://api.os.uk/maps/vector/ngd/ota/v1"}],"security":[{"api-key":[],"api-key-header":[],"oauth2":[]}],"components":{"securitySchemes":{"api-key":{"type":"apiKey","name":"key","in":"query"}},"schemas":{"AllCollections":{"enum":["ngd-base","asu-bdy","wtr-ctch","trn-ntwk-railway","wtr-tidalboundary"],"type":"string"},"exceptionDto":{"description":"JSON schema for exceptions based on RFC 7807","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"integer"},"description":{"type":"string"},"help":{"type":"string"}},"required":["type"],"title":"Exception Schema","type":"object"}}},"paths":{"/collections/{collectionId}/tiles/{tileMatrix}/{tileRow}/{tileCol}":{"get":{"operationId":"3857.collection.vector.getTile","parameters":[{"description":"Identifier selecting one of the scales defined in the TileMatrixSet and representing the scaleDenominator the tile.","in":"path","name":"tileMatrix","required":true,"schema":{"type":"string"}},{"description":"Row index of the tile on the selected TileMatrix.","in":"path","name":"tileRow","required":true,"schema":{"minimum":0,"type":"integer"}},{"description":"Column index of the tile on the selected TileMatrix.","in":"path","name":"tileCol","required":true,"schema":{"minimum":0,"type":"integer"}},{"description":"Local identifier of a collection","in":"path","name":"collectionId","required":true,"schema":{"$ref":"#/components/schemas/AllCollections"}}],"responses":{"200":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"A vector tile returned as a response."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/exceptionDto"}}},"description":"The request was not supported."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/exceptionDto"}}},"description":"The requested resource does not exist on the server. For example, a path parameter had an incorrect value."},"405":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/exceptionDto"}}},"description":"The HTTP method requested is not supported. This endpoint only supports 'GET' requests."},"406":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/exceptionDto"}}},"description":"A request header value was not supported."},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/exceptionDto"}}},"description":"A server error occurred."},"504":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/exceptionDto"}}},"description":"Gateway Timeout."}},"summary":"Retrieve a vector tile from a collection for Web Mercator Quad EPSG: 3857 tile matrix set.","tags":["Vector Tiles"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.os.uk/os-apis/accessing-os-apis/os-ngd-api-tiles/technical-specification/tiles.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
