{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Scraper & Price Tracker",
    "description": "Google Flights prices for any route and date, with price tracking built in: each run says which prices dropped or rose, which flights are new or gone, and the all-time low. Plus total trip cost with a hotel, cheapest dates, layovers, CO2 and Google's low/typical/high verdict. Built for AI agents.",
    "version": "0.1",
    "x-build-id": "16QHY7a665YZBYWY5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wulfcare~google-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wulfcare-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/wulfcare~google-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-wulfcare-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/wulfcare~google-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-wulfcare-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 (airport code)",
            "type": "string",
            "description": "IATA code of the departure airport, e.g. JFK. Several, comma-separated, to search them together: JFK,LGA,EWR."
          },
          "destination": {
            "title": "To (airport code)",
            "type": "string",
            "description": "IATA code of the arrival airport, e.g. LAX (or several: LAX,BUR,LGB)."
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "YYYY-MM-DD, or relative: \"+30 days\", \"in 2 weeks\", \"tomorrow\". Empty = in 30 days."
          },
          "returnDate": {
            "title": "Return date (round trip)",
            "type": "string",
            "description": "Empty = one way. YYYY-MM-DD, or \"+7 days\" counted from the departure date. Round-trip prices are for the whole trip, as on Google Flights."
          },
          "tripDays": {
            "title": "Trip length in days (round trip)",
            "minimum": 0,
            "maximum": 330,
            "type": "integer",
            "description": "Instead of a return date: return this many days after departure. 0 = one way."
          },
          "routes": {
            "title": "More routes",
            "type": "array",
            "description": "Extra routes, one per line: \"SYD-LAX\", \"JFK,EWR-LHR\", \"MEL to AKL\". Each is searched for the same dates and options.",
            "items": {
              "type": "string"
            }
          },
          "departureDays": {
            "title": "Departure dates in a row",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Search this many consecutive departure dates from the first (full flight lists for each). For just the cheapest price per date over a long range, use \"Cheapest dates\" instead.",
            "default": 1
          },
          "maxFlights": {
            "title": "Flights per search",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Flight rows per route and date: Google's \"best\" flights first, then the rest by price. Google lists 50-300. 0 = just the summary row (lowest price, verdict, trip cost).",
            "default": 20
          },
          "cabinClass": {
            "title": "Cabin",
            "enum": [
              "economy",
              "premium-economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Seat class.",
            "default": "economy"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Prices are the total for all passengers.",
            "default": 1
          },
          "children": {
            "title": "Children (2-11)",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Children aged 2-11 (count toward the total price).",
            "default": 0
          },
          "maxStops": {
            "title": "Stops",
            "enum": [
              "any",
              "nonstop",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Most stops a flight may have.",
            "default": "any"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Three-letter code: USD, EUR, GBP, AUD, INR... Google prices directly in it.",
            "default": "USD"
          },
          "trackPrices": {
            "title": "Track prices between runs",
            "type": "boolean",
            "description": "Remember this run's prices and compare the next run with them: every flight gets priceStatus (new, cheaper, pricier, same), previousPrice, priceChange and its lowest price seen; flights no longer listed come out as \"gone\" (free); the summary gets the change in the lowest price and the all-time low. Schedule the Actor (e.g. daily) with the same input. Prices are kept in your named key-value store \"google-flights-tracker-<tracker name>\".",
            "default": false
          },
          "trackerName": {
            "title": "Tracker name",
            "type": "string",
            "description": "Keep separate trackers apart (e.g. \"client-a\", \"summer-trip\"). Letters, digits, dashes.",
            "default": "default"
          },
          "onlyChanges": {
            "title": "Only output changes",
            "type": "boolean",
            "description": "With tracking: output only flights that are new or changed price (plus one summary row per search). You pay only for those rows, so daily monitoring costs almost nothing.",
            "default": false
          },
          "targetPrice": {
            "title": "Target price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional: the summary's belowTargetPrice is true when the lowest price is at or under this (in the chosen currency). Handy for alerts and webhooks."
          },
          "includeHotels": {
            "title": "Add hotel and total trip cost",
            "type": "boolean",
            "description": "Look up the cheapest well-rated hotel (3+ stars, 4+ rating by default) in the destination city on Google Hotels for the stay (arrival to return date, or \"Hotel nights\" for one way), and add tripTotalPrice = flight + hotel to the summary and every flight. No extra charge.",
            "default": false
          },
          "hotelNights": {
            "title": "Hotel nights (one way)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Stay length for one-way searches. Round trips stay until the return date.",
            "default": 3
          },
          "hotelMinRating": {
            "title": "Hotel minimum rating",
            "enum": [
              "0",
              "3.5",
              "4",
              "4.5"
            ],
            "type": "string",
            "description": "Google rating (out of 5) a hotel needs to count.",
            "default": "4"
          },
          "hotelMinStars": {
            "title": "Hotel minimum stars",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Hotel class a hotel needs to count (0 = any). Hostels, dorms and apartments never count, so the trip cost is for a real hotel room.",
            "default": 3
          },
          "cheapestDates": {
            "title": "Cheapest dates",
            "type": "boolean",
            "description": "Also output the cheapest price for every departure date in a range (Google's date grid), one row per date, the cheapest flagged. Round trips keep the same trip length.",
            "default": false
          },
          "cheapestDatesRange": {
            "title": "Days to scan",
            "minimum": 7,
            "maximum": 330,
            "type": "integer",
            "description": "Departure dates from the departure date on.",
            "default": 60
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of airport and airline names (hl=).",
            "default": "en"
          },
          "maxConcurrency": {
            "title": "Requests at once",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Searches sent to Google at the same time.",
            "default": 6
          },
          "residentialFallback": {
            "title": "Fall back to residential proxy",
            "type": "boolean",
            "description": "With the default Apify Proxy: when Google keeps refusing datacenter IPs, finish the run on US residential IPs (no extra charge to you).",
            "default": true
          },
          "proxyConfig": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy (datacenter) works well; the Actor switches IPs on its own when Google slows one down.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}