GET/api/v1/references/airports

Get Airports

GET/api/v1/references/airports

Optional Fields

  • page
  • size
  • codes

Parameter Details

NameInTypeRequiredDescription
pagequeryintegerOptionalThe page number to retrieve.
sizequeryintegerOptionalThe number of items to be displayed per page.
codesquerystringOptionalThe code(s) you want to search for.

Responses

StatusMeaningDescriptionSchema
200OKSuccessschemaairportsresp
400Bad RequestRequest data failed validation(s)
401UnauthorizedAuthentication Failed!
429Too Many RequestsToo Many Requests.
500Internal Server ErrorInternal Server Error

Example Request

# You can also use wget
curl -X GET /api/v1/references/airports \
  -H 'Accept: application/json' \
  -H 'Authorization: API_KEY'

Example responses

200 Response
{
  "error": false,
  "airports": [
    {
      "_id": "64ae8d14d06e77f95bff13bc",
      "airportName": "Netaji Subhas Chandra Bose International Airport",
      "city": "Kolkata",
      "airportCode": "CCU",
      "isActiveStatus": true,
      "id": "63ff432ce2276fc08e64f794"
    }
  ],
  "totalData": 10282,
  "totalPages": 10282,
  "page": 1,
  "size": 1
}

Need Support?

Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.