{
  "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": "dB4cJDEvAf73SOJbe"
  },
  "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. Packages are flight + hotel and need an origin.",
            "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": "Departure city or airport. Required for flights and for packages (flight + hotel), e.g. JFK, Chicago (ORD), Charlottetown (YYG). Not used for hotels, cars, activities or cruises.",
            "default": ""
          },
          "checkin": {
            "title": "Check-in / Pickup Date",
            "type": "string",
            "description": "YYYY-MM-DD for hotels, cars and packages, today or later. Leave empty to search 3 weeks from today.",
            "default": ""
          },
          "checkout": {
            "title": "Check-out / Dropoff Date",
            "type": "string",
            "description": "YYYY-MM-DD, after the check-in date. Leave empty for a 2-night stay.",
            "default": ""
          },
          "departureDate": {
            "title": "Flight Departure Date",
            "type": "string",
            "description": "YYYY-MM-DD for flights (and optional cruises), today or later. Leave empty for 4 weeks from today.",
            "default": ""
          },
          "returnDate": {
            "title": "Flight Return Date",
            "type": "string",
            "description": "YYYY-MM-DD when tripType=roundtrip, after the departure date. Leave empty for a 7-day trip.",
            "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 per destination or route",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Most billed entity rows for each destination search or flight/package route. Default 70; larger numbers are collected in parts of 70. All row types count together. The whole run stops at your maximum total charge. Free Apify plan: up to 200 rows per run and 10 runs of this Actor. Fewer are returned when Expedia has fewer.",
            "default": 70
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Optional ISO currency override. Leave empty to derive it from the Expedia domain.",
            "default": ""
          },
          "locale": {
            "title": "Locale",
            "type": "string",
            "description": "Optional Expedia locale override (e.g. en_US). Leave empty to derive it from the domain.",
            "default": ""
          },
          "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 hint. The production worker obtains its approved exit from the control plane and defaults the country from the Expedia domain.",
            "default": ""
          },
          "workerBaseUrl": {
            "title": "Worker Base URL Override",
            "type": "string",
            "description": "Leave empty. Development override for the worker endpoint: only this Actor's own worker route (Actor env WORKER_BASE_URL) or localhost is accepted; any other URL fails the run as invalid input.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}