{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Search Scraper",
    "description": "Get the full Google Flights fare table for any route and date: fare, airline, flight number, aircraft, times, stops, layovers and carbon. One-way or return, any cabin, up to nine travellers, in the market you sell into. A search the source refuses is reported as failed, never as \"no flights\".",
    "version": "0.0",
    "x-build-id": "7Yc6AaSXkJnePfmZD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apt_marble~google-flights-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apt_marble-google-flights-search-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/apt_marble~google-flights-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-apt_marble-google-flights-search-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/apt_marble~google-flights-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-apt_marble-google-flights-search-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",
        "required": [
          "origins",
          "destinations",
          "departureDates"
        ],
        "properties": {
          "origins": {
            "title": "Departure airports or cities",
            "type": "array",
            "description": "Where the trip starts. Use three-letter airport codes (JFK, LHR, CDG) or city codes that cover every airport in a city (NYC, LON, PAR). Add several to search several starting points in one run.",
            "items": {
              "type": "string"
            }
          },
          "destinations": {
            "title": "Arrival airports or cities",
            "type": "array",
            "description": "Where the trip ends. Same format as the departure list: airport codes (LAX, DXB, NRT) or city codes (NYC, LON, TYO). Every departure point is searched against every arrival point.",
            "items": {
              "type": "string"
            }
          },
          "departureDates": {
            "title": "Departure dates",
            "type": "array",
            "description": "One or more outbound dates. Write an exact day as 2026-09-15, or a number of days from the day the run starts as +30 — handy for a scheduled run that should always look, say, one month ahead. Fares are published for today and the following 330 days.",
            "items": {
              "type": "string"
            }
          },
          "tripLengthDays": {
            "title": "Return after (nights)",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Leave empty for one-way flights. Set a number of nights to search return trips instead: a departure on 15 September with 7 nights comes back on 22 September. Return results list the outbound flights and the price on each row is the full return fare."
          },
          "cabinClass": {
            "title": "Cabin",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Which cabin to price.",
            "default": "economy"
          },
          "stops": {
            "title": "Stops",
            "enum": [
              "any",
              "nonstop",
              "one_stop_or_fewer",
              "two_stops_or_fewer"
            ],
            "type": "string",
            "description": "Limit how many stops a flight may have. Choosing \"Nonstop only\" is checked against the results, so a run can never quietly hand you connecting flights.",
            "default": "any"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Adult passengers (12+). At most nine passengers in total.",
            "default": 1
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Child passengers (2-11).",
            "default": 0
          },
          "infantsInSeat": {
            "title": "Infants in their own seat",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Infants under 2 travelling in their own seat. Note: this source publishes no flights at all for searches that include an infant, so such a run is expected to come back empty.",
            "default": 0
          },
          "infantsOnLap": {
            "title": "Infants on a lap",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Infants under 2 travelling on an adult's lap; each one needs its own adult. Note: this source publishes no flights at all for searches that include an infant, so such a run is expected to come back empty.",
            "default": 0
          },
          "market": {
            "title": "Market (country you are selling into)",
            "enum": [
              "US",
              "GB",
              "DE",
              "FR",
              "ES",
              "IT",
              "NL",
              "CA",
              "AU",
              "IN",
              "AE",
              "SG",
              "JP",
              "BR",
              "MX",
              "PL",
              "SE",
              "CH",
              "IE",
              "ZA"
            ],
            "type": "string",
            "description": "Fares and availability differ by country. Pick the market you care about and results come back the way travellers there see them.",
            "default": "US"
          },
          "currency": {
            "title": "Currency to ask for",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "NZD",
              "CHF",
              "SEK",
              "NOK",
              "DKK",
              "PLN",
              "CZK",
              "RON",
              "TRY",
              "ILS",
              "AED",
              "SAR",
              "QAR",
              "EGP",
              "ZAR",
              "INR",
              "JPY",
              "KRW",
              "CNY",
              "HKD",
              "SGD",
              "MYR",
              "THB",
              "PHP",
              "IDR",
              "VND",
              "BRL",
              "MXN",
              "MAD"
            ],
            "type": "string",
            "description": "The currency the fares should be quoted in. Every row also states the currency that actually came back, which is what you should read — a source that will not quote your choice for a market answers in its own currency instead.",
            "default": "USD"
          },
          "maxResultsPerSearch": {
            "title": "Maximum flights per search",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many flights to keep for each route and date, cheapest first. A busy route publishes roughly 15-60 flights per day.",
            "default": 100
          },
          "maxSearches": {
            "title": "Maximum searches in this run",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "A safety cap on the total number of route-and-date combinations. Three departure airports, two arrival airports and five dates is thirty searches.",
            "default": 100
          },
          "cheapestOnly": {
            "title": "Keep only the cheapest flight of each search",
            "type": "boolean",
            "description": "Useful for price tracking: one row per route and date, carrying the lowest fare found.",
            "default": false
          },
          "maxPrice": {
            "title": "Maximum fare to keep",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Optional. Drop any flight priced above this figure, in the currency that comes back. Leave empty to keep every fare."
          },
          "maxJourneyMinutes": {
            "title": "Maximum journey length (minutes)",
            "minimum": 60,
            "maximum": 3000,
            "type": "integer",
            "description": "Optional. Ask for flights no longer than this from take-off to landing, layovers included. Leave empty for no limit."
          },
          "includeAirlines": {
            "title": "Keep only these airlines",
            "type": "array",
            "description": "Optional. Two-character airline codes such as BA, AA, LH. A flight is kept when any of its airlines is on the list. Leave empty to keep every airline.",
            "items": {
              "type": "string"
            }
          },
          "parallelSearches": {
            "title": "Searches to run at once",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Higher finishes a large job sooner; lower is gentler on the source. Four suits almost every run.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}