> 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-downloads-api/getting-started.md).

# Getting started

The following pages provide an overview of how to get started using the OS Downloads API. They cover the core elements on how to get started automating the download of OS OpenData and OS Premium data.

{% hint style="info" %}
If you are not familiar with the OS Downloads API, please read the [overview documentation](/os-apis/accessing-os-apis/os-downloads-api.md) before proceeding.
{% endhint %}

## What you need?

* A basic understanding of automatic processing of JSON data and basic procedural (if-then-else) programming
* A text editor like Visual Studio Code
* A working installation of [Node.js](https://nodejs.org/) and the popular [axios](https://github.com/axios/axios) module
* For [Premium data downloads](/os-apis/accessing-os-apis/os-downloads-api/getting-started/automating-os-premium-data-downloads.md), OS Downloads API added to an API project in the OS Data Hub with an API Key; see [Getting started with an API project](/os-apis/core-concepts/getting-started-with-an-api-project.md) for more information

## Instructions

{% hint style="info" %}
Please read these pages in conjunction with the API's [Technical specification](/os-apis/accessing-os-apis/os-downloads-api/technical-specification.md).
{% endhint %}

The following pages provide instructions to get started with OS OpenData and Premium data downloads:

* [Automating OS OpenData downloads](/os-apis/accessing-os-apis/os-downloads-api/getting-started/automating-os-opendata-downloads.md)
* [Automating OS Premium data downloads](/os-apis/accessing-os-apis/os-downloads-api/getting-started/automating-os-premium-data-downloads.md)


---

# 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-downloads-api/getting-started.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.
