Skip to content

Get location by ID

GET
/v1/locations/{location_id}

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
id
required
integer
country
required
string
city
Any of:
string
cities
Any of:
Array
location
required
string
locations
required
Array<string>
sourceName
required
string
sourceNames
required
Array<string>
sourceType
required
string
sourceTypes
required
Array<string>
coordinates
required
object
latitude
Any of:
number
longitude
Any of:
number
firstUpdated
required
string
lastUpdated
required
string
parameters
required
Array<string>
countsByMeasurement
required
Array<object>
object
parameter
required
string
count
required
integer
count
required
integer

422

Validation Error

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