Skip to main content
POST
Get Airport Information

Request contract

  • Method and path: POST /apis/v1/api-ninjas/get-airports
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/get-airports
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
city
string

City name to search for airports (e.g., 'New York', 'London', 'Paris'). Returns all airports in the specified city.

Examples:

"New York"

"London"

"Paris"

country
string

Country code or name to search for airports (e.g., 'US', 'United States', 'GB', 'United Kingdom'). Returns all airports in the specified country.

Examples:

"US"

"GB"

"FR"

iata
string

3-letter IATA airport code (e.g., 'JFK', 'LHR', 'CDG'). Use this to search for a specific airport by its international code.

Examples:

"JFK"

"LHR"

"CDG"

icao
string

4-letter ICAO airport code (e.g., 'KJFK', 'EGLL', 'LFPG'). Use this to search for a specific airport by its ICAO designation.

Examples:

"KJFK"

"EGLL"

"LFPG"

name
string

Airport name to search for (e.g., 'John F Kennedy International Airport', 'Heathrow'). Partial matches are supported.

Examples:

"John F Kennedy International Airport"

"Heathrow"

offset
integer

Number of results to offset for pagination. Use this to paginate through results by setting offset to multiples of the result limit (e.g., 0, 30, 60).

Required range: x >= 0
Examples:

0

30

60

region
string

Region or state to search for airports (e.g., 'California', 'Texas', 'England'). Returns all airports in the specified region.

Examples:

"California"

"Texas"

"England"

Response

Tool result data

details
object[]
required