{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Scraper: Price Calendar & Flight Price Tracker",
    "description": "[$0.30/1K dates] Google Flights scraper & flight price tracker API. Find the cheapest day to fly with a price calendar up to 11 months ahead, get full itineraries, search many routes & airports at once, and get price-drop alerts for cheap holiday flights. No browser, no start fee.",
    "version": "0.1",
    "x-build-id": "0vGvgQ7P3m1VBApmS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wireless_tiramisu~google-flights-price-calendar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wireless_tiramisu-google-flights-price-calendar",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/wireless_tiramisu~google-flights-price-calendar/runs": {
      "post": {
        "operationId": "runs-sync-wireless_tiramisu-google-flights-price-calendar",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/wireless_tiramisu~google-flights-price-calendar/run-sync": {
      "post": {
        "operationId": "run-sync-wireless_tiramisu-google-flights-price-calendar",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "routes": {
            "title": "Routes",
            "type": "array",
            "description": "Routes as ORIGIN-DESTINATION using 3-letter IATA airport codes, e.g. \"JFK-LAX\". Separate several airports with commas to expand every combination: \"JFK,EWR,LGA-MIA,FLL\" gives 6 routes.",
            "items": {
              "type": "string"
            }
          },
          "origins": {
            "title": "Origin airports (multi-origin)",
            "type": "array",
            "description": "Optional. Origin airports (IATA codes). The actor checks every origin × destination combination. Useful for finding the cheapest departure airport.",
            "items": {
              "type": "string"
            }
          },
          "destinations": {
            "title": "Destination airports",
            "type": "array",
            "description": "Optional. Destination airports (IATA codes), combined with each origin above.",
            "items": {
              "type": "string"
            }
          },
          "tripType": {
            "title": "Trip type",
            "enum": [
              "oneWay",
              "roundTrip"
            ],
            "type": "string",
            "description": "One-way or round trip. For round trips, calendar prices are for a fixed trip length (see below).",
            "default": "oneWay"
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "Departure date (YYYY-MM-DD) for the full flight list. Also the default start of the price calendar. Defaults to 30 days from today."
          },
          "returnDate": {
            "title": "Return date (round trip)",
            "type": "string",
            "description": "Return date (YYYY-MM-DD) for round trips. If empty, Trip length is used instead."
          },
          "tripLengthDays": {
            "title": "Trip length in days (round trip)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Number of nights between departure and return for round-trip calendars, e.g. 7 for a week-long holiday trip.",
            "default": 7
          },
          "includeCalendar": {
            "title": "Price calendar (flexible dates)",
            "type": "boolean",
            "description": "Get the lowest price for every departure date in the date range (Google's date grid). About 60 days per request, so it's fast and cheap.",
            "default": true
          },
          "dateRangeStart": {
            "title": "Calendar start date",
            "type": "string",
            "description": "First departure date in the calendar (YYYY-MM-DD). Defaults to the departure date."
          },
          "dateRangeEnd": {
            "title": "Calendar end date",
            "type": "string",
            "description": "Last departure date in the calendar (YYYY-MM-DD). Defaults to 30 days after the start. Up to about 11 months ahead."
          },
          "flightsForCheapestDays": {
            "title": "Full flights for the N cheapest days",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Cheapest-day finder: after building the calendar, also fetch the full flight list (airlines, times, stops) for the N cheapest departure dates of each route. Set 0 to turn it off.",
            "default": 0
          },
          "includeFlights": {
            "title": "Full flights for the departure date",
            "type": "boolean",
            "description": "Fetch every itinerary (price, airlines, times, stops, layovers, flight numbers, aircraft, CO₂, price insights) for the departure date.",
            "default": true
          },
          "maxFlightsPerSearch": {
            "title": "Max flights per search",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of itineraries saved per route and date (best flights first, then the rest by Google's ranking).",
            "default": 20
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 1,
            "type": "integer",
            "description": "Optional. Skip itineraries above this price (in the chosen currency)."
          },
          "stops": {
            "title": "Stops",
            "enum": [
              "any",
              "nonstop",
              "max1",
              "max2"
            ],
            "type": "string",
            "description": "Limit the number of stops. Applies to both the calendar and the flights.",
            "default": "any"
          },
          "cabin": {
            "title": "Cabin class",
            "enum": [
              "economy",
              "premiumEconomy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Seat class.",
            "default": "economy"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Number of adults.",
            "default": 1
          },
          "children": {
            "title": "Children (2-11)",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Number of children.",
            "default": 0
          },
          "infantsInSeat": {
            "title": "Infants in seat",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "Infants with their own seat.",
            "default": 0
          },
          "infantsOnLap": {
            "title": "Infants on lap",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "Infants on an adult's lap (one per adult).",
            "default": 0
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "3-letter currency code for all prices, e.g. USD, EUR, GBP, CAD, AUD, MXN.",
            "default": "USD"
          },
          "country": {
            "title": "Country (point of sale)",
            "type": "string",
            "description": "2-letter country code for the Google market (gl), e.g. us, gb, es, de. Prices can differ by market.",
            "default": "us"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language code (hl) for airline and airport names, e.g. en, es, de, fr.",
            "default": "en"
          },
          "monitorChanges": {
            "title": "Detect price changes between runs",
            "type": "boolean",
            "description": "Compare every price with the previous run (UP / DOWN / SAME / NEW / NOW_AVAILABLE / NOW_UNAVAILABLE) and save the price drops to the ALERTS record. Schedule the actor to get fare alerts.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Optional name for this watchlist. Runs with the same Monitor ID are compared with each other. If empty, an ID is derived from the routes and settings."
          },
          "alertDropPct": {
            "title": "Minimum drop for an alert (%)",
            "minimum": 0,
            "maximum": 90,
            "type": "integer",
            "description": "Only add price drops of at least this percentage to the ALERTS record. 0 = every drop.",
            "default": 0
          },
          "maxRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Each failed request is retried with a fresh session and IP, with exponential backoff.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy is recommended. Datacenter proxy works for most runs.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}