{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Scraper - Live Fares, Cheap Flights & Portals",
    "description": "Extract real-time Google Flights itineraries, live airfares, baggage fees, explore anywhere destinations by continent, direct booking links, and lowest-price calendar matrices.",
    "version": "0.0",
    "x-build-id": "T4I3hEm7GfMVNefEv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dev00~google-flights-scraper-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dev00-google-flights-scraper-api",
        "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/dev00~google-flights-scraper-api/runs": {
      "post": {
        "operationId": "runs-sync-dev00-google-flights-scraper-api",
        "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/dev00~google-flights-scraper-api/run-sync": {
      "post": {
        "operationId": "run-sync-dev00-google-flights-scraper-api",
        "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",
        "required": [
          "origin",
          "destination",
          "departureDate"
        ],
        "properties": {
          "aiPrompt": {
            "title": "✨ AI Travel Prompt & Vibe (AI Flight Deals Mode)",
            "type": "string",
            "description": "Natural language travel intent (e.g. 'Week-long trip to a city with great food', 'Romantic beach getaway', 'Skiing in the Alps', 'Cultural history and ancient temples'). Leave empty for standard route search."
          },
          "origin": {
            "title": "Origin Airport (IATA Code or City)",
            "type": "string",
            "description": "Departure airport IATA code (e.g. CDG, JFK, LHR, CMN, DXB).",
            "default": "CDG"
          },
          "destination": {
            "title": "Destination Airport (or 'anywhere')",
            "type": "string",
            "description": "Arrival airport IATA code (e.g. STN, LHR, MIA) or type 'anywhere' to explore destinations.",
            "default": "STN"
          },
          "region": {
            "title": "Explore Region / Continent (When Destination is 'anywhere')",
            "enum": [
              "anywhere",
              "Europe",
              "North America",
              "Asia",
              "Africa",
              "Middle East",
              "South America",
              "Oceania"
            ],
            "type": "string",
            "description": "Filter destination discovery by continent or region.",
            "default": "anywhere"
          },
          "tripType": {
            "title": "Trip Type",
            "enum": [
              "round_trip",
              "one_way"
            ],
            "type": "string",
            "description": "Select round-trip or one-way flight.",
            "default": "round_trip"
          },
          "departureDate": {
            "title": "Departure Date",
            "type": "string",
            "description": "Departure date in YYYY-MM-DD format (e.g. 2026-09-01).",
            "default": "2026-09-01"
          },
          "returnDate": {
            "title": "Return Date (Optional for Round-Trip)",
            "type": "string",
            "description": "Return date in YYYY-MM-DD format (e.g. 2026-09-10). Ignored if trip type is One Way."
          },
          "travelPeriod": {
            "title": "Flexible Travel Period (For Explore Mode)",
            "enum": [
              "1_week",
              "2_weeks",
              "weekend",
              "anytime"
            ],
            "type": "string",
            "description": "Travel duration length for flexible destination search.",
            "default": "1_week"
          },
          "adults": {
            "title": "Adults (Age 12+)",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Number of adult passengers.",
            "default": 1
          },
          "children": {
            "title": "Children (Age 2–11)",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Number of child passengers.",
            "default": 0
          },
          "infantsInSeat": {
            "title": "Infants in Seat (Under 2)",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Number of infants occupying their own seat.",
            "default": 0
          },
          "infantsOnLap": {
            "title": "Infants on Lap (Under 2)",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Number of infants held on lap.",
            "default": 0
          },
          "carryOnBags": {
            "title": "Carry-on Bags",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "Number of carry-on bags per passenger.",
            "default": 0
          },
          "checkedBags": {
            "title": "Checked Bags",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "Number of checked bags per passenger.",
            "default": 0
          },
          "cabinClass": {
            "title": "Cabin Class",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Seating cabin class tier.",
            "default": "economy"
          },
          "maxStops": {
            "title": "Max Stops Filter",
            "enum": [
              "any",
              "0",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Filter flight itineraries by maximum number of stops.",
            "default": "any"
          },
          "maxPrice": {
            "title": "Max Price Budget Cap (Optional)",
            "type": "integer",
            "description": "Maximum total airfare budget per itinerary."
          },
          "currency": {
            "title": "Currency Code",
            "type": "string",
            "description": "Currency code for airfare display (e.g. USD, EUR, GBP, MAD, CAD).",
            "default": "USD"
          },
          "maxItineraries": {
            "title": "Max Itineraries to Scrape",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of flight itineraries to extract.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}