{
  "openapi": "3.0.1",
  "info": {
    "title": "Expedia Scraper - Hotels, Flights, Cars & More",
    "description": "Scrape Expedia hotels, flights, cars, packages, activities & cruises across global domains. Get prices, ratings & listing URLs by destination and dates. Export JSON/CSV. Pay per result — no Expedia login.",
    "version": "0.2",
    "x-build-id": "8P6hCiB2Q50Cdns0w"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~expedia-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-expedia-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/lentic_clockss~expedia-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-expedia-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/lentic_clockss~expedia-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-expedia-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": [
          "service",
          "destination"
        ],
        "properties": {
          "service": {
            "title": "Service / Line of Business",
            "enum": [
              "hotels",
              "flights",
              "cars",
              "packages",
              "activities",
              "cruises"
            ],
            "type": "string",
            "description": "Expedia product line to scrape. Full coverage: hotels, flights, cars, packages, activities, cruises.",
            "default": "hotels"
          },
          "domain": {
            "title": "Expedia Domain",
            "type": "string",
            "description": "Regional Expedia host (e.g. www.expedia.com, www.expedia.co.uk, www.expedia.com.au).",
            "default": "www.expedia.com"
          },
          "destination": {
            "title": "Destination",
            "type": "string",
            "description": "City/region for hotels/cars/packages/activities/cruises, or arrival airport/city for flights.",
            "default": "Tulsa, OK"
          },
          "regionId": {
            "title": "Region ID",
            "type": "string",
            "description": "Optional Expedia regionId (e.g. NYC=178293). Improves hotel SERP precision.",
            "default": ""
          },
          "origin": {
            "title": "Origin",
            "type": "string",
            "description": "Required for flights (e.g. JFK, LAX, New York) — origin and destination are both required for flights. Optional package origin.",
            "default": ""
          },
          "checkin": {
            "title": "Check-in / Pickup Date",
            "type": "string",
            "description": "YYYY-MM-DD for hotels, cars, packages. Recommended for hotels — without dates Expedia may return generic availability cards.",
            "default": "2026-10-14"
          },
          "checkout": {
            "title": "Check-out / Dropoff Date",
            "type": "string",
            "description": "YYYY-MM-DD for hotels, cars, packages. Recommended for hotels with checkin.",
            "default": "2026-10-16"
          },
          "departureDate": {
            "title": "Flight Departure Date",
            "type": "string",
            "description": "YYYY-MM-DD for flights (and optional cruises).",
            "default": ""
          },
          "returnDate": {
            "title": "Flight Return Date",
            "type": "string",
            "description": "YYYY-MM-DD when tripType=roundtrip.",
            "default": ""
          },
          "tripType": {
            "title": "Flight Trip Type",
            "enum": [
              "oneway",
              "roundtrip"
            ],
            "type": "string",
            "description": "oneway or roundtrip for flights",
            "default": "oneway"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of adult travelers",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Number of children",
            "default": 0
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of hotel rooms",
            "default": 1
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum listings to return. Free-plan users capped at 200.",
            "default": 1
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "ISO currency code",
            "default": "USD"
          },
          "locale": {
            "title": "Locale",
            "type": "string",
            "description": "Expedia locale tag (e.g. en_US)",
            "default": "en_US"
          },
          "sort": {
            "title": "Hotel Sort",
            "type": "string",
            "description": "Hotel SERP sort (e.g. RECOMMENDED)",
            "default": "RECOMMENDED"
          },
          "includeSponsored": {
            "title": "Include Sponsored Ads",
            "type": "boolean",
            "description": "Include sponsored ad cards in results",
            "default": false
          },
          "proxyCountry": {
            "title": "Proxy Country",
            "type": "string",
            "description": "Optional ISO country for Apify RESIDENTIAL proxy (defaults from domain).",
            "default": ""
          },
          "workerBaseUrl": {
            "title": "Worker Base URL Override",
            "type": "string",
            "description": "Optional HTTPS override for the Cloud Run worker. Only allowlisted hosts are accepted (configured worker host, localhost, or ALLOWED_WORKER_HOSTS). Defaults to Actor env WORKER_BASE_URL.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}