Spiral gives your agent every tool with one account. Browse the tools →

Codex · Maps & Reviews

How to Use Google Flights airport and city lookup in Codex

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 Codex

Copy an example into Codex, 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.

Google Flights airport and city lookupCodex
Try asking
  • 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 Codex

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. 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: Codex 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.

AlexandriaMaps & Reviews
Google Flights · Suggest places
flights-google-com/flights/suggest_places

What can you do with Google Flights airport and city lookup in Codex?

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.

Questions about Google Flights airport and city lookup in Codex

Can Codex use Google Flights airport and city lookup?

Yes. Add Spiral to Codex as an MCP server, and Codex 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 Codex?

$0.013 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

Do I need an Alexandria account to use Google Flights airport and city lookup in Codex?

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 Codex?

About two minutes: add the hosted server, then sign in.

Does Codex wait while Google Flights airport and city lookup runs?

Google Flights airport and city lookup runs in the background. Codex 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.

Get started

Start using Google Flights airport and city lookup in Codex

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Codex:

Set up Codex

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options