> For the complete documentation index, see [llms.txt](https://docs.airqo.net/airqo-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airqo.net/airqo-docs/api-docs.md).

# API Docs

{% hint style="warning" %}
Please migrate to the new API documentation at <https://platform.airqo.net/docs/api/intro/> , as the current version will soon be deprecated.
{% endhint %}

### Authentication

**IMPORTANT:** All API endpoints use `token` as a **query parameter**.

1. **Get AirQo Account:** Visit <https://analytics.airqo.net/user/login>
2. **Register Client:** Log in → Account Settings → API tab → Register CLIENT app
3. **Create Token:** Generate access token using client credentials
4. **Use Token:** Include as QUERY parameter in all requests

#### Example Request

```
GET https://api.airqo.net/v2/measurements/gridS/64b7f325d7249f0029fed743/recent?token=YOUR_ACCESS_TOKEN
```

*✅ Correct: Query parameter | ❌ Wrong: Authorization header*

{% hint style="info" %}
Please follow the embedded link below to read more...
{% endhint %}

{% embed url="<https://platform.airqo.net/docs/api/intro/>" %}
