# Google Flights Search API

> Google Flights itineraries for a route and date: airlines, times, stops, durations, prices and price insights.

Source: https://www.sandbase.ai/apis/google-flights/search
API reference: https://www.sandbase.ai/apis/google-flights/search/docs

## Facts

- Provider: Google Flights
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/google-flights/search`
- Price: $0.01 per call
- Capabilities: api, google flights, search
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/google-flights/search` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `departure_id` | string | yes |  |
| `arrival_id` | string | yes |  |
| `outbound_date` | string | yes |  |
| `type` | string | no |  |
| `return_date` | string | no |  |
| `currency` | string | no |  |

## FAQ

### How do I use the Google Flights Search API?

Send a POST request to https://api.sandbase.ai/v1/api/google-flights/search with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Google Flights Search API cost?

$0.01 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the Google Flights Search API accept?

Required: departure_id (string), arrival_id (string) and outbound_date (string). Optional: type (string), return_date (string) and currency (string). The Parameters table and the Playground on this page list every field.

### What does the Google Flights Search API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Google Flights developer account or API key?

No. Google Flights Search runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Google Flights API access separately.

## README

### Google Flights Search API

Google Flights itineraries for a route and date: airlines, times, stops, durations, prices and price insights.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/google-flights/search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"departure_id": "CDG", "arrival_id": "AUS", "outbound_date": "2026-12-15", "type": "2"}'
```

The result is returned in `outputs[0].data`.

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `arrival_id` | string | Yes | destination airport/location code |
| `departure_id` | string | Yes | origin airport/location code |
| `outbound_date` | string | Yes | YYYY-MM-DD |
| `currency` | string | No | currency |
| `return_date` | string | No | YYYY-MM-DD, required when type=1 |
| `type` | string | No | 1 round trip (default) / 2 one way / 3 multi-city |

#### Pricing

Flat price per call. Failed calls are not charged.
