Skip to content

Get measurements aggregated to day by sensor ID

GET
/v3/sensors/{sensors_id}/days

Provides a list of daily data by sensor ID

Authorizations

Parameters

Path Parameters

sensors_id
required

Limit the results to a specific sensors id

integer

Limit the results to a specific sensors id

Query Parameters

date_to
Any of:
string format: date-time

To when?

date_from
Any of:
string format: date-time

From when?

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
website
string
default: /
page
integer
default: 1
limit
integer
default: 100
found
Any of:
integer
results
required
Array<object>
object
value
Any of:
number
flagInfo
required
object
hasFlags
required
boolean
parameter
required
object
id
required
integer
name
required
string
units
required
string
displayName
Any of:
string
period
Any of:
object
label
required
string
interval
required
string
datetimeFrom
Any of:
object
utc
required
string format: date-time
local
required
string format: date-time
datetimeTo
Any of:
object
utc
required
string format: date-time
local
required
string format: date-time
coordinates
Any of:
object
latitude
Any of:
number
longitude
Any of:
number
summary
Any of:
object
min
Any of:
number
q02
Any of:
number
q25
Any of:
number
median
Any of:
number
q75
Any of:
number
q98
Any of:
number
max
Any of:
number
avg
Any of:
number
sd
Any of:
number
coverage
Any of:
object
expectedCount
required
integer
expectedInterval
required
string
observedCount
required
integer
observedInterval
required
string
percentComplete
required
number
percentCoverage
required
number
datetimeFrom
Any of:
object
utc
required
string format: date-time
local
required
string format: date-time
datetimeTo
Any of:
object
utc
required
string format: date-time
local
required
string format: date-time

422

Validation Error

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