Google Flights-API

Google Flights-Calendar-API

Get the Google Flights price calendar for a route: the lowest fare for every departure date across a window of up to 120 days, one way or as a round trip of a fixed length, with the return date of each round trip, a flag on every date within 5% of the cheapest, and the cheapest date of the window, as normalized JSON. Choose cabin class, adults and currency. Prices are the total for all passengers; dates with no fare are left out.

POST/v1/run/google_flights.calendar
Verfügbarkeit
100,00%
30d · 1 Aufruf
Anfragen
1
30d
Antwort
1,3s
Median · 30d

Preise

Preise der Google Flights-Calendar-API

Du zahlst
8,50 USD
0,85 USD/1k Anfr., nur für das, was du nutzt. Kein Monatstarif.
Deine ersten 117 Anfragen sind mit dem Startguthaben von 0,10 USD kostenlos.

Ausprobieren

Google Flights Calendar mit einer Anfrage abrufen

Öffnen in
Beispielantwort
Kostenlose Läufe liefern nur die ersten 3 Ergebnisse. Lade einen Schlüssel auf, um die vollständige Antwort zu bekommen.
{
  "data": {
    "adults": 42,
    "cabinClass": "example",
    "cheapestDepartureDate": "2024-01-15T09:30:00Z",
    "cheapestPrice": 19.99,
    "currency": "USD",
    "dates": [
      {
        "departureDate": "2024-01-15T09:30:00Z",
        "isLowPrice": true,
        "price": 19.99,
        "returnDate": "2024-01-15T09:30:00Z"
      }
    ],
    "departureDateFrom": "2024-01-15T09:30:00Z",
    "departureDateTo": "2024-01-15T09:30:00Z",
    "destination": "example",
    "origin": "example",
    "tripLengthDays": 180,
    "tripType": "one_way"
  },
  "found": true,
  "reason": "not_found"
}

Vollständige Parameter- und Antwortreferenz: jedes Feld, jeder Typ und jedes Beispiel für diesen Endpoint.

Referenz

Eine Anfrage, eine Antwortstruktur.

Jedes Feld, das du sendest, und jedes Feld, das du zurückbekommst, jeweils mit einem echten Beispiel.

Zuletzt geprüft 2026-11-07 · Verfügbarkeit und Latenz gemessen über 30d

Request-Body

JSON, per POST an diesen Endpoint gesendet.

  • departureDateFromstring

    2026-12-07

    First departure date of the calendar in YYYY-MM-DD format (e.g. 2027-01-12). Today or later.

  • departureDateTostring

    2027-01-05

    Last departure date of the calendar in YYYY-MM-DD format (e.g. 2027-02-10). At most 120 days after departureDateFrom.

  • destinationstring

    LHR

    Arrival airport as a three-letter IATA code in capitals (e.g. LHR), or a Google place ID for a city to cover all of its airports (e.g. /m/04jpl for London).

  • originstring

    JFK

    Departure airport as a three-letter IATA code in capitals (e.g. JFK), or a Google place ID for a city to cover all of its airports (e.g. /m/02_286 for New York).

  • adultsinteger

    Number of adult passengers (1-9, default 1). Prices are for all passengers together. Child passengers cannot be priced on the calendar.

  • cabinClassenum

    Cabin class (default economy).

  • currencystring

    ISO 4217 currency code for prices (e.g. USD, EUR, GBP; default USD).

  • tripLengthDaysinteger

    For a round trip, the number of days between departure and return (1-30, e.g. 7): each date is then priced as a round trip returning that many days later. Omit it for one way.

Du sendest. Ein kleiner JSON-Body. Die gezeigten Werte sind Beispiele, die du durch deine eigenen ersetzt.

Antwort

JSON, ein Beispielwert pro Feld.

datadata

The price calendar, or null when no date in the window has a fare.

  • adultsinteger

    Number of adult passengers the prices cover.

  • cabinClassstring

    Cabin class the calendar was priced in: economy, premium_economy, business or first.

  • cheapestDepartureDatestring

    Departure date with the lowest fare in the window, YYYY-MM-DD.

  • cheapestPricenumber

    Lowest fare in the window, for all passengers, in currency.

  • currencystring

    ISO 4217 currency code of every price.

  • departureDateFromstring

    First departure date of the window, YYYY-MM-DD.

  • departureDateTostring

    Last departure date of the window, YYYY-MM-DD.

  • destinationstring

    Arrival airport IATA code or city place ID the calendar was priced to.

  • originstring

    Departure airport IATA code or city place ID the calendar was priced from.

  • tripLengthDaysinteger

    Days between departure and return on a round trip; null on one way.

  • tripType"one_way" | "round_trip"

    one_way, or round_trip when a trip length was given.

