Find airport and city suggestions by location name

View all Tripadvisor Hotel, Rental & Travel Data endpoints →

Search airport suggestions with the required query string, documented as the name of the location where an airport is situated; london is the supplied input example. The truncated, unverified source response example shows a data array whose records include airportCode and may contain children for individual airports within a city-level result. Example child records include coords, title, shortName, isChild, and details fields such as name, geo_name, parent_name, and parent_ids. Use these as a guide to parsing and disambiguation, not as a verified response contract: no saved operation-specific probe is available. Inspect the returned record before choosing a code for a flight leg; a city grouping is not necessarily a single airport. This is an airport lookup, not a flight availability or booking request.

API Features

Location-name airport lookup Supply the required query string to search by an airport location name, using london as the documented example rather than inventing numeric location IDs.
City and child-airport distinctions The unverified example pairs city-level airportCode records with children, helping design selectors that distinguish an area-wide choice from an individual airport.
Geographic context for suggestions Example children include coords and details such as geo_name and parent_name; inspect these returned fields to help distinguish similar airport names.
Reviewed code handoff to flight legs Check the selected record and its airportCode before filling sourceAirportCode or destinationAirportCode in a multi-city request; do not guess identifiers from display text.

Live API Demo

GET /api/project/tripadvisor-data/search-airport

Request cost is temporarily unavailable. No price is assumed.

View pricing

API Response (JSON)

{}
curl -X GET 'https://api.opendata-api.com/api/project/tripadvisor-data/search-airport?key=<API_KEY>&query=<query>'
📢
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Contact Us

Use Cases

Frequently asked questions

What does the query parameter accept?

query is a required string described as the name of the location where the airport is situated. The documented example is london; no numeric location ID is required by this operation.

Does each suggestion represent one individual airport?

Not necessarily. The unverified source example shows city-level records with airportCode and a children array containing individual airport records. Inspect the returned hierarchy before treating a suggestion as a specific airport.

Which response fields can help display an airport suggestion?

The truncated source example includes airportCode, title, shortName, coords, isChild, and details containing names and parent-location information. These fields have not been confirmed by an operation-specific live probe, so handle missing fields defensively.

Can I use a returned code in a multi-city flight request?

After inspecting the chosen record, its airportCode can inform sourceAirportCode or destinationAirportCode in a leg. Verify whether it identifies a city grouping or an individual airport; do not infer a code solely from a label.

Does airport search return fares or reserve a flight?

No flight pricing or reservation behavior is documented for this lookup. Use it to choose airport suggestions before constructing a separate flight-search request.

Related operations

Guides

View Subscription Plans →