Skip to content

Get latest measurements by location ID

Deprecated
GET
/v2/latest/{location_id}

Provides latest measurements for a locations by location ID

Authorizations

Parameters

Path Parameters

location_id
required

The ID of the location

integer

The ID of the location

Query Parameters

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
Any of:
string
Allowed values: asc desc

Define sort order. e.g. ?sort=asc

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
Any of:
string
city
Any of:
string
country
Any of:
string
coordinates
Any of:
object
latitude
Any of:
number
longitude
Any of:
number
measurements
required
Array<object>
object
parameter
required
string
value
required
number
lastUpdated
required
string
unit
required
string

422

Validation Error

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