{
  "openapi": "3.0.1",
  "info": {
    "title": "Travel Fare & Hotel Price Intel - Flights, Hotels, Drops",
    "description": "Structured flight fares + hotel prices into one normalized schema. Google Flights has no API and ITA's was discontinued - this liberates the open result pages. Route summaries, cheapest-per-date grid, and monitor-mode price-drop alerts. For OTAs, fare-drop apps, corporate travel, travel fintech.",
    "version": "0.1",
    "x-build-id": "zvZLGvXSzIcLtPlA0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/seibs.co~travel-fare-intel/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-seibs.co-travel-fare-intel",
        "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/seibs.co~travel-fare-intel/runs": {
      "post": {
        "operationId": "runs-sync-seibs.co-travel-fare-intel",
        "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/seibs.co~travel-fare-intel/run-sync": {
      "post": {
        "operationId": "run-sync-seibs.co-travel-fare-intel",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "flight_fares",
              "hotel_prices",
              "route_grid",
              "fare_watch"
            ],
            "type": "string",
            "description": "flight_fares = current fares for each route. hotel_prices = property prices for each destination/date window. route_grid = cheapest-per-date grid across a date window (date-grid enrichment). fare_watch = monitor mode: diff cheapest fares vs the previous scheduled run and emit price-drop alerts.",
            "default": "flight_fares"
          },
          "routes": {
            "title": "Flight routes",
            "maxItems": 50,
            "type": "array",
            "description": "Routes to price (flight_fares / route_grid / fare_watch). Each item: {\"origin\": \"JFK\", \"destination\": \"LAX\", \"departure_date\": \"2026-07-15\", \"return_date\": \"2026-07-22\" (optional, makes it round-trip), \"cabin\": \"economy\" (optional: economy|premium_economy|business|first), \"max_stops\": 1 (optional)}. Use IATA airport codes. For route_grid, departure_date is supplied by date_from/date_to. Hard cap of 50.",
            "default": []
          },
          "destinations": {
            "title": "Hotel destinations",
            "maxItems": 50,
            "type": "array",
            "description": "Destinations to price (hotel_prices mode). Each item: {\"destination\": \"Miami\", \"check_in\": \"2026-07-15\", \"check_out\": \"2026-07-18\"}. Hard cap of 50.",
            "default": []
          },
          "flight_providers": {
            "title": "Flight providers",
            "maxItems": 12,
            "type": "array",
            "description": "Flight metasearch providers. 'google_flights' is fully wired (the open result page parsed via the same protobuf query the site uses). 'skyscanner', 'kayak', 'kiwi' are catalog-registered with the anti-bot pipeline wired (provider parser pending; they return a documented provider_pending note). Pass ['ALL'] for all; leave empty for google_flights.",
            "default": [
              "google_flights"
            ],
            "items": {
              "type": "string"
            }
          },
          "hotel_providers": {
            "title": "Hotel providers",
            "maxItems": 12,
            "type": "array",
            "description": "Hotel price providers: 'google_hotels', 'booking', 'hotels_com'. All catalog-registered with the anti-bot pipeline wired (provider parser pending; they return a documented provider_pending note). Pass ['ALL'] for all; leave empty for google_hotels.",
            "default": [
              "google_hotels"
            ],
            "items": {
              "type": "string"
            }
          },
          "date_from": {
            "title": "Date from (route_grid)",
            "type": "string",
            "description": "Lower bound departure date for route_grid mode (YYYY-MM-DD). The grid prices every date from date_from to date_to per route (capped at 60 days).",
            "default": ""
          },
          "date_to": {
            "title": "Date to (route_grid)",
            "type": "string",
            "description": "Upper bound departure date for route_grid mode (YYYY-MM-DD).",
            "default": ""
          },
          "adults": {
            "title": "Adult passengers",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Number of adult passengers to price (1-9). Default 1.",
            "default": 1
          },
          "min_drop_usd": {
            "title": "Minimum price drop (USD) for an alert",
            "minimum": 0,
            "type": "integer",
            "description": "fare_watch: only flag a price drop when the cheapest fare fell at least this many USD vs the previous run. 0 = any drop.",
            "default": 0
          },
          "min_drop_pct": {
            "title": "Minimum price drop (%) for an alert",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "fare_watch: only flag a price drop when the cheapest fare fell at least this percent vs the previous run. 0 = any drop. A drop must clear BOTH the USD and percent thresholds.",
            "default": 0
          },
          "max_results_per_query": {
            "title": "Max fares/prices per route or destination",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Hard cap on records returned per (provider, route/destination). Default 25.",
            "default": 25
          },
          "contact_email": {
            "title": "Contact email (optional)",
            "type": "string",
            "description": "Optional operator contact added to request headers. Good-citizen practice; not required.",
            "default": ""
          },
          "monitor_webhook_url": {
            "title": "Monitor webhook URL (Slack / email, optional)",
            "type": "string",
            "description": "When this actor runs under an Apify Schedule (monitor mode) or in fare_watch mode, post the change digest (price drops, new/changed fares) to this Slack-compatible webhook URL.",
            "default": ""
          },
          "use_apify_proxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Route requests through Apify Proxy. The DATACENTER tier handles the first (httpx) pass; a RESIDENTIAL tier is provisioned for the anti-bot escalation legs.",
            "default": true
          },
          "use_browser_fallback": {
            "title": "Anti-bot escalation (curl_cffi + browser)",
            "type": "boolean",
            "description": "When a portal serves a Cloudflare/consent/403 challenge, automatically escalate: switch to the RESIDENTIAL proxy and retry with curl_cffi Chrome TLS impersonation, then (if available) a headless browser. Turn off to use plain httpx only.",
            "default": true
          },
          "browser_cdp_url": {
            "title": "Warm browser CDP endpoint (for metasearch providers)",
            "type": "string",
            "description": "Optional. CDP/WebSocket endpoint of an already-running, anti-detect (UC-mode / real Chrome) browser. When set, the browser tier connects to it (inheriting its session + fingerprint) so it clears the consent/Cloudflare walls on the metasearch providers (Skyscanner, Kayak, Booking). Without it, a plain headless Chromium is launched (often blocked). Can also be set as the BROWSER_CDP_URL env var.",
            "default": ""
          },
          "apify_proxy_groups": {
            "title": "Proxy groups (optional override)",
            "type": "array",
            "description": "Override the auto-selected proxy group for the httpx tier. Leave empty to let the actor pick DATACENTER (RESIDENTIAL is always provisioned for escalation legs).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "concurrency": {
            "title": "Max concurrent requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Parallel provider fetches. Fare portals are rate-sensitive; default 4.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}