POST
/v1/transportation/airports2 credits / callAirport lookup
Search the versioned OurAirports dataset by code, name or municipality.
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | Yes | IATA/ICAO code, airport name or municipality. |
| limit | number | No | Maximum results (1-25). Default: 10. |
Request
curl -X POST https://toolsonduty.com/api/v1/transportation/airports \
-H "Authorization: ******" \
-H "Content-Type: application/json" \
-d '{"query":"Delhi","limit":5}'Response
{
"ok": true,
"data": {
"airports": [
{
"name": "Indira Gandhi International Airport",
"codes": {
"iata": "DEL"
}
}
],
"dataset": {
"license": "Public Domain"
}
}
}