AirTrack API

Add air quality to your product in minutes.

Street-level air quality, personal exposure and cleaner routes through one REST API – the same engine that powers the AirTrack apps. Copy-paste examples in curl, Python and TypeScript take you from token to first call in minutes.

curl · Python · TypeScriptOpenAPI specData updated hourly
Engineer to engineer chat, no sales
Runner smiling and checking AirTrack on her phone

Documentation

Quickstart

Three steps to your first call

Every example comes in curl, Python and TypeScript, and the full OpenAPI spec is ready for your tooling or AI coding assistant.

Browse the API reference
AirTrack in use
1

Get a token

Get started by generating a pairing code in the AirTrack app (Settings->Connections->Pair a device) and your client swaps it for a token.

2

Make your first call

Send a location and get a Clean Air Score back, from 0 to 100 – higher is cleaner. One request, one credit.

3

Build out from there

Add forecasts, route enrichment and cleaner-route planning from the same credit pool, and check your balance any time.

Demo

One call, one score

Send a location with your token and the API returns the Clean Air Score for that spot, from 0 to 100, plus a TTL telling you when it is worth asking again. Every other endpoint follows the same shape.

Request
curl -X POST "https://api.airawarelabs.com/v1/airquality/score" \
  -H "Authorization: Bearer $AIRTRACK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "lat": 51.5074, "lon": -0.1278 }'
Response
{
  "score": 82,
  "ttl": 3600
}

Endpoints and credits

Four calls, one credit pool

Score a place, forecast a day, enrich a route or plan a cleaner one. All four draw on one shared monthly credit pool, so you can spend it however your product needs.

1 credit

Score a point

The Clean Air Score right now for any location, from coordinates or a Wi-Fi scan.

2 credits

Forecast a day

Hourly Clean Air Scores and pollutant levels for a place and date, so people can plan around the cleanest hours.

1 credit per waypoint

Enrich a route

Per-waypoint air quality plus a route summary: Clean Air Score, relative inhaled dose and average pollutants.

25 credits

Plan a cleaner route

Lower-exposure walking, cycling and running routes between two points, each compared with the direct route.

You only spend credits on results

Checking your balance, redeeming a pairing code and collecting a route plan are free. Calls that fail before delivering a result are refunded automatically, and validation errors are never charged. Apps and devices paired by an AirTrack Premium user share that user's 1,000 credits a month; partner accounts are usage-based, with volume discounts.

Sectors

Start with your sector

One API, three places it makes a real difference. Pick yours to see what you can build.

Fitness

Put air quality next to pace and heart rate

Athletes inhale 10–20× more air than at rest, and they already track almost every part of their training. Add the missing metric – what they breathed – to your wearable, app or platform, automatically after every session.

Garmin watch showing a live AirTrack Clean Air score of 80, rated Excellent
Success studyTravel

Wings of Survival

Timm Döbert and Leanna Carriere are cycling 30,000 km from the Arctic to Patagonia. Their expedition shows what the AirTrack engine can do for travel: every tracked ride becomes a private air quality breakdown along the GPS route, from empty tundra roads to towns and wildfire smoke.

  • 3,884 km and 28 riding days mapped in August
  • Wildfire smoke south of Prince George picked out at three times the WHO guideline, confirmed with satellite data
  • No sensor on the bike – exposure is modelled along the GPS route
Garmin watch showing a live AirTrack Clean Air score of 80, rated Excellent
Success studyPost-activity enrichment

Garmin integration

Runs, rides and walks recorded on Garmin come back enriched after every session: an AirTrack Score for the exact route and time, a pollutant breakdown and local pollen.

  • Completed activities imported through the Garmin Health API – no extra logging
  • A live AirTrack Score on the watch, carried into post-activity charts
  • Five pollutants plus grass, tree and weed pollen for every activity

The same engine is in the API

Send a recorded track to Enrich a route and get per-waypoint scores and a route summary back – ready to sit next to pace, heart rate and elevation in your own product.

Health

Give health apps the context they're missing

Symptoms rarely arrive with a pollution reading attached. Hourly forecasts and personal exposure help your product warn people early, and help clinicians see the patterns behind a flare-up.

Forecast-led alerts

Hourly Clean Air Score forecasts let your app nudge people with asthma or COPD towards the cleaner hours of the day.

Symptom context

Pair each symptom log with the air at that time and place, so patterns show up in the data rather than in hindsight.

Personal exposure

Route scores adjust for activity and for indoor or outdoor settings, and estimate a relative inhaled dose – not just the reading outside.

Active travel

Help people take the cleaner way

Walkers and cyclists breathe harder than people in cars, often right beside the traffic. A different street or a later start can cut exposure on the same journey by up to 30%.

Cleaner route planning

Send a start and an end and get walking, cycling or running alternatives. Each one shows its extra distance next to the exposure it saves, so people can see when a detour is worth it.

Score any journey

Enrich the route someone already takes and show where the air gets better or worse, waypoint by waypoint.

Best time to go

Hourly forecasts show when the air on a commute is likely to be cleanest, so people can shift their start time as well as their route.

Ready to build with cleaner air?

Tell us what you're building and we'll set up your access. Your first call takes minutes.