{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Scraper - Fares, Price Calendar & Insights",
    "description": "Scrape Google Flights fares for any route and date: price, airlines, flight numbers, stops, layovers, times, aircraft, CO2, price level and history, price calendar, return flights, booking links. From $0.08/1K rows.",
    "version": "1.0",
    "x-build-id": "ENVpQu9ncorBUnzLU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lagenuina_agency~google-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lagenuina_agency-google-flights-scraper",
        "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/lagenuina_agency~google-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lagenuina_agency-google-flights-scraper",
        "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/lagenuina_agency~google-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lagenuina_agency-google-flights-scraper",
        "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": {
          "origin": {
            "title": "Origin airport",
            "type": "string",
            "description": "3-letter IATA airport code, e.g. <code>JFK</code>, <code>LHR</code>, <code>MXP</code>. Required unless you fill <b>routes</b> (empty input runs a demo search LHR → JFK)."
          },
          "destination": {
            "title": "Destination airport",
            "type": "string",
            "description": "3-letter IATA airport code, e.g. <code>JFK</code>, <code>CDG</code>, <code>BKK</code>."
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "<code>YYYY-MM-DD</code>, or days from today like <code>30 days</code> (handy for scheduled runs). Empty = 30 days from today."
          },
          "returnDate": {
            "title": "Return date",
            "type": "string",
            "description": "Leave empty for one-way. <code>YYYY-MM-DD</code> or days from today. Round-trip prices are the total for both directions."
          },
          "routes": {
            "title": "Routes (batch)",
            "type": "array",
            "description": "Search many routes in one run. Each item: <code>{\"origin\": \"LHR\", \"destination\": \"JFK\", \"departureDate\": \"2026-12-10\", \"returnDate\": \"2026-12-17\"}</code>. When set, the single route above is ignored."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Passengers aged 12+. Prices are the total for all passengers (max 9 passengers in all).",
            "default": 1
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Aged 2–11.",
            "default": 0
          },
          "infantsInSeat": {
            "title": "Infants in seat",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Under 2, with their own seat.",
            "default": 0
          },
          "infantsOnLap": {
            "title": "Infants on lap",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Under 2, on an adult's lap.",
            "default": 0
          },
          "cabinClass": {
            "title": "Cabin class",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Economy, premium economy, business or first.",
            "default": "economy"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "ISO code for prices: <code>USD</code>, <code>EUR</code>, <code>GBP</code>, <code>INR</code>…",
            "default": "USD"
          },
          "market": {
            "title": "Country (point of sale)",
            "type": "string",
            "description": "Two-letter country code, e.g. <code>US</code>, <code>GB</code>, <code>IT</code>, <code>DE</code>. Fares can differ by country.",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of airport and airline names, e.g. <code>en</code>, <code>it</code>, <code>de</code>.",
            "default": "en"
          },
          "maxStops": {
            "title": "Max stops",
            "enum": [
              "any",
              "0",
              "1",
              "2"
            ],
            "type": "string",
            "description": "<code>any</code>, <code>0</code> nonstop only, <code>1</code> up to one stop, <code>2</code> up to two stops.",
            "default": "any"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "best",
              "price",
              "duration",
              "departure"
            ],
            "type": "string",
            "description": "Google's own ranking (best), or by price, duration or departure time.",
            "default": "best"
          },
          "maxResults": {
            "title": "Max itineraries per search",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Upper limit of flight rows per route.",
            "default": 100
          },
          "airlines": {
            "title": "Only these airlines",
            "type": "array",
            "description": "IATA airline codes to keep, e.g. <code>BA</code>, <code>AA</code>. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "excludeAirlines": {
            "title": "Exclude airlines",
            "type": "array",
            "description": "IATA airline codes to drop, e.g. <code>FR</code>.",
            "items": {
              "type": "string"
            }
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Drop flights above this price (selected currency)."
          },
          "maxDurationMinutes": {
            "title": "Max total duration (minutes)",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. <code>720</code> for 12 hours."
          },
          "maxLayoverMinutes": {
            "title": "Max layover (minutes)",
            "minimum": 0,
            "type": "integer",
            "description": "Drop itineraries with any layover longer than this."
          },
          "departureTimeFrom": {
            "title": "Departure from",
            "type": "string",
            "description": "Earliest local departure time, e.g. <code>06:00</code>."
          },
          "departureTimeTo": {
            "title": "Departure to",
            "type": "string",
            "description": "Latest local departure time, e.g. <code>12:00</code>."
          },
          "arrivalTimeFrom": {
            "title": "Arrival from",
            "type": "string",
            "description": "Earliest local arrival time."
          },
          "arrivalTimeTo": {
            "title": "Arrival to",
            "type": "string",
            "description": "Latest local arrival time."
          },
          "includePriceInsights": {
            "title": "Price insights",
            "type": "boolean",
            "description": "Add Google's price level (low / typical / high), typical price range and ~60-day price history to every flight row.",
            "default": true
          },
          "calendarDays": {
            "title": "Price calendar (days)",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Lowest fare for each departure date over this many days starting at the departure date (round trips keep the same trip length). One extra search per day. <code>0</code> = off.",
            "default": 0
          },
          "calendarOnly": {
            "title": "Calendar only",
            "type": "boolean",
            "description": "Return only the price calendar rows: the cheapest way to sweep dates.",
            "default": false
          },
          "resolveReturnFlights": {
            "title": "Resolve return flights",
            "type": "boolean",
            "description": "Round trips: for the top outbound itineraries, fetch the list of return flights (with total price and a booking link for each pair). One extra search per outbound.",
            "default": false
          },
          "maxReturnResolutions": {
            "title": "Outbounds to resolve",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many top outbound itineraries get their return flights.",
            "default": 10
          },
          "maxReturnOptions": {
            "title": "Return options per outbound",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Cheapest first.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy works for Google Flights; keep the default.",
            "default": {
              "useApifyProxy": true
            }
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (s)",
            "minimum": 10,
            "maximum": 120,
            "type": "integer",
            "description": "Per page request.",
            "default": 40
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}