How to Use Google Flights airport and city lookup in opencode
Returns Google Flights city and airport identifiers from a place name or IATA code, including nearby airports without duplicates. Use it to resolve destinations before searching fares; rail stations and regions are excluded.
Prompts to try with Google Flights airport and city lookup in opencode
Copy an example into opencode, or ask in your own words.
Use Google Flights airport and city lookup for London, United Kingdom, and add the returned names and identifiers to the destination picker in this project.
Use Google Flights airport and city lookup for Tokyo, Japan, and inspect how our destination selector handles city matches versus airport matches.
Use Google Flights airport and city lookup to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Google Flights airport and city lookup and tell me what changed since last week.
Check Google Flights airport and city lookup and summarize what you find in three bullet points.
How to set up Google Flights airport and city lookup in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Google Flights airport and city lookup
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "flights-google-com/flights/suggest_places", "input": { "query": "<query>" } }'
Then paste one of the prompts above: opencode finds Google Flights airport and city lookup on Spiral, shows the price and runs it.
Google Flights airport and city lookup providers and prices
Spiral runs Google Flights airport and city lookup through Alexandria. Open a card for today's price, with every fee included.
What can you do with Google Flights airport and city lookup in opencode?
Build a travel picker that turns Google Flights airport matches into fare comparisons for specific dates. Use the results in your project to compare airport choices and complete round trips.
Compare airports serving one destination
Resolve London into its city and airport matches, then compare fares from New York for the same dates. Show which arrival airport each option uses.
Check alternative departure airports
Look up airports around the San Francisco Bay Area, then compare departures to Chicago. Keep the departure airport visible beside each fare so travelers can weigh the airport choice.
Prepare a business travel shortlist
Resolve Boston and Washington, DC, before comparing flights for a fixed business trip. Present fare options alongside their airport choices for review.
Compare nearby departure dates
Resolve Lisbon as the destination, then compare separate New York searches for adjacent departure dates. Keep the route and trip length consistent to make the date comparison useful.
Build an event travel brief
Find the Google Flights airport identifiers for Las Vegas, then compare fares from Los Angeles, Chicago, and New York for an event's travel dates. Produce a separate shortlist for each departure city.
Compare complete round trips
Resolve Tokyo's city and airport choices before searching from Seattle. Select an outbound option and retrieve matching returns before comparing the fares for complete trips.
More on Google Flights airport and city lookup and opencode
Overview
Google Flights airport and city lookup in other agents
Questions about Google Flights airport and city lookup in opencode
Can opencode use Google Flights airport and city lookup?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Google Flights airport and city lookup like any built-in tool.
How much does Google Flights airport and city lookup cost in opencode?
$0.013 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need an Alexandria account to use Google Flights airport and city lookup in opencode?
No. Spiral runs Google Flights airport and city lookup on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Google Flights airport and city lookup in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Google Flights airport and city lookup runs?
Google Flights airport and city lookup runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Does Google Flights cover every airline and flight?
No. Google Flights compares offers from more than 300 partners, but airlines and flights can be absent because a partnership is required. An empty search does not establish that no flight exists.
How fresh is Google Flights fare information?
Google's calendar date-selection guidance says flight prices update approximately every 24 hours. That statement does not establish an exact refresh schedule for every fare search or for airport and city suggestions.
Does the first Google Flights result mean the lowest fare?
Google ranks top departing flights by a balance of fare and convenience. Duration, stop count, and airport changes during layovers affect that ranking, so the first result need not have the lowest fare.
Can Google Flights coverage differ for users in Europe?
Yes. EEA businesses can opt out of showing their fare and availability content on Google Flights to EEA users, with removal within 30 days.
Where does Google Flights get baggage information?
Google displays baggage information supplied by its partners. Estimated baggage charges can also be subject to additional government taxes.
Start using Google Flights airport and city lookup in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