each datedata.dates[]

One entry per departure date that has a fare, in date order. Dates with no fare are left out. Populated whenever the provider has data for the entity.

  • departureDatestring

    Departure date, YYYY-MM-DD.

  • isLowPriceboolean

    Whether this fare is within 5% of the cheapest fare in the window.

  • pricenumber

    Lowest fare departing on this date, the total for all passengers, in currency.

  • returnDatestring

    Return date of the round trip priced for this departure date, YYYY-MM-DD; null on one way.

top level
  • foundboolean

    Whether any departure date in the window has a fare.

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

Du bekommst zurück. Benannte, typisierte Felder in derselben Struktur, egal welche Quelle antwortet.

FAQ

Über die Google Flights-Calendar-API

Die AnyAPI-Google Flights-Calendar-API liefert Google Flights-Daten als normalisiertes JSON aus einem POST-Aufruf an /v1/run/google_flights.calendar. Get the Google Flights price calendar for a route: the lowest fare for every departure date across a window of up to 120 days, one way or as a round trip of a fixed length, with the return date of each round trip, a flag on every date within 5% of the cheapest, and the cheapest date of the window, as normalized JSON. Choose cabin class, adults and currency. Prices are the total for all passengers; dates with no fare are left out. AnyAPI liefert ein normalisiertes Schema, egal welche Quelle antwortet. Sie kostet ab 0,85 USD pro 1.000 Anfragen, in US-Dollar, ohne Abo und ohne monatliches Minimum. In den letzten 30 Tagen waren 100,0% der Google Flights Calendar-Aufrufe über AnyAPI erfolgreich, bei einer mittleren Antwortzeit von 1,3 Sekunden über 1 gemessene Aufrufe.

Sie kostet ab 0,85 USD pro 1.000 Anfragen, in US-Dollar, ohne Abo und ohne monatliches Minimum. Du lädst ein USD-Guthabenkonto auf, und jeder Aufruf bucht davon ab. Bei manchen fehlgeschlagenen, vom Guthabenkonto bezahlten Anfragen fallen Bearbeitungsgebühren an, die wir zum Selbstkostenpreis ohne Aufschlag weitergeben. Die Fehlerantwort zeigt den berechneten Betrag.

Get the Google Flights price calendar for a route: the lowest fare for every departure date across a window of up to 120 days, one way or as a round trip of a fixed length, with the return date of each round trip, a flag on every date within 5% of the cheapest, and the cheapest date of the window, as normalized JSON. Choose cabin class, adults and currency. Prices are the total for all passengers; dates with no fare are left out. Die Antwort ist normalisiertes JSON mit demselben Envelope, den jeder AnyAPI-Endpoint liefert, sodass das Parsen eines zweiten Endpoints nur eine geänderte URL bedeutet.

In den letzten 30 Tagen waren 100,0% der Google Flights Calendar-Aufrufe über AnyAPI erfolgreich, bei einer mittleren Antwortzeit von 1,3 Sekunden über 1 gemessene Aufrufe. Das sind AnyAPIs eigene Messungen des Traffics durch das Gateway, laufend neu berechnet, kein veröffentlichtes Service-Level-Ziel.

Ja. Ein neues AnyAPI-Konto startet mit 0,10 USD Gratis-Guthaben, ohne Karte. Das deckt 117 Google Flights-Calendar-Aufrufe zu je 0,00085 USD.

Sende eine POST-Anfrage an https://api.getanyapi.com/v1/run/google_flights.calendar mit deinem AnyAPI-Schlüssel in einem Header „Authorization: Bearer“ und der Eingabe als JSON-Body. Derselbe Schlüssel und dasselbe Guthabenkonto funktionieren bei jedem AnyAPI-Endpoint.

Nein. Du lädst US-Dollar auf ein Prepaid-AnyAPI-Guthaben, und jede Anfrage bucht davon ab. Es gibt keinen Monatstarif und kein Minimum, und dasselbe Guthaben bezahlt jeden AnyAPI-Endpoint.

Ja. Installiere @getanyapi/sdk von npm für TypeScript oder getanyapi von pip für Python. Beide rufen jeden AnyAPI-Endpoint mit demselben Schlüssel auf, und jeder HTTP-Client funktioniert ebenfalls.

Ja. Ein Agent kann sich mit dem AnyAPI-MCP-Server unter https://api.getanyapi.com/mcp verbinden oder mit einem unauthentifizierten POST an https://api.getanyapi.com/agent/signup einen eigenen kostenlosen Test-Schlüssel erstellen und diesen Endpoint über HTTP aufrufen.
Mehr zum Aufrufen

Weitere Google Flights-Endpoints