Skip to content

Get a list of measurements

Deprecated
GET
/v1/measurements

Authorizations

Parameters

Query Parameters

format
Any of:
string
date_from
Any of:
string format: date-time

From when?

date_to
Any of:
string format: date-time

To when?

limit
Any of:
integer

Change the number of results returned. e.g. limit=1000 will return up to 1000 results

page
Any of:
integer

Paginate through results. e.g. page=1 will return first page of results

offset
Any of:
integer
sort
string
Allowed values: asc desc
has_geo
Any of:
boolean
parameter_id
Any of:
integer

(optional) A parameter ID to filter measurement results. e.g. parameter_id=2 (i.e. PM2.5) will limit measurement results to only PM2.5 measurements

parameter
Any of:
Array<string>

(optional) A parameter name or ID by which to filter measurement results. e.g. parameter=pm25 or parameter=pm25&parameter=pm10

unit
Any of:
Array<string>
coordinates
Any of:
string

Coordinate pair in form lat,lng. Up to 8 decimal points of precision e.g. 38.907,-77.037

radius

Search radius from coordinates as center in meters. Maximum of 25,000 (25km) defaults to 1000 (1km) e.g. radius=10000

integer
default: 1000

Search radius from coordinates as center in meters. Maximum of 25,000 (25km) defaults to 1000 (1km) e.g. radius=10000

country_id
Any of:
integer

Limit results by a certain country using two digit country ID. e.g. 13

country
Any of:
Array<string>

Limit results by a certain country using two letter country code. e.g. ?country=US or ?country=US&country=MX

city
Any of:
Array<string>

Limit results by a certain city or cities. (e.g. ?city=Chicago or ?city=Chicago&city=Boston)

location_id
Any of:
Array<integer>
location
Any of:
Array<string>
order_by
string
Allowed values: city country location datetime
is_mobile
Any of:
boolean

Location is mobile e.g. ?isMobile=true

is_analysis
Any of:
boolean

Data is the product of a previous analysis/aggregation and not raw measurements e.g. ?isAnalysis=false

project
Any of:
integer
entity
Any of:
string
Allowed values: government community research
sensor_type
Any of:
string
Allowed values: reference grade low-cost sensor

Filter by sensor type (i,e. reference grade, low-cost sensor) e.g. ?sensorType=reference%20grade

value_from
Any of:
number
value_to
Any of:
number
include_fields
Any of:
string

Additional fields to include in response e.g. ?include_fields=sourceName

Responses

200

Successful Response

object
meta
object
name
string
default: openaq-api
license
string
""
website
string
default: /
page
integer
default: 1
limit
integer
default: 100
found
Any of:
integer
results
required
Array<object>
object
location
required
string
parameter
required
string
value
required
number
date
required
object
utc
required
string
local
required
string
unit
required
string
coordinates
required
object
latitude
Any of:
number
longitude
Any of:
number
country
Any of:
string
city
Any of:
string

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string