API de Google Flights

API de 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.

POST/v1/run/google_flights.calendar
Disponibilidad
100.00%
30d · 1 llamada
Solicitudes
1
30d
Respuesta
1.3s
mediana · 30d

Precios

Precios del endpoint Calendar de la API de Google Flights

Pagas
US$8.50
US$0.85/1k solic., solo por lo que usas. Sin plan mensual.
Tus primeras 117 solicitudes son gratis con el saldo inicial de US$0.10.

Pruébalo

Obtén Calendar de Google Flights en una sola solicitud

Abrir en
Respuesta de ejemplo
Las ejecuciones gratis devuelven solo los primeros 3 resultados. Agrega fondos a una clave para obtener la respuesta completa.
{
  "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"
}

Referencia completa de parámetros y respuesta: cada campo, tipo y ejemplo de este endpoint.

Referencia

Una solicitud, un formato de respuesta.

Cada campo que envías y cada campo que recibes, cada uno con un ejemplo real.

Verificado por última vez el 2026-11-07 · disponibilidad y latencia medidas en 30d

Cuerpo de la solicitud

JSON, enviado por POST a este endpoint.

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

Envías. Un cuerpo JSON pequeño. Los valores que se muestran son ejemplos para reemplazar por los tuyos.

Respuesta

JSON, un valor de ejemplo por campo.

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.

Recibes. Campos con nombre y tipo, con el mismo formato sin importar qué fuente responda.

Preguntas frecuentes

Acerca del endpoint Calendar de la API de Google Flights

El endpoint Calendar de AnyAPI para Google Flights devuelve datos de Google Flights como JSON normalizado con una sola llamada POST a /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 devuelve un único esquema normalizado sin importar qué fuente atienda la solicitud. Cuesta desde US$0.85 por cada 1,000 solicitudes, en dólares estadounidenses, sin suscripción y sin mínimo mensual. En los últimos 30 días, el 100.0% de las llamadas al endpoint Calendar de la API de Google Flights a través de AnyAPI tuvo éxito, con un tiempo de respuesta mediano de 1.3 segundos en 1 llamadas medidas.

Cuesta desde US$0.85 por cada 1,000 solicitudes, en dólares estadounidenses, sin suscripción y sin mínimo mensual. Agregas fondos a una billetera en dólares y cada llamada descuenta de ella. Algunas solicitudes fallidas pagadas con la billetera generan cargos de procesamiento que trasladamos al costo, sin margen; la respuesta de error muestra el monto cobrado.

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. La respuesta es JSON normalizado con el mismo envoltorio que devuelve cada endpoint de AnyAPI, así que procesar un segundo endpoint es solo cambiar la URL.

En los últimos 30 días, el 100.0% de las llamadas al endpoint Calendar de la API de Google Flights a través de AnyAPI tuvo éxito, con un tiempo de respuesta mediano de 1.3 segundos en 1 llamadas medidas. Estas son mediciones propias de AnyAPI sobre el tráfico que pasa por el gateway, recalculadas continuamente, no un objetivo de nivel de servicio publicado.

Sí. Una cuenta nueva de AnyAPI empieza con US$0.10 de saldo gratis, sin tarjeta, que alcanza para 117 llamadas a Calendar de Google Flights a US$0.00085 cada una.

Envía una solicitud POST a https://api.getanyapi.com/v1/run/google_flights.calendar con tu clave de AnyAPI en un encabezado "Authorization: Bearer" y la entrada como cuerpo JSON. La misma clave y la misma billetera sirven para todos los endpoints de AnyAPI.

No. Agregas dólares a un solo saldo prepagado de AnyAPI y cada solicitud descuenta de él. No hay plan mensual ni mínimo, y el mismo saldo paga todos los endpoints de AnyAPI.

Sí. Instala @getanyapi/sdk desde npm para TypeScript o getanyapi desde pip para Python. Ambos llaman a todos los endpoints de AnyAPI con la misma clave, y también sirve cualquier cliente HTTP.

Sí. Un agente puede conectarse al servidor MCP de AnyAPI en https://api.getanyapi.com/mcp, o crear su propia clave de prueba gratis con un solo POST sin autenticar a https://api.getanyapi.com/agent/signup y llamar a este endpoint por HTTP.
Más para llamar

Otros endpoints de Google Flights