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
  • Runtime facts: 80f6d0ab09ca1b2bfaa51bc30934eca7d1f0ea7e38c9d075b9100f098998c5d9
Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based billing; Default request estimate: $0.00089 USD (not a fixed price). Declared unit rate: $0.000001 USD per provider_credit. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.
  • Default request reference estimate (USD): 0.00089
  • Declared unit rate (USD): 1e-06
  • Billing unit: provider_credit
  • Cost contract: response_units
  • Published reference multiplier: 1.0
  • Declared maximum count/units: 10000000
  • Settlement evidence source: response_body

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"

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"

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"

Response

Tool result data

details
object[]
required