{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Scraper: Fares, Calendar & Sellers, $0.50/1K",
    "description": "$0.50/1K flights, no start fee. One of the fastest Google Flights scrapers, with price alerts. No login. Input airports or cities and dates: one-way, round trip, multi-city, cheapest-date calendar, price insight, every seller's fare, nearby airports, Anywhere.",
    "version": "0.1",
    "x-build-id": "a5qRcVf9DYRrqNJLT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/laptime~google-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-laptime-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/laptime~google-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-laptime-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/laptime~google-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-laptime-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",
            "type": "string",
            "description": "Airport code (JFK), a city (New York = JFK, EWR and LGA; non-English names like München work), several codes (JFK,EWR) or a country (Japan = its main airports). One place per line runs one search per place. Lowercase and small typos are fine."
          },
          "destination": {
            "title": "To",
            "type": "string",
            "description": "Airport code (LAX), city (Paris) or country (Spain). \"Anywhere\", \"Europe\" or \"Asia\" lists the cheapest destinations instead of flights. One place per line runs one search per place."
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "Pick a date or type a relative one like \"30 days\" (stays valid when you schedule the run). Google sells flights up to about 330 days ahead. Default: 30 days from today.",
            "default": "30 days"
          },
          "returnDate": {
            "title": "Return date",
            "type": "string",
            "description": "Optional. Leave empty for one-way. Round trips come as whole trips: each row is an outbound + return pair with the trip total. Relative dates (\"37 days\") count from today."
          },
          "adults": {
            "title": "Adults",
            "minimum": 0,
            "maximum": 9,
            "type": "integer",
            "description": "Travellers aged 12+. Prices are the TOTAL for all travellers together (as on Google Flights); pricePerTraveller divides it. Up to 9 travellers in total.",
            "default": 1
          },
          "children": {
            "title": "Children (2–11)",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Optional. Children aged 2–11. Google prices some itineraries for children only after you pick them, so fewer itineraries may come back.",
            "default": 0
          },
          "infantsOnLap": {
            "title": "Infants on lap",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Optional. Infants under 2 on an adult's lap (usually ~10% of the adult fare). At most one per adult.",
            "default": 0
          },
          "infantsInSeat": {
            "title": "Infants in own seat",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Optional. Infants under 2 in their own seat (usually priced like a child).",
            "default": 0
          },
          "cabinClass": {
            "title": "Cabin",
            "enum": [
              "economy",
              "premium-economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin class to price. Mixed-cabin itineraries are marked per flight in the legs field.",
            "default": "economy"
          },
          "tripLength": {
            "title": "Trip length in days (instead of a return date)",
            "minimum": 0,
            "maximum": 330,
            "type": "integer",
            "description": "Optional. Return this many days after departure, e.g. 7. Handy with relative dates and the price calendar (every departure day keeps the same trip length)."
          },
          "routes": {
            "title": "Many routes",
            "type": "array",
            "description": "Optional. Several searches in one run, one per item: [{\"origin\": \"JFK\", \"destination\": \"LHR\", \"departureDate\": \"2026-12-19\", \"returnDate\": \"2026-12-26\"}]. Text works too: \"JFK-LAX 2026-12-19\". An item that can't run gets a free row with the reason; the others still run."
          },
          "multiCityLegs": {
            "title": "Multi-city trip",
            "type": "array",
            "description": "Optional. 2 to 6 legs of one ticket, in travel order: [{\"origin\": \"JFK\", \"destination\": \"LHR\", \"date\": \"2026-12-19\"}, {\"origin\": \"LHR\", \"destination\": \"CDG\", \"date\": \"2026-12-23\"}]. Each row is one whole trip with its total price."
          },
          "startUrls": {
            "title": "Google Flights links",
            "type": "array",
            "description": "Optional. Paste searches from google.com/travel/flights (the link with \"tfs=\"). Route, dates, cabin and travellers come from the link; its currency too, if you leave Currency at USD.",
            "items": {
              "type": "string"
            }
          },
          "maxStops": {
            "title": "Stops",
            "enum": [
              "any",
              "0",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Most stops per direction. Google applies it, so the list fills up with matching flights. Non-stop on a long-haul route can return 0 flights.",
            "default": "any"
          },
          "airlines": {
            "title": "Only these airlines or alliances",
            "type": "array",
            "description": "2-letter airline codes (DL, BA) or alliances ONEWORLD, SKYTEAM, STAR_ALLIANCE. Empty = all airlines.",
            "items": {
              "type": "string"
            }
          },
          "excludeAirlines": {
            "title": "Exclude airlines or alliances",
            "type": "array",
            "description": "2-letter airline codes or alliances to leave out, e.g. NK, F9.",
            "items": {
              "type": "string"
            }
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 1,
            "type": "integer",
            "description": "Only flights at or under this price, in the currency below (Google's own price filter)."
          },
          "maxDurationHours": {
            "title": "Max travel time (hours)",
            "minimum": 1,
            "maximum": 72,
            "type": "integer",
            "description": "Only itineraries whose total travel time, layovers included, is at most this many hours."
          },
          "departureTimeFrom": {
            "title": "Depart after (hour, 0–23)",
            "minimum": 0,
            "maximum": 23,
            "type": "integer",
            "description": "Earliest departure hour of the outbound flight, local time. Example: 6 = from 06:00."
          },
          "departureTimeTo": {
            "title": "Depart before (hour, 1–24)",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Latest departure hour of the outbound flight, local time. Example: 12 = until 12:59."
          },
          "arrivalTimeFrom": {
            "title": "Arrive after (hour, 0–23)",
            "minimum": 0,
            "maximum": 23,
            "type": "integer",
            "description": "Earliest arrival hour of the outbound flight, local time."
          },
          "arrivalTimeTo": {
            "title": "Arrive before (hour, 1–24)",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Latest arrival hour of the outbound flight, local time."
          },
          "checkedBags": {
            "title": "Checked bags in the price",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "Prices include the fee for this many checked bags per traveller (0–2), like Google's bags filter. Compares low-cost and full-service fares fairly. 2 bags go through Google's flight API, which is slower and now and then busy.",
            "default": 0
          },
          "carryOnBag": {
            "title": "Carry-on bag in the price",
            "type": "boolean",
            "description": "Prices include a carry-on bag fee where the fare doesn't include one (low-cost airlines; most US basic fares include a carry-on, so their prices stay the same).",
            "default": false
          },
          "excludeBasicEconomy": {
            "title": "Exclude basic economy",
            "type": "boolean",
            "description": "Leave out basic economy fares (no seat choice, no carry-on on some airlines). US airlines mostly.",
            "default": false
          },
          "lessEmissionsOnly": {
            "title": "Lower emissions only",
            "type": "boolean",
            "description": "Only itineraries Google marks as lower CO2 than typical for the route.",
            "default": false
          },
          "maxLayoverHours": {
            "title": "Max layover (hours)",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Longest connection allowed at any layover. Empty = any."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "best",
              "price",
              "departure",
              "arrival",
              "duration",
              "emissions"
            ],
            "type": "string",
            "description": "Order of the flights, as on Google Flights. \"Best\" is Google's own ranking of price and convenience. Round trips with Best or Cheapest first list the cheapest whole trips first.",
            "default": "best"
          },
          "maxResults": {
            "title": "Flights per search",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Most flights per route and date (Google lists ~10–150). Each flight row is charged; search summaries are free. Default 20.",
            "default": 20
          },
          "returnFlights": {
            "title": "Round trips: outbounds to pair with returns",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "For the top N outbound flights, fetch every return flight; each outbound + return pair is a row with the trip total. 0 = outbound rows only.",
            "default": 3
          },
          "bookingOptions": {
            "title": "Sellers and fares for the top N flights",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Every airline and agency price for the top N flights: seller, fare name (Basic Economy…), checked-bag fees, booking link. Extra event per flight. When Google refuses these lookups the run says so and they aren't charged.",
            "default": 0
          },
          "calendarDays": {
            "title": "Cheapest-date calendar (days)",
            "minimum": 0,
            "maximum": 330,
            "type": "integer",
            "description": "The cheapest fare for each departure day, from the departure date on (up to 330 days). Round trips keep the same trip length. One cheap row per day. When Google refuses it the run says so (not charged).",
            "default": 0
          },
          "calendarOnly": {
            "title": "Calendar only (no flight list)",
            "type": "boolean",
            "description": "Only the cheapest-date calendar and the search summary, without the flight list. Cheapest way to scan many routes for the best dates.",
            "default": false
          },
          "nearbyAirports": {
            "title": "Include nearby airports",
            "type": "boolean",
            "description": "Also search medium and large airports within the radius below on both ends (e.g. EWR and LGA for JFK), in the same search.",
            "default": false
          },
          "nearbyRadiusKm": {
            "title": "Nearby radius (km)",
            "minimum": 10,
            "maximum": 500,
            "type": "integer",
            "description": "How far nearby airports may be from the ones you entered.",
            "default": 150
          },
          "maxItems": {
            "title": "Max charged rows in total",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on flights, calendar days and destinations for the whole run, across all searches. Empty or 0 = no cap."
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "3-letter currency code for every price: USD, EUR, GBP, INR… (€, £ and $ work too).",
            "default": "USD"
          },
          "country": {
            "title": "Country (point of sale)",
            "type": "string",
            "description": "2-letter country Google prices for (US, GB, DE, IN…). Fares and sellers differ by country.",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of airport and airline names, e.g. en, de, fr, es.",
            "default": "en"
          },
          "monitorName": {
            "title": "Monitor name (price tracking)",
            "type": "string",
            "description": "Remembers prices between runs under this name: rows get the previous price and the change. Use one name per schedule, e.g. \"nyc-london-december\"."
          },
          "onlyChanged": {
            "title": "Only new flights and changed prices",
            "type": "boolean",
            "description": "With a monitor name: deliver (and charge) only flights that are new or whose price moved. A run where nothing changed costs $0.",
            "default": false
          },
          "minPriceDrop": {
            "title": "Min price change",
            "minimum": 0,
            "type": "integer",
            "description": "Price moves smaller than this (in your currency) count as unchanged, and alerts need at least this drop. Default 1."
          },
          "alertBelowPrice": {
            "title": "Alert only below this price",
            "minimum": 1,
            "type": "integer",
            "description": "Target fare: alert when a search's cheapest price is at or below it (first time, then on further drops)."
          },
          "alertWebhookUrls": {
            "title": "Alert webhooks (Slack, Discord or any URL)",
            "type": "array",
            "description": "Slack or Discord webhook URLs, or any https URL for JSON. One message per run, only when a price dropped. Schedule the run to get alerts.",
            "items": {
              "type": "string"
            }
          },
          "aiVerdict": {
            "title": "AI: \"is this a good price?\" and the best option",
            "type": "boolean",
            "description": "Per search: a verdict (great deal … very expensive) from Google's price history, the best of the top flights and a one-line reason. Extra event per search.",
            "default": false
          },
          "aiApiKey": {
            "title": "Your own LLM API key (optional)",
            "type": "string",
            "description": "OpenRouter (sk-or-…), OpenAI, Anthropic (sk-ant-…) or Gemini (AIza…). With your key AI events are not charged."
          },
          "aiModel": {
            "title": "AI model (optional)",
            "type": "string",
            "description": "Model id for your key, e.g. gpt-4.1-nano or google/gemini-2.5-flash-lite. Empty = a fast default."
          },
          "telemetry": {
            "title": "Anonymous error reports",
            "type": "boolean",
            "description": "Sends anonymous error and run-end counters (never inputs, outputs, URLs or IDs) so we fix breakages fast. Off = nothing is sent.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}