Skip to content

Get averaged values

Deprecated
GET
/v2/averages

Authorizations

Parameters

Query Parameters

temporal
Any of:
string
Allowed values: hour day month year hod dow moy raw

Period to aggregate. month, day, hour

parameters_id
Any of:
integer

What measurand would you like?

date_to
Any of:
string format: date-time

To when?

date_from
Any of:
string format: date-time

From when?

locations_id

Limit the results to a specific location by id

integer
default: 70084

Limit the results to a specific location by id

spatial
Any of:
string
Allowed values: country location total

Define how you want to aggregate in space

limit

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

integer
default: 100

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

page

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

integer
default: 1

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

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
id
Any of:
Array<integer>
name
Any of:
Array<string>
hour
Any of:
string format: date-time
day
Any of:
string format: date
month
Any of:
string format: date
year
Any of:
string format: date
hod
Any of:
integer
dow
Any of:
integer
average
Any of:
number
measurement_count
Any of:
integer
parameter
Any of:
string
parameterId
Any of:
integer
displayName
Any of:
string
unit
Any of:
string
first_datetime
Any of:
string format: date-time
last_datetime
Any of:
string format: date-time

422

Validation Error

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