{
  "openapi": "3.0.1",
  "info": {
    "title": "Expedia Scraper",
    "description": "Scrape Expedia hotels, property details, guest reviews, and car rentals. Get prices, ratings, filters, and availability — structured and ready to use Expedia API . For Flights RESTapi visit here https://rapidapi.com/matepapava123/api/expedia-data1",
    "version": "1.0",
    "x-build-id": "rEidko4svbHdax89A"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fingolfin~expedia-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fingolfin-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/fingolfin~expedia-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fingolfin-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/fingolfin~expedia-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fingolfin-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": [
          "scrapeType"
        ],
        "properties": {
          "scrapeType": {
            "title": "Scrape Type",
            "enum": [
              "LOCATION_SEARCH",
              "HOTEL_SEARCH",
              "HOTEL_DETAILS",
              "HOTEL_REVIEWS",
              "CAR_SEARCH",
              "CAR_DETAILS"
            ],
            "type": "string",
            "description": "What to scrape. Each type has its own dedicated section below — fill in only the section that matches your choice.",
            "default": "LOCATION_SEARCH"
          },
          "locationSearch": {
            "title": "Location Query",
            "type": "string",
            "description": "Destination name to search for. Returns matching locations with regionId, coordinates, and type. Use the regionId from results in Hotel Search. Used for scrapeType: LOCATION_SEARCH."
          },
          "locationLimit": {
            "title": "Max Suggestions",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of location suggestions to return. Used for scrapeType: LOCATION_SEARCH.",
            "default": 5
          },
          "regionId": {
            "title": "Region ID",
            "type": "string",
            "description": "Expedia region ID for the destination. Get this by running scrapeType: LOCATION_SEARCH first with a destination name. Required for scrapeType: HOTEL_SEARCH."
          },
          "checkIn": {
            "title": "Check-In Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Check-in date in YYYY-MM-DD format. Used for scrapeType: HOTEL_SEARCH, HOTEL_DETAILS."
          },
          "checkOut": {
            "title": "Check-Out Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Check-out date in YYYY-MM-DD format. Used for scrapeType: HOTEL_SEARCH, HOTEL_DETAILS."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of adult guests. Affects hotel availability and pricing. Used for scrapeType: HOTEL_SEARCH.",
            "default": 2
          },
          "childrenAges": {
            "title": "Children Ages",
            "type": "array",
            "description": "Ages of children travelling. Leave empty for no children. Each number is a child's age in years (0–17). Used for scrapeType: HOTEL_SEARCH.",
            "default": []
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of hotel results to return. Lower values run faster and cost less. Used for scrapeType: HOTEL_SEARCH, CAR_SEARCH.",
            "default": 50
          },
          "hotelFilters": {
            "title": "Hotel Filters (optional)",
            "type": "object",
            "description": "Filter hotel search results. Leave as {} to return all. Run without filters first to see available_filters in the output. Used for scrapeType: HOTEL_SEARCH.\n\nValid values:\n• sort: RECOMMENDED | PRICE_LOW_TO_HIGH | PRICE_HIGH_TO_LOW | DISTANCE | GUEST_RATING\n• star_ratings: [1] [2] [3] [4] [5] or any combination\n• price_min / price_max: integer (per night, in selected currency)\n• guest_rating_min: 60 | 70 | 80 | 90\n• amenities: POOL | WIFI | PARKING | PET_FRIENDLY | GYM | KITCHEN | SPA | BREAKFAST_INCLUDED\n• property_types: HOTEL | APARTMENT | HOSTEL | RESORT | VACATION_RENTAL\n• meal_plans: BREAKFAST_INCLUDED | ALL_INCLUSIVE | FULL_BOARD | HALF_BOARD\n• payment_type: PAY_LATER | FREE_CANCELLATION"
          },
          "propertyId": {
            "title": "Property ID",
            "type": "string",
            "description": "Expedia property ID. You can find this in Hotel Search results under the 'property_id' field. Required for scrapeType: HOTEL_DETAILS, HOTEL_REVIEWS."
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP"
            ],
            "type": "string",
            "description": "Currency for prices. USD uses www.expedia.com, EUR uses euro.expedia.net, GBP uses www.expedia.co.uk. Used for scrapeType: HOTEL_SEARCH, HOTEL_DETAILS, CAR_SEARCH, CAR_DETAILS.",
            "default": "USD"
          },
          "page": {
            "title": "Page (0-based)",
            "minimum": 0,
            "type": "integer",
            "description": "Page index for reviews pagination. 0 = first page. Used for scrapeType: HOTEL_REVIEWS.",
            "default": 0
          },
          "pageSize": {
            "title": "Reviews Per Page",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Number of reviews to fetch per page. Maximum 50. Used for scrapeType: HOTEL_REVIEWS.",
            "default": 10
          },
          "sortBy": {
            "title": "Sort Reviews By",
            "type": "string",
            "description": "Sort order for reviews. Leave empty for most relevant. Use values returned in filter_options of a previous reviews call. Used for scrapeType: HOTEL_REVIEWS.",
            "default": ""
          },
          "searchTerm": {
            "title": "Review Search Term",
            "type": "string",
            "description": "Keyword to search within reviews. Example: 'breakfast', 'pool', 'noise'. Used for scrapeType: HOTEL_REVIEWS.",
            "default": ""
          },
          "travelerType": {
            "title": "Traveler Type Filter",
            "enum": [
              "",
              "COUPLE",
              "FAMILY",
              "BUSINESS",
              "SOLO",
              "FRIENDS"
            ],
            "type": "string",
            "description": "Filter reviews by traveler type. Used for scrapeType: HOTEL_REVIEWS.",
            "default": ""
          },
          "pickupSearchTerm": {
            "title": "Pickup Location",
            "type": "string",
            "description": "Pickup location name for car rental. The actor resolves this to an Expedia location automatically. Required for scrapeType: CAR_SEARCH."
          },
          "pickupDatetime": {
            "title": "Pickup Date & Time",
            "type": "object",
            "description": "Pickup date and time. Fields: day (1–31), month (1–12), year (4 digits), hour (0–23, 24-hour — 10=10AM, 14=2PM), minute (0 or 30). Required for scrapeType: CAR_SEARCH."
          },
          "dropoffSearchTerm": {
            "title": "Drop-off Location",
            "type": "string",
            "description": "Drop-off location name. Can be the same as pickup for same-location returns. Required for scrapeType: CAR_SEARCH."
          },
          "dropoffDatetime": {
            "title": "Drop-off Date & Time",
            "type": "object",
            "description": "Drop-off date and time. Fields: day (1–31), month (1–12), year (4 digits), hour (0–23, 24-hour clock), minute (0 or 30). Must be after pickupDatetime. Required for scrapeType: CAR_SEARCH."
          },
          "transferMode": {
            "title": "Transfer Mode",
            "enum": [
              "RENTAL",
              "AIRPORT_TRANSFER"
            ],
            "type": "string",
            "description": "RENTAL for standard self-drive car rental. AIRPORT_TRANSFER for private chauffeur service between airport and hotel. Used for scrapeType: CAR_SEARCH.",
            "default": "RENTAL"
          },
          "carFilters": {
            "title": "Car Filters (optional)",
            "type": "object",
            "description": "Filter car search results. Leave as {} to return all. Run without filters first to see available_filters in the output. Used for scrapeType: CAR_SEARCH.\n\nValid values:\n• sort: RECOMMENDED | TOTAL_PRICE_LOW_TO_HIGH | DISTANCE | TRAVELER_RATING_LOW_TO_HIGH\n• car_types: economy | compact | midsize | standard | fullsize | premium | luxury | minivan | suv | van | convertible\n• vendors: ZE (Hertz) | ZI (Avis) | ZL (National) | AL (Alamo) | ET (Enterprise) | SX (Sixt)\n• price_range: \"0-75\" | \"75-100\" | \"100-200\" | \"200-300\" | \"300-400\" | \"400-500\"\n• capacity: TWO_TO_FIVE | SIX_OR_MORE\n• specs: AUTO_TRANSMISSION | UNLIMITED_MILEAGE | ALL_WHEEL_DRIVE_AND_4X4\n• radius_km: integer (default 10)"
          },
          "carOfferToken": {
            "title": "Car Offer Token",
            "type": "string",
            "description": "Car offer token from a CAR_SEARCH result. Found at detailsContext.carOfferToken in each car result. Required for scrapeType: CAR_DETAILS."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}