> For the complete documentation index, see [llms.txt](https://docs.os.uk/more-than-maps/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/more-than-maps/using-os-mapping-apis/os-apis-for-developers.md).

# OS APIs for Developers

<table data-view="cards"><thead><tr><th align="center"></th><th align="center"></th><th align="center"></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td align="center">Code examples</td><td align="center">Helping you start building solutions with OS data.</td><td align="center">Here you'll find examples of our APIs in use. You can copy and paste the code to start building your own innovative projects.</td><td><a href="https://labs.os.uk/public/os-data-hub-examples/">https://labs.os.uk/public/os-data-hub-examples/</a></td><td data-object-fit="cover" data-alt="Map of Western GB"><a href="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-f4877836bd471cfca50f1e43bcc7c684399c5cb5%2Fbasemaps.png?alt=media">basemaps.png</a></td></tr><tr><td align="center">OS NGD API – Features</td><td align="center">These examples will provide you with an introduction to the OS NGD API – Features.</td><td align="center">They focus on the <code>/collections</code> resource which lists the feature collections that are offered through the API.</td><td><a href="https://labs.os.uk/public/osngd/os-ngd-api-features/">https://labs.os.uk/public/osngd/os-ngd-api-features/</a></td><td data-object-fit="cover" data-alt="Map of Westminster"><a href="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-3351499034454920237e08c5842ca29e592e9431%2Fos-ngd-api-features.x5480bf21.webp?alt=media">os-ngd-api-features.x5480bf21.webp</a></td></tr><tr><td align="center">OS NGD API – Tiles</td><td align="center"></td><td align="center">These examples will provide you with an introduction to the OS NGD API – Tiles.</td><td><a href="https://labs.os.uk/public/osngd/os-ngd-api-tiles/">https://labs.os.uk/public/osngd/os-ngd-api-tiles/</a></td><td data-object-fit="cover" data-alt="Map of an urban area"><a href="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-5bac2c4ba34be12a8a92dfb734f1b38ecde43ad8%2Fbanner_3200x800.png?alt=media">banner_3200x800.png</a></td></tr><tr><td align="center">OS API branding</td><td align="center">Branding for users developing solutions using OS data supplied via our APIs.</td><td align="center"></td><td><a href="https://github.com/OrdnanceSurvey/os-api-branding">https://github.com/OrdnanceSurvey/os-api-branding</a></td><td data-object-fit="cover" data-alt="Map of Ambleside"><a href="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-b087b57078de4614784ea98d56a9dc6a1c2f4f7e%2Fos-api-branding-default.png?alt=media">os-api-branding-default.png</a></td></tr></tbody></table>

## OS API Wrappers

Our OS API wrappers make it easier for developers to interact with our APIs using a preferred language, providing a single and intuitive interface for developing and performing analysis on OS data.

<table data-view="cards"><thead><tr><th align="center"></th><th align="center"></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td align="center">osdatahub (JavaScript)</td><td align="center">JavaScript package that makes it easier to interact with the OS Data Hub APIs.</td><td><a href="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-bbef2cd1868d0e15c4c04f76fd04106e7740621e%2F1_bthRXJ_FBspSEijOWIRM2A.png?alt=media">1_bthRXJ_FBspSEijOWIRM2A.png</a></td><td><a href="https://www.npmjs.com/package/osdatahub">https://www.npmjs.com/package/osdatahub</a></td></tr><tr><td align="center">osdatahub (Python)</td><td align="center">Designed to make data from the OS Data Hub APIs readily accessible to Python developers.</td><td><a href="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-c10e2e79e77f0d77f07494de6eae8de611fa53b5%2Fpython-coding-games-blog-header.png?alt=media">python-coding-games-blog-header.png</a></td><td><a href="https://pypi.org/project/osdatahub/">https://pypi.org/project/osdatahub/</a></td></tr><tr><td align="center">osdatahub (R)</td><td align="center">R package for easier interaction with the Ordnance Survey Data Hub.</td><td><a href="https://3774974716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzIfdYInJITdcxaLLMhlD%2Fuploads%2Fgit-blob-f63e9783a5e24eb6d13bd6e3818f791650f53a77%2FR_logo.png?alt=media">R_logo.png</a></td><td><a href="https://cran.r-project.org/web/packages/osdatahub/index.html">https://cran.r-project.org/web/packages/osdatahub/index.html</a></td></tr></tbody></table>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.os.uk/more-than-maps/using-os-mapping-apis/os-apis-for-developers.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
