Retrieve current or historical PM2.5 sensor readings from the PurpleAir API for a sensor or bounding box

domain: api.purpleair.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Request API read/write keys from PurpleAir since access is not fully self-service.
  2. Call GET https://api.purpleair.com/v1/sensors (or /v1/sensors/{sensor_index}) with the X-API-Key header and a fields parameter listing desired variables (e.g. pm2.5, humidity).
  3. Include the sensor's private read_key in the request if querying a privately registered sensor rather than a publicly listed one.
  4. Use bounding-box or nearby-location parameters to search sensors within a geographic area rather than querying by index one at a time.
  5. For historical data, use the sensor history endpoints with start/end timestamps and an appropriate averaging interval.

Known gotchas

Related routes

Confirm current status of the Awair Developer API and pull CO2/TVOC/PM2.5 readings from an Awair device
developer-apis.awair.is · 5 steps · unrated
Pull live air quality readings (PM2.5, CO2, VOC) from a Kaiterra Laser Egg or Sensedge monitor via the Kaiterra REST API
api.kaiterra.com · 5 steps · unrated
read current or recent measurements from an airgradient air quality sensor via its public api
airgradient.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans