{
  "openapi": "3.0.1",
  "info": {
    "title": "Flight Finder - Google Flights and Flexible Dates",
    "description": "Find Google Flights fares across airports and flexible dates. Compare complete one-way and round-trip itineraries by price, duration and stops for your passenger group. $0.02 per successful route/date search plus usage. Baggage and checkout prices are not verified.",
    "version": "0.0",
    "x-build-id": "17aMWnviGG5oCsPVD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/leadproof~flight-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-leadproof-flight-finder",
        "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/leadproof~flight-finder/runs": {
      "post": {
        "operationId": "runs-sync-leadproof-flight-finder",
        "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/leadproof~flight-finder/run-sync": {
      "post": {
        "operationId": "run-sync-leadproof-flight-finder",
        "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": {
          "origins": {
            "title": "Departure airports",
            "type": "array",
            "description": "1-10 actual airport IATA codes. City codes and nearby-airport expansion are not supported.",
            "items": {
              "type": "string"
            }
          },
          "destinations": {
            "title": "Destination airports",
            "type": "array",
            "description": "1-10 actual airport IATA codes. Each route is searched independently.",
            "items": {
              "type": "string"
            }
          },
          "tripType": {
            "title": "Trip type",
            "enum": [
              "one_way",
              "round_trip"
            ],
            "type": "string",
            "description": "One-way or a complete outbound and return itinerary.",
            "default": "round_trip"
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "YYYY-MM-DD. Omit for 30 days from today (UTC). Dates must be within 365 days."
          },
          "departureDateEnd": {
            "title": "Last departure date",
            "type": "string",
            "description": "Optional inclusive end of a 1-31 day departure window. Omit for a fixed date."
          },
          "returnDate": {
            "title": "Fixed return date",
            "type": "string",
            "description": "Optional YYYY-MM-DD. Must follow the entire departure window. Do not combine with nights."
          },
          "minNights": {
            "title": "Minimum nights",
            "minimum": 1,
            "maximum": 28,
            "type": "integer",
            "description": "For round trips without a fixed return date. Omit for 7 nights. Do not send for one-way."
          },
          "maxNights": {
            "title": "Maximum nights",
            "minimum": 1,
            "maximum": 28,
            "type": "integer",
            "description": "For round trips only. Omit to use minimum nights. Maximum 28."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Passengers aged 12 and older. At most 9 passengers in total.",
            "default": 1
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Children aged 2-11, passed as a count to the source. Exact-age fares are not supported. At most 9 passengers in total.",
            "default": 0
          },
          "infantsOnLap": {
            "title": "Infants on lap",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Infants under 2 without their own seat. At most one per adult. At most 9 passengers in total.",
            "default": 0
          },
          "infantsInSeat": {
            "title": "Infants with seats",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Infants under 2 with their own seat. At most 9 passengers in total.",
            "default": 0
          },
          "cabinClass": {
            "title": "Cabin",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Requested cabin passed to the source and checked on returned rows.",
            "default": "economy"
          },
          "currency": {
            "title": "Quote currency",
            "type": "string",
            "description": "Uppercase ISO currency, e.g. USD, EUR or ILS. Seller checkout may use another currency.",
            "default": "USD"
          },
          "market": {
            "title": "Search market",
            "type": "string",
            "description": "Two-letter country code, e.g. US, GB or IL. Seller checkout market may differ.",
            "default": "US"
          },
          "maxStops": {
            "title": "Maximum stops per direction",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "Hard filter, checked again on complete returned legs.",
            "default": 1
          },
          "maxDurationMinutes": {
            "title": "Maximum minutes per direction",
            "minimum": 1,
            "maximum": 2880,
            "type": "integer",
            "description": "Includes layovers. Applied to each direction separately.",
            "default": 1440
          },
          "checkedBagsPerPassenger": {
            "title": "Checked bags required",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Verified per-fare allowance is currently unavailable. With strict baggage mode, requesting bags excludes unknown offers.",
            "default": 0
          },
          "carryOnBagsPerPassenger": {
            "title": "Cabin bags required",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "Verified per-fare allowance is currently unavailable. A policy URL is not proof of inclusion.",
            "default": 0
          },
          "maxResults": {
            "title": "Maximum itineraries",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Distinct itineraries in output. Other seller quotes are nested under alternativeOffers.",
            "default": 20
          },
          "resultsPerSearch": {
            "title": "Itineraries per source search",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Caps source collection. Source may return duplicates or fewer flights.",
            "default": 30
          },
          "maxSearches": {
            "title": "Maximum route/date searches",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Each date and stay-length combination consumes a search slot.",
            "default": 12
          },
          "concurrency": {
            "title": "Parallel searches",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Parallel route/date searches. The default collector runs inside this Actor.",
            "default": 2
          },
          "timeoutSeconds": {
            "title": "Search deadline (seconds)",
            "minimum": 30,
            "maximum": 900,
            "type": "integer",
            "description": "Stops launching searches and aborts known active source runs at the deadline.",
            "default": 240
          },
          "maxPrice": {
            "title": "Maximum quoted group fare",
            "minimum": 0.01,
            "maximum": 1000000,
            "type": "number",
            "description": "Optional maximum in the quote currency. Unknown baggage and payment fees are not included."
          },
          "baggageMode": {
            "title": "Unknown baggage handling",
            "enum": [
              "strict",
              "show_unknown"
            ],
            "type": "string",
            "description": "Strict excludes offers with unknown requested baggage. Show unknown keeps them with explicit warnings.",
            "default": "strict"
          },
          "ranking": {
            "title": "Sort results",
            "enum": [
              "cheapest",
              "best_value",
              "fastest"
            ],
            "type": "string",
            "description": "Cheapest compares quoted group fares. Best value adds your time and stop penalties, not payable charges.",
            "default": "best_value"
          },
          "valuePerHour": {
            "title": "Value of travel time",
            "minimum": 0,
            "maximum": 10000,
            "type": "number",
            "description": "Preference weight in quote-currency units per travel hour. Used only for best-value scoring.",
            "default": 15
          },
          "stopPenalty": {
            "title": "Penalty per stop",
            "minimum": 0,
            "maximum": 10000,
            "type": "number",
            "description": "Preference weight in quote-currency units. Used only for best-value scoring.",
            "default": 30
          },
          "searchMode": {
            "title": "Date coverage",
            "enum": [
              "complete",
              "sample"
            ],
            "type": "string",
            "description": "Complete rejects an input that exceeds the search/cost allowance. Sample checks a deterministic spread and reports incomplete coverage.",
            "default": "complete"
          },
          "maxSourceChargeUsd": {
            "title": "Total source charge allowance (USD)",
            "minimum": 0.01,
            "maximum": 20,
            "type": "number",
            "description": "Sum of reserved source-run charge limits. Parent compute/storage and unreported platform costs are separate.",
            "default": 1
          },
          "sourceChargePerSearchUsd": {
            "title": "Source charge allowance per search (USD)",
            "minimum": 0.01,
            "maximum": 1,
            "type": "number",
            "description": "Passed to each source run as maxTotalChargeUsd. Allowance is never reused after failures.",
            "default": 0.1
          },
          "includeBookingDetails": {
            "title": "Retrieve seller options",
            "type": "boolean",
            "description": "Optional legacy source feature. Our default collector does not retrieve seller offers or baggage. Checkout prices are never verified.",
            "default": false
          },
          "sourceActor": {
            "title": "Flight source Actor",
            "type": "string",
            "description": "Default selects our bundled direct collector, with no child Actor or extra source fee. Alternative owner/name is for private/free development only.",
            "default": "leadproof/google-flights-collector"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}