{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Flights Real Time API",
    "description": "Supports all basic & advanced filters for oneway & roundtrip flight searches.",
    "version": "0.1",
    "x-build-id": "ctgrFalnbz4gGDAyM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mtnrabi~google-flights-real-time-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mtnrabi-google-flights-real-time-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/mtnrabi~google-flights-real-time-api/runs": {
      "post": {
        "operationId": "runs-sync-mtnrabi-google-flights-real-time-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/mtnrabi~google-flights-real-time-api/run-sync": {
      "post": {
        "operationId": "run-sync-mtnrabi-google-flights-real-time-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": [
          "endpoint",
          "departure_date",
          "from_airport",
          "to_airport"
        ],
        "properties": {
          "endpoint": {
            "title": "Endpoint",
            "enum": [
              "oneway",
              "roundtrip"
            ],
            "type": "string",
            "description": "Which search type to run.",
            "default": "oneway"
          },
          "departure_date": {
            "title": "Departure date",
            "type": "string",
            "description": "Departure date in YYYY-MM-DD format."
          },
          "return_date": {
            "title": "Return date (roundtrip only)",
            "type": "string",
            "description": "Return date in YYYY-MM-DD format. Required for roundtrip."
          },
          "from_airport": {
            "title": "From airport",
            "type": "string",
            "description": "IATA code of the departure airport (e.g. TLV, JFK)."
          },
          "to_airport": {
            "title": "To airport",
            "type": "string",
            "description": "IATA code of the destination airport."
          },
          "max_stops": {
            "title": "Max stops (oneway)",
            "type": "integer",
            "description": "Maximum number of stops for one-way searches."
          },
          "max_departure_stops": {
            "title": "Max departure stops (roundtrip)",
            "type": "integer",
            "description": "Maximum stops on the outbound leg."
          },
          "max_return_stops": {
            "title": "Max return stops (roundtrip)",
            "type": "integer",
            "description": "Maximum stops on the return leg."
          },
          "airline_codes": {
            "title": "Airline codes (oneway)",
            "type": "array",
            "description": "Include only these airline IATA codes.",
            "items": {
              "type": "string"
            }
          },
          "exclude_airline_codes": {
            "title": "Exclude airline codes (oneway)",
            "type": "array",
            "description": "Exclude these airline IATA codes.",
            "items": {
              "type": "string"
            }
          },
          "departure_airline_codes": {
            "title": "Departure airline codes (roundtrip)",
            "type": "array",
            "description": "Include only these airlines on the outbound leg.",
            "items": {
              "type": "string"
            }
          },
          "departure_exclude_airline_codes": {
            "title": "Departure exclude airline codes (roundtrip)",
            "type": "array",
            "description": "Exclude these airlines on the outbound leg.",
            "items": {
              "type": "string"
            }
          },
          "return_airline_codes": {
            "title": "Return airline codes (roundtrip)",
            "type": "array",
            "description": "Include only these airlines on the return leg.",
            "items": {
              "type": "string"
            }
          },
          "return_exclude_airline_codes": {
            "title": "Return exclude airline codes (roundtrip)",
            "type": "array",
            "description": "Exclude these airlines on the return leg.",
            "items": {
              "type": "string"
            }
          },
          "departure_time_min": {
            "title": "Departure time min (oneway, hour 0-23)",
            "type": "integer",
            "description": "Earliest departure hour for one-way (0-23)."
          },
          "departure_time_max": {
            "title": "Departure time max (oneway, hour 0-23)",
            "type": "integer",
            "description": "Latest departure hour for one-way (0-23)."
          },
          "arrival_time_min": {
            "title": "Arrival time min (oneway, hour 0-23)",
            "type": "integer",
            "description": "Earliest arrival hour for one-way (0-23)."
          },
          "arrival_time_max": {
            "title": "Arrival time max (oneway, hour 0-23)",
            "type": "integer",
            "description": "Latest arrival hour for one-way (0-23)."
          },
          "departure_departure_time_min": {
            "title": "Outbound departure time min (roundtrip, hour 0-23)",
            "type": "integer",
            "description": "Earliest outbound departure hour (0-23)."
          },
          "departure_departure_time_max": {
            "title": "Outbound departure time max (roundtrip, hour 0-23)",
            "type": "integer",
            "description": "Latest outbound departure hour (0-23)."
          },
          "departure_arrival_time_min": {
            "title": "Outbound arrival time min (roundtrip, hour 0-23)",
            "type": "integer",
            "description": "Earliest outbound arrival hour (0-23)."
          },
          "departure_arrival_time_max": {
            "title": "Outbound arrival time max (roundtrip, hour 0-23)",
            "type": "integer",
            "description": "Latest outbound arrival hour (0-23)."
          },
          "return_departure_time_min": {
            "title": "Return departure time min (roundtrip, hour 0-23)",
            "type": "integer",
            "description": "Earliest return departure hour (0-23)."
          },
          "return_departure_time_max": {
            "title": "Return departure time max (roundtrip, hour 0-23)",
            "type": "integer",
            "description": "Latest return departure hour (0-23)."
          },
          "return_arrival_time_min": {
            "title": "Return arrival time min (roundtrip, hour 0-23)",
            "type": "integer",
            "description": "Earliest return arrival hour (0-23)."
          },
          "return_arrival_time_max": {
            "title": "Return arrival time max (roundtrip, hour 0-23)",
            "type": "integer",
            "description": "Latest return arrival hour (0-23)."
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Currency code (default: usd).",
            "default": "usd"
          },
          "max_price": {
            "title": "Max price",
            "type": "integer",
            "description": "Maximum price filter."
          },
          "seat_type": {
            "title": "Seat type",
            "type": "integer",
            "description": "1 = Economy, 3 = Business."
          },
          "passengers": {
            "title": "Passengers",
            "type": "array",
            "description": "List of passenger age codes.",
            "items": {
              "type": "integer"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}