---
title: "Get air quality measurements"
method: POST
path: "/api/v1/get_air_quality"
tags: ["earth"]
---

# Get air quality measurements

`POST /api/v1/get_air_quality`

## Request

- Base URL: `https://scholarmuse.ai`
- URL: `https://scholarmuse.ai/api/v1/get_air_quality`
- Auth: HTTP bearer

Measured air quality near a point from OpenAQ: the nearest monitoring stations within 25 km and their daily mean PM2.5, PM10, NO2, O3, SO2 and CO with units. Use it for ground-station pollution data for a place and period.

Discipline pack: earth. Cost: 1 credit per successful call.

## Request body

- object
  - `latitude` number, required: Latitude in decimal degrees.
  - `longitude` number, required: Longitude in decimal degrees.
  - `radius_km` number: Search radius in km (default and maximum 25).
  - `pollutants` string[]: Pollutants to return. Default: all of pm25, pm10, no2, o3, so2, co.
  - `start` string: First day, YYYY-MM-DD. Default: 7 days before end.
  - `end` string: Last day, YYYY-MM-DD. Default: today.

## Response `200`

The tool result.

- ToolResult
  - `summary` string, required
  - `billing` CreditStatus
    - `creditsRemaining` integer, nullable, required: Spendable, unexpired balance at checkedAt; null if refresh failed. Credits reserved by pending figures are excluded.
    - `status` 'ok' | 'low' | 'empty' | 'unavailable', required
    - `lowBalanceThreshold` integer, required
    - `topUpUrl` string, uri, required
    - `pricingUrl` string, uri, required
    - `checkedAt` string, date-time, required
    - `notice` string
  - `records` Record[]
    - `id` string, required
    - `type` string, required
    - `source` string, required
    - `title` string
    - `url` string
    - `license` string
    - `attribution` string
    - `retrievedAt` string, date-time, required
    - `data` object, required
  - `partial` boolean
  - `failedSources` object[]
    - `source` string
    - `error` string
  - `files` object[]
    - `name` string
    - `url` string
    - `mimeType` string
  - `extra` object
  - `credits_used` number, required
  - `call_id` string, required

## Other responses

- `400`: The call failed and was not charged.
- `401`: The call failed and was not charged.
- `402`: The call failed and was not charged.
- `429`: The call failed and was not charged.
- `502`: The call failed and was not charged.

---

[API](https://skmtc.dev/scholarmuse/apis/scholarmuse-rest-api.md) · [All operations](https://skmtc.dev/scholarmuse/apis/scholarmuse-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scholarmuse/apis/scholarmuse-rest-api/revisions/beafd92e4bfb?raw)
