[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [Google Flights fare search](https://spiral.ai/integrations/vscode/google-flights-fare-search)

# How to Use Google Flights fare search in VS Code

Returns one-way fares or round-trip outbound options from Google Flights, then matching returns after you choose an outbound. Use it to compare trips for specific dates; initial round-trip quotes are starting fares, while return results price the selected pair.

|  |  |
| --- | --- |
| Model | Google Flights fare search |
| Available through | Alexandria |
| Category | Maps & Reviews |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Google Flights fare search in VS Code

- Use Google Flights fare search for a one-way economy trip from JFK to LAX on February 10, 2027, for one adult, and populate our comparison table with the returned fares.
- Use Google Flights fare search from Seattle to Tokyo, departing April 6 and returning April 20, 2027, for one adult in economy. Select an outbound and retrieve matching returns before filling the trip summary.
- Use Google Flights fare search for Boston to Washington, DC, on March 9, 2027, for one adult in economy. Check whether our results component preserves the source order while allowing a separate fare comparison.
- Use Google Flights fare search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Google Flights fare search and tell me what changed since last week.

## How to set up Google Flights fare search in VS Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to VS Code on the console's Agents & MCP page, or run:

```bash
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
```

2. **Sign in**: VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

### Use the Spiral skill

1. **Send VS Code 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.

```bash
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 fare search**: One request; the result comes back by polling or a webhook.

```bash
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/search_flights",
    "input": {
      "origin": "<origin>",
      "destination": "<destination>"
    }
  }'
```

Then paste one of the prompts above: VS Code finds Google Flights fare search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/vscode

## Google Flights fare search tools and prices

- [Google Flights · Search flights](https://spiral.ai/tools/alexandria/flights-google-com/flights/search_flights) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| limit | 1 to 50 | 10 | Maximum rows from Google’s first results page, in its ranked order. Not pagination. |
| adults | 1 to 9 | 1 | adults |
| market |  | US | Display/sales market; does not change the proxy country. Pattern: ^[A-Z]{2}$. |
| airlines |  | — | Google's Airlines filter, applied to every direction: 2-character IATA airline codes (SK, BA) and/or alliances STAR_ALLIANCE, ONEWORLD, SKYTEAM. Google keeps itineraries where a listed airline or alliance member markets or codeshares a segment, so a row can include a partner-operated segment under another airline code (an SK search can list a Delta-marketed EWR-BOS feeder sold as SK). Unknown codes make Google return an error response. |
| children | 0 to 8 | 0 | At most 9 passengers total, including infants. |
| currency |  | USD | Pattern: ^[A-Z]{3}$. |

## What can you do with Google Flights fare search in VS Code?

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.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All VS Code guides](https://spiral.ai/integrations/vscode)

## Google Flights fare search in other agents

- [Amp](https://spiral.ai/integrations/amp/google-flights-fare-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/google-flights-fare-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/google-flights-fare-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/google-flights-fare-search)
- [Cline](https://spiral.ai/integrations/cline/google-flights-fare-search)
- [Codex](https://spiral.ai/integrations/codex/google-flights-fare-search)
- [Cursor](https://spiral.ai/integrations/cursor/google-flights-fare-search)
- [Devin](https://spiral.ai/integrations/devin/google-flights-fare-search)
- [dots](https://spiral.ai/integrations/dots/google-flights-fare-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/google-flights-fare-search)
- [Gemini](https://spiral.ai/integrations/gemini/google-flights-fare-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/google-flights-fare-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/google-flights-fare-search)
- [goose](https://spiral.ai/integrations/goose/google-flights-fare-search)
- [Grok](https://spiral.ai/integrations/grok/google-flights-fare-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/google-flights-fare-search)
- [Hermes](https://spiral.ai/integrations/hermes/google-flights-fare-search)
- [Instinct](https://spiral.ai/integrations/instinct/google-flights-fare-search)
- [Manus](https://spiral.ai/integrations/manus/google-flights-fare-search)
- [Muse](https://spiral.ai/integrations/muse/google-flights-fare-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/google-flights-fare-search)
- [n8n](https://spiral.ai/integrations/n8n/google-flights-fare-search)
- [Notion](https://spiral.ai/integrations/notion/google-flights-fare-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/google-flights-fare-search)
- [opencode](https://spiral.ai/integrations/opencode/google-flights-fare-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/google-flights-fare-search)
- [Raycast](https://spiral.ai/integrations/raycast/google-flights-fare-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/google-flights-fare-search)
- [Zapier](https://spiral.ai/integrations/zapier/google-flights-fare-search)

## More VS Code guides

- [Google Flights airport and city lookup](https://spiral.ai/integrations/vscode/google-flights-airport-and-city-lookup)
- [Google Maps business rating trend](https://spiral.ai/integrations/vscode/google-maps-business-rating-trend)
- [GolfNow tee time rate options](https://spiral.ai/integrations/vscode/golfnow-tee-time-rate-options)
- [Google Maps business reviews](https://spiral.ai/integrations/vscode/google-maps-business-reviews)
- [GolfNow nearby courses](https://spiral.ai/integrations/vscode/golfnow-nearby-courses)
- [Google Maps business search](https://spiral.ai/integrations/vscode/google-maps-business-search)

## Questions about Google Flights fare search in VS Code

**Can VS Code use Google Flights fare search?**

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Google Flights fare search like any built-in tool.

**How much does Google Flights fare search cost in VS Code?**

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

**Do I need an Alexandria account to use Google Flights fare search in VS Code?**

No. Spiral runs Google Flights fare search 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 fare search in VS Code?**

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

**Does VS Code wait while Google Flights fare search runs?**

Google Flights fare search runs in the background. VS Code 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.

