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
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
/api/project/tripadvisor-data/search-airport API Response (JSON)
{} curl -X GET 'https://api.opendata-api.com/api/project/tripadvisor-data/search-airport?key=<API_KEY>&query=<query>'
Query Result
Use Cases
- Build a query-driven airport suggestion box for each origin and destination in a multi-city itinerary editor.
- Show a city grouping separately from its child airports so travelers can review the geographic scope of their selection.
- Use returned labels and geographic details to disambiguate airports serving similarly named locations.
- Preserve the selected airport record in a flight form, then clear it when the location query changes to prevent stale code submissions.
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.