{
  "openapi": "3.0.1",
  "info": {
    "title": "IHG Hotels Scraper - Rates, Amenities, Guest Reviews",
    "description": "IHG Hotels & Resorts hotels and guest reviews in structured rows: city, landmark or postcode search, or properties by IHG code (LONLS, PARHR). Hotel rows carry availability, stay and nightly rates, rate plans, amenities and up to 40 photos; review rows carry ratings and text. See the Pricing tab.",
    "version": "0.1",
    "x-build-id": "uazE4PSmOV6asfLaO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rl1987~ihg-hotel-api-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rl1987-ihg-hotel-api-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/rl1987~ihg-hotel-api-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rl1987-ihg-hotel-api-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/rl1987~ihg-hotel-api-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rl1987-ihg-hotel-api-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",
        "properties": {
          "mode": {
            "title": "Scraping mode",
            "enum": [
              "search",
              "hotels"
            ],
            "type": "string",
            "description": "Search by destination resolves a place name with IHG's own location lookup and returns the hotels around it. Hotel codes prices specific properties by their IHG code (e.g. LONLS = Hotel Indigo London Leicester Square).",
            "default": "search"
          },
          "destination": {
            "title": "Destination",
            "type": "string",
            "description": "Place to search around, exactly as you would type it into the IHG app: a city ('London'), a district ('Shoreditch, London'), a landmark ('Heathrow Airport') or a postcode. IHG's own lookup picks the match and the resolved place is written to every hotel row in 'searchLocation'."
          },
          "hotelCodes": {
            "title": "IHG hotel codes",
            "type": "array",
            "description": "One or more IHG property codes, as shown in the hotel's IHG URL - e.g. LONLS, PARHR, NYCMH. Codes are matched exactly; a code that does not exist returns no row rather than an error.",
            "items": {
              "type": "string"
            }
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "First night of the stay, as YYYY-MM-DD. Rates are quoted for this stay only. Leave both date fields empty and Search mode prices a stay starting 7 days from today (a note is logged); Hotel codes mode then returns profiles without prices."
          },
          "checkOut": {
            "title": "Check-out date",
            "type": "string",
            "description": "Departure date, as YYYY-MM-DD, later than check-in. The stay may be at most 30 nights."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Adults per room, 1-9. Only hotels that can take this occupancy come back with a price.",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Children per room, 0-8. Child pricing and extra-bed rules are the hotel's own and are not included in the quoted rate.",
            "default": 0
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Number of rooms to price, 1-5. Rates are per room; multiply for a multi-room stay.",
            "default": 1
          },
          "radiusKm": {
            "title": "Search radius (km)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Straight-line radius around the resolved place, 1-200 km. 25 km covers a city and its airports; a small radius can legitimately return no hotels at all.",
            "default": 25
          },
          "includeHotelDetails": {
            "title": "Add hotel profile details",
            "type": "boolean",
            "description": "Adds the hotel's own profile page to each row: name, street address, brand, coordinates, phone, check-in/out times, amenities, room classes and up to 40 photo URLs. This takes one extra request per hotel and bills a 'Hotel detail enrichment' event on top of the hotel row. Turn it off for a cheaper one-request-per-stay price list, where rows carry only the code, price range and distance.",
            "default": true
          },
          "maxReviewsPerHotel": {
            "title": "Guest reviews per hotel",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "How many guest reviews to collect for each hotel, most recent first, 0-200. Each review is delivered and billed as its own row; 0 returns hotel rows only. Reviews are read from each hotel's profile, so they need 'Add hotel profile details' on (a Hotel codes run left without dates fetches profiles automatically); with details off, reviews are skipped and the run says so.",
            "default": 0
          },
          "maxHotels": {
            "title": "Max hotels per search",
            "minimum": 0,
            "type": "integer",
            "description": "Cap the number of hotels taken from one destination search, 0 = all of them. The API returns hotels nearest-first, so the cap keeps the N closest to the resolved place - a central London search at the default 25 km radius returns around 60. Some of the nearest hotels can be CLOSED for your dates (no price); raise the cap, or narrow the radius, to focus the run.",
            "default": 0
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows have been DELIVERED (0 = no limit). Counted after de-duplication, so it limits what you receive and pay for, not what the API returned.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Requests processed in parallel, 1-20. Higher finishes faster; 5 is comfortably inside the API's tolerance.",
            "default": 5
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries per request before it is marked failed (a record of it lands in the 'failed-requests' dataset).",
            "default": 4
          },
          "maxSessionRotations": {
            "title": "Max session rotations",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Retries for a blocked or rate-limited status code (401/403/429), each with a fresh session and proxy. Separate budget from maxRequestRetries.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Egress for every request. Apify Proxy is on by default; residential is the safe choice if IHG's edge starts answering datacenter IPs with a challenge.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}