# Google Flights price calendar API

Get Google Flights fare calendars by route and date window via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by Apish, pass parameters such as destination, origin, output, and retrieve structured data including source departure day, price, return date, selected fare currency, and date for date comparison, and calendar display.

Documentation: https://openany.si/google-flights/google-flights-price-calendar-api/a3a7cc56-3e1a-4886-bdf4-e5df18a167f5/
API ID: a3a7cc56-3e1a-4886-bdf4-e5df18a167f5
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/google-flights/v1/calendar
Page update time: 2026-12-03T02:47:05.692Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:47:04.792Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Google Flights Price Calendar API

Use origin and destination IATA codes with month or start\_date/end\_date. trip\_length selects round-trip duration; without it the request is one-way. Daily prices retain passengers, cabin, currency and point-of-sale country.

## What You Can Build

- **Date comparison**: Compare days using the same passenger and fare conditions.
- **Calendar display**: Keep unpriced days separate from priced entries.

## Returned Data

| Field | Meaning |
| --- | --- |
| `days[].date` | Source departure day |
| `days[].price` | Lowest displayed source fare for that day and request context |
| `days[].return_date` | Return date for a round-trip calendar entry |
| `currency` | Selected fare currency |
| `priced_days` | Days with source price data |
| `cheapest.date` | Lowest-priced departure day in the returned scope |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Google Flights price calendar API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "origin": {
          "type": "string",
          "description": "Departure airport or city: 3-letter IATA code; several comma separated (e.g. `JFK,EWR`)."
        },
        "destination": {
          "type": "string",
          "description": "Arrival airport or city: 3-letter IATA code; several comma separated."
        },
        "month": {
          "type": "string",
          "description": "A month to show, YYYY-MM (instead of start_date/end_date)."
        },
        "start_date": {
          "type": "string",
          "description": "First departure day, YYYY-MM-DD (default tomorrow)."
        },
        "end_date": {
          "type": "string",
          "description": "Last departure day, YYYY-MM-DD (default 30 days after start_date)."
        },
        "trip_length": {
          "type": "integer",
          "description": "Round trip: days between departure and return (1-60). Omit for one-way fares."
        },
        "adults": {
          "type": "integer",
          "description": "Adults (1-9, default 1)."
        },
        "children": {
          "type": "integer",
          "description": "Children (0-8)."
        },
        "infants_in_seat": {
          "type": "integer",
          "description": "Infants with their own seat (0-8)."
        },
        "infants_on_lap": {
          "type": "integer",
          "description": "Infants on a lap (0-8)."
        },
        "cabin": {
          "type": "string",
          "description": "Cabin class (default economy).",
          "enum": [
            "economy",
            "premium_economy",
            "business",
            "first"
          ]
        },
        "stops": {
          "type": "string",
          "description": "At most this many stops: any (default), nonstop, 1, 2.",
          "enum": [
            "any",
            "nonstop",
            "1",
            "2"
          ]
        },
        "airlines": {
          "type": "string",
          "description": "Only these airlines: 2-letter IATA airline codes, comma separated (e.g. `UA,DL`)."
        },
        "currency": {
          "type": "string",
          "description": "Price currency, a 3-letter code (default USD)."
        },
        "country": {
          "type": "string",
          "description": "Two-letter country whose point of sale prices are shown (default US)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "origin",
        "destination"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "airlines": {
      "type": "null"
    },
    "cabin": {
      "type": "string"
    },
    "cached": {
      "type": "boolean"
    },
    "cheapest": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string"
        },
        "price": {
          "type": "integer"
        },
        "return_date": {
          "type": "null"
        }
      }
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "currency": {
      "type": "string"
    },
    "days": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "price": {
            "type": "integer"
          },
          "return_date": {
            "type": "null"
          }
        }
      }
    },
    "destination": {
      "type": "string"
    },
    "end_date": {
      "type": "string"
    },
    "fetched_at": {
      "type": "string"
    },
    "highest": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string"
        },
        "price": {
          "type": "integer"
        },
        "return_date": {
          "type": "null"
        }
      }
    },
    "median_price": {
      "type": "integer"
    },
    "note": {
      "type": "string"
    },
    "origin": {
      "type": "string"
    },
    "passengers": {
      "type": "object",
      "properties": {
        "adults": {
          "type": "integer"
        },
        "children": {
          "type": "integer"
        },
        "infants_in_seat": {
          "type": "integer"
        },
        "infants_on_lap": {
          "type": "integer"
        }
      }
    },
    "priced_days": {
      "type": "integer"
    },
    "start_date": {
      "type": "string"
    },
    "stops": {
      "type": "string"
    },
    "trip": {
      "type": "string"
    },
    "trip_length": {
      "type": "null"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/google-flights/v1/calendar?destination=LAX&origin=JFK&output=json&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "airlines": null,
  "cabin": "economy",
  "cached": false,
  "cheapest": {
    "date": "2026-12-10",
    "price": 169,
    "return_date": null
  },
  "count": 31,
  "credits_used": 1,
  "currency": "USD",
  "days": [
    {
      "date": "2026-11-20",
      "price": 326,
      "return_date": null
    },
    {
      "date": "2026-11-21",
      "price": 326,
      "return_date": null
    },
    {
      "date": "2026-11-22",
      "price": 447,
      "return_date": null
    },
    {
      "date": "2026-11-23",
      "price": 326,
      "return_date": null
    },
    {
      "date": "2026-11-24",
      "price": 326,
      "return_date": null
    },
    {
      "date": "2026-11-25",
      "price": 326,
      "return_date": null
    },
    {
      "date": "2026-11-26",
      "price": 303,
      "return_date": null
    },
    {
      "date": "2026-11-27",
      "price": 326,
      "return_date": null
    },
    {
      "date": "2026-11-28",
      "price": 399,
      "return_date": null
    },
    {
      "date": "2026-11-29",
      "price": 619,
      "return_date": null
    },
    {
      "date": "2026-11-30",
      "price": 427,
      "return_date": null
    },
    {
      "date": "2026-12-01",
      "price": 303,
      "return_date": null
    },
    {
      "date": "2026-12-02",
      "price": 303,
      "return_date": null
    },
    {
      "date": "2026-12-03",
      "price": 205,
      "return_date": null
    },
    {
      "date": "2026-12-04",
      "price": 205,
      "return_date": null
    },
    {
      "date": "2026-12-05",
      "price": 205,
      "return_date": null
    },
    {
      "date": "2026-12-06",
      "price": 209,
      "return_date": null
    },
    {
      "date": "2026-12-07",
      "price": 205,
      "return_date": null
    },
    {
      "date": "2026-12-08",
      "price": 205,
      "return_date": null
    },
    {
      "date": "2026-12-09",
      "price": 205,
      "return_date": null
    },
    {
      "date": "2026-12-10",
      "price": 169,
      "return_date": null
    },
    {
      "date": "2026-12-11",
      "price": 169,
      "return_date": null
    },
    {
      "date": "2026-12-12",
      "price": 169,
      "return_date": null
    },
    {
      "date": "2026-12-13",
      "price": 169,
      "return_date": null
    },
    {
      "date": "2026-12-14",
      "price": 169,
      "return_date": null
    },
    {
      "date": "2026-12-15",
      "price": 169,
      "return_date": null
    },
    {
      "date": "2026-12-16",
      "price": 179,
      "return_date": null
    },
    {
      "date": "2026-12-17",
      "price": 265,
      "return_date": null
    },
    {
      "date": "2026-12-18",
      "price": 265,
      "return_date": null
    },
    {
      "date": "2026-12-19",
      "price": 335,
      "return_date": null
    },
    {
      "date": "2026-12-20",
      "price": 312,
      "return_date": null
    }
  ],
  "destination": "LAX",
  "end_date": "2026-12-20",
  "fetched_at": "2026-11-19T12:24:19.813Z",
  "highest": {
    "date": "2026-11-29",
    "price": 619,
    "return_date": null
  },
  "median_price": 265,
  "note": "Lowest fare Google Flights shows for each departure day (round trips: for the given trip length), for all passengers together; null where Google has no price.",
  "origin": "JFK",
  "passengers": {
    "adults": 1,
    "children": 0,
    "infants_in_seat": 0,
    "infants_on_lap": 0
  },
  "priced_days": 31,
  "start_date": "2026-11-20",
  "stops": "any",
  "trip": "one_way",
  "trip_length": null
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Can I include several airports?
The contract accepts comma-separated three-letter IATA airport or city codes for origin and destination.

### How do I request round-trip calendar prices?
Set trip_length to 1–60 days. Omit it for one-way fares. Keep the selected passenger and cabin context.

### What is the default date window?
Without month or explicit boundaries, start_date defaults to tomorrow and end_date to 30 days after start_date.

### Does an unpriced day mean a free flight?
No. priced_days counts days with source prices; missing values do not establish a fare or inventory.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/google-flights/google-flights-price-calendar-api/a3a7cc56-3e1a-4886-bdf4-e5df18a167f5/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
