{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Scraper API",
    "description": "🔥 $0.40/1K results 🔥 ✈️ Scrape live Google Flights prices, airlines, schedules, stops, layovers, aircraft, CO₂ data and booking links. Supports one-way, round-trip and multi-city searches with clean JSON, CSV, API and MCP output. ⚡ Fast, reliable and built for fare tracking.",
    "version": "0.1",
    "x-build-id": "fozl0t032u46OCrNJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/poidata~google-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-poidata-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/poidata~google-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-poidata-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/poidata~google-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-poidata-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": {
          "departure": {
            "title": "From (airport)",
            "type": "string",
            "description": "Departure airport code (IATA), e.g. JFK."
          },
          "arrival": {
            "title": "To (airport)",
            "type": "string",
            "description": "Arrival airport code (IATA), e.g. LHR."
          },
          "outboundDate": {
            "title": "Outbound Date",
            "type": "string",
            "description": "Departure date, e.g. 2026-11-25."
          },
          "returnDate": {
            "title": "Return Date",
            "type": "string",
            "description": "Optional return date for a round-trip search, e.g. 2026-12-02. Leave empty for one-way."
          },
          "searches": {
            "title": "Searches (advanced / batch)",
            "type": "array",
            "description": "Run multiple searches in one run. Add one row per search as DEP-ARR-DATE (one-way, e.g. JAX-LAX-2026-08-31) or DEP-ARR-DATE-RETURN (round-trip, e.g. JAX-LAX-2026-08-31-2026-09-07). Leave empty to use the single From / To / Date fields above. When set together with Multi-city legs, Multi-city legs wins.",
            "items": {
              "type": "string"
            }
          },
          "multiCityLegs": {
            "title": "Multi-city legs (advanced)",
            "type": "array",
            "description": "For multi-city trips only. Add one row per leg as ORIGIN-DESTINATION-DATE, e.g. LAX-JFK-2026-08-04. When set, this overrides the From / To / dates above. Leave empty for one-way or round-trip.",
            "items": {
              "type": "string"
            }
          },
          "cabinClass": {
            "title": "Cabin Class",
            "enum": [
              "Economy",
              "Premium economy",
              "Business",
              "First"
            ],
            "type": "string",
            "description": "Cabin class for all searches, e.g. Economy, Business.",
            "default": "Economy"
          },
          "adults": {
            "title": "Adults",
            "type": "integer",
            "description": "Number of adult passengers, e.g. 2.",
            "default": 1
          },
          "children": {
            "title": "Children",
            "type": "integer",
            "description": "Number of child passengers, e.g. 1.",
            "default": 0
          },
          "infants": {
            "title": "Infants",
            "type": "integer",
            "description": "Number of infants travelling on an adult's lap, e.g. 1.",
            "default": 0
          },
          "maxStops": {
            "title": "Max Stops",
            "enum": [
              "Any",
              "Nonstop",
              "1 stop",
              "2+ stops"
            ],
            "type": "string",
            "description": "Maximum number of stops, e.g. Nonstop for direct flights only."
          },
          "maxPrice": {
            "title": "Max Price",
            "type": "integer",
            "description": "Maximum price in the selected currency, e.g. 800."
          },
          "maxDuration": {
            "title": "Max Duration (minutes)",
            "type": "integer",
            "description": "Maximum total trip duration in minutes, e.g. 600 (10 hours)."
          },
          "airlines": {
            "title": "Airlines",
            "type": "array",
            "description": "Restrict results to these airline codes (IATA), e.g. AA, UA, LH.",
            "items": {
              "type": "string"
            }
          },
          "alliance": {
            "title": "Alliance",
            "enum": [
              "None",
              "STAR_ALLIANCE",
              "ONEWORLD",
              "SKYTEAM"
            ],
            "type": "string",
            "description": "Restrict results to an airline alliance, e.g. STAR_ALLIANCE.",
            "default": "None"
          },
          "excludeBasic": {
            "title": "Exclude Basic Economy",
            "type": "boolean",
            "description": "Exclude basic-economy fares from results. Set to Yes to skip them.",
            "default": false
          },
          "departureTimeEarliest": {
            "title": "Departure Time (earliest)",
            "type": "string",
            "description": "Earliest departure time, e.g. 06:00."
          },
          "departureTimeLatest": {
            "title": "Departure Time (latest)",
            "type": "string",
            "description": "Latest departure time, e.g. 22:00."
          },
          "arrivalTimeEarliest": {
            "title": "Arrival Time (earliest)",
            "type": "string",
            "description": "Earliest arrival time, e.g. 06:00."
          },
          "arrivalTimeLatest": {
            "title": "Arrival Time (latest)",
            "type": "string",
            "description": "Latest arrival time, e.g. 22:00."
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "Best",
              "Price",
              "Duration",
              "Departure time",
              "Arrival time"
            ],
            "type": "string",
            "description": "Result ordering, e.g. Price to see cheapest first.",
            "default": "Best"
          },
          "showAllResults": {
            "title": "Show All Results",
            "type": "boolean",
            "description": "Fetch more results (paginate) instead of only the best/other flights. Set to Yes for a fuller list.",
            "default": false
          },
          "maxPages": {
            "title": "Max Pages",
            "type": "integer",
            "description": "Maximum result pages to fetch per search, e.g. 2.",
            "default": 1
          },
          "topN": {
            "title": "Top N Expansion",
            "type": "integer",
            "description": "Expand the top N best itineraries into individual entries, e.g. 10.",
            "default": 5
          },
          "includeBookingDetails": {
            "title": "Include Booking Details",
            "type": "boolean",
            "description": "Fetch per-itinerary booking options: prices from different booking providers (airline direct / agents) plus baggage info, and booking links. Set to Yes to include them for one-way, round-trip and multi-city searches (top results).",
            "default": false
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Currency for prices and price filters, e.g. USD, EUR, INR.",
            "default": "USD"
          },
          "hl": {
            "title": "Language (hl)",
            "type": "string",
            "description": "Google Flights interface language, e.g. en-US, de-DE.",
            "default": "en-US"
          },
          "country": {
            "title": "Country (gl)",
            "type": "string",
            "description": "Google Flights country code, e.g. US, DE.",
            "default": "US"
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}