{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Scraper - Flight Prices, Airlines, Stops & Times",
    "description": "Use this to get Google Flights prices for a route and date. Input: origin and destination IATA codes (e.g. JFK, LAX), departure date, optional return date, passengers, cabin. One result = one itinerary: total price, airlines, flight numbers, stops, layovers, times, CO2. $0.50 per 1,000 results.",
    "version": "1.0",
    "x-build-id": "HNWVjemXAKoTx1JHL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~google-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-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/rel8ble~google-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-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/rel8ble~google-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-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": "From (origin airport)",
            "type": "string",
            "description": "Departure airport. A 3-letter IATA code (\"JFK\"), several comma-separated (\"JFK,EWR,LGA\"), or a Google city id (\"/m/02_286\" = all New York airports). Always set it for your route; if omitted the demo route JFK-LAX is used. Ignored when searches is set."
          },
          "destination": {
            "title": "To (destination airport)",
            "type": "string",
            "description": "Arrival airport. A 3-letter IATA code (\"LAX\"), several comma-separated (\"LHR,LGW\"), or a Google city id. Always set it; if omitted \"LAX\" is used. Ignored when searches is set."
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "Optional. Outbound date, format YYYY-MM-DD, e.g. \"2026-12-03\"; today up to ~11 months ahead. Omit to search 30 days from today."
          },
          "returnDate": {
            "title": "Return date (round trip)",
            "type": "string",
            "description": "Optional. Return date for a round trip, format YYYY-MM-DD, on or after departureDate. Omit for a one-way search."
          },
          "searches": {
            "title": "Multiple searches (optional)",
            "type": "array",
            "description": "Optional. Many routes or dates in one run: JSON array of objects {\"origin\": \"JFK\", \"destination\": \"LAX\", \"departureDate\": \"2026-12-03\", \"returnDate\": \"2026-12-10\"} (returnDate optional). When set, origin/destination/dates above are ignored; passengers, cabin and filters apply to all."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Optional. Passengers aged 12+, integer 1-9. Default 1. Prices are totals for all passengers; max 9 passengers in total.",
            "default": 1
          },
          "children": {
            "title": "Children (2-11)",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Optional. Children aged 2-11, integer 0-8. Default 0. Counts toward the 9-passenger limit.",
            "default": 0
          },
          "infantsInSeat": {
            "title": "Infants in seat",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Optional. Infants under 2 with their own seat, integer 0-8. Default 0. Counts toward the 9-passenger limit.",
            "default": 0
          },
          "infantsOnLap": {
            "title": "Infants on lap",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Optional. Infants under 2 on a lap, integer 0-8, at most one per adult. Default 0.",
            "default": 0
          },
          "cabinClass": {
            "title": "Cabin class",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Optional. Cabin to price: \"economy\" (default), \"premium_economy\", \"business\" or \"first\".",
            "default": "economy"
          },
          "maxStops": {
            "title": "Stops",
            "enum": [
              "any",
              "0",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Optional. Maximum stops each way, as a string: \"any\" (default), \"0\" (nonstop only), \"1\" or \"2\".",
            "default": "any"
          },
          "airlines": {
            "title": "Airlines filter",
            "type": "array",
            "description": "Optional. Only these airlines: list of 2-character IATA codes ([\"AA\", \"DL\", \"BA\"]) or alliances (\"STAR_ALLIANCE\", \"ONEWORLD\", \"SKYTEAM\"). Omit for all airlines.",
            "items": {
              "type": "string"
            }
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Optional. 3-letter ISO 4217 currency code for prices, e.g. \"USD\", \"EUR\", \"GBP\". Default \"USD\".",
            "default": "USD"
          },
          "maxResults": {
            "title": "Max results per search",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Maximum itineraries per search, integer >= 0. Default 50; 0 = all Google shows (typically 10-40 one-way). You pay per itinerary.",
            "default": 50
          },
          "returnFlightsForTopOutbound": {
            "title": "Round trips: expand top N outbound flights",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Optional, round trips only. Fetch return options for the top N outbound flights and output one row per full round trip, integer 0-30. Default 3. 0 = outbound rows only, each with Google's cheapest round-trip price. Each N is one extra request.",
            "default": 3
          },
          "language": {
            "title": "Language (hl)",
            "type": "string",
            "description": "Optional. Google interface language code (hl), e.g. \"en\", \"de\". Default \"en\" (most consistent field values).",
            "default": "en"
          },
          "country": {
            "title": "Country (gl)",
            "type": "string",
            "description": "Optional. 2-letter lowercase country code (gl) Google searches from, e.g. \"us\", \"gb\", \"de\". Can change prices and fares shown. Default \"us\".",
            "default": "us"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Optional, advanced. Number of parallel requests, integer 1-20. Default 5. Leave unset unless the run is very large.",
            "default": 5
          },
          "maxRequestRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Optional, advanced. Retries per failed or blocked request, integer 0-20; each retry uses a new proxy session. Default 6. Leave unset.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional, advanced. Apify Proxy settings object, e.g. {\"useApifyProxy\": true}. Default: Apify Proxy on (datacenter). Leave unset; switch to {\"useApifyProxy\": true, \"apifyProxyGroups\": [\"RESIDENTIAL\"]} only if the run log shows repeated blocks.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}