Skip to content

Get a license by ID

GET
/v3/licenses/{licenses_id}
curl --request GET \
--url https://example.com/v3/licenses/1 \
--header 'X-API-Key: <X-API-Key>'

Provides a license by license ID

licenses_id
required
Licenses Id

Limit the results to a specific licenses id

integer

Limit the results to a specific licenses id

Successful Response

Media type application/json
LicensesResponse
object
meta
Meta
object
name
Name
string
default: openaq-api
website
Website
string
default: /
page
Page
integer
default: 1
limit
Limit
integer
default: 100
found
Any of:
integer
results
required
Results
Array<object>
License
object
id
required
Id
integer
name
required
Name
string
commercialUseAllowed
required
Commercialuseallowed
boolean
attributionRequired
required
Attributionrequired
boolean
shareAlikeRequired
required
Sharealikerequired
boolean
modificationAllowed
required
Modificationallowed
boolean
redistributionAllowed
required
Redistributionallowed
boolean
sourceUrl
required
Sourceurl
string
Example
{
"meta": {
"name": "openaq-api",
"website": "/",
"page": 1,
"limit": 100
}
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}