# lastminute.com headline price: `POST /v1/ota/lastminute`

Cost: 12 credits (12 (failed requests are free)). Docs: https://scrapercompany.com/docs/reference/lastminute-price

lastminute.com: one hotel's headline price for one stay.

The stay for one room as lastminute.com's deal card shows it ("Total
price for 2 nights"), in GBP, with the crossed-out price, free
cancellation, pay later and breakfast or room only. There is no room
list, and no tax is itemised. A hotel lastminute.com marks sold out
answers `availability: sold_out`; dates about a year out and past dates
are a 422; a hotel id with no page, or not listed for the stay, is a
404.

Request body (JSON):

- `hotel` (string; required; min length 1, max length 2048): lastminute.com hotel id, or its page URL (`.../one-aldwych_hid-134218`).
- `destination` (string | null; optional; pattern ^[A-Z]{3}-\d{1,12}$): The hotel's city code (`TOR-5370` is London). Omit it and it is read from the hotel's page.
- `check_in` (string (date); required): First night of the stay, `YYYY-MM-DD`.
- `check_out` (string (date) | null; optional): Departure date. An alternative to `nights` — if both are given, this wins.
- `nights` (integer; optional; default 1; min 1, max 30): Length of stay. Ignored when `check_out` is supplied.
- `adults` (integer; optional; default 2; min 1, max 6): Adults in the one room quoted.

Response fields:

- `search_parameters` (object; required)
  - `search_parameters.engine` (string; required; one of lastminute_property)
  - `search_parameters.hotel_id` (string; required)
  - `search_parameters.destination` (string; required): The hotel's city code, e.g. `TOR-5370`.
  - `search_parameters.check_in_date` (string (date); required)
  - `search_parameters.check_out_date` (string (date); required)
  - `search_parameters.nights` (integer; required)
  - `search_parameters.adults` (integer; required)
- `property` (object; required)
  - `property.property_id` (string; required): The lastminute.com hotel id.
  - `property.name` (string | null; required)
  - `property.city` (string | null; required)
  - `property.country_code` (string | null; required)
  - `property.stars` (integer | null; required)
  - `property.url` (string | null; required)
  - `property.destination` (string; required)
  - `property.price_per_night` (number | null; required): `total` divided by the nights.
  - `property.total` (number | null; required): The stay for one room as the deal card shows it; null when sold out.
  - `property.strikethrough_total` (number | null; required): The crossed-out price.
  - `property.currency` (string; required; one of GBP)
  - `property.free_cancellation` (boolean; required)
  - `property.pay_later` (boolean; required)
  - `property.sold_out` (boolean; required)
  - `property.rate_code` (string | null; required)
  - `property.rate_category` (string; required)
  - `property.rate_category_source` (string | null; required)
  - `property.refundable` (boolean | null; required)
  - `property.meal_plan` (string | null; required)
  - `property.rate_code_scope` (string | null; required)
  - `property.availability` (string; required; one of available, sold_out)
  - `property.is_soldout` (boolean | null; required)
  - `property.availability_reason` (string | null; required)
  - `property.min_length_of_stay` (integer | null; required)
  - `property.provenance` (object | null; required): Provenance of the cheapest priced row; null when nothing priced.
- `meta` (object; required)
  - `meta.source` (string; required; one of lastminute)
  - `meta.collection_id` (string; required)
  - `meta.observed_at` (string; required)
  - `meta.nights` (integer; required)
  - `meta.adults` (integer; required)
  - `meta.polls` (integer; required)
  - `meta.elapsed_s` (number; required)
  - `meta.notes` (string; required)

Base URL: `https://api.scrapercompany.com`. Auth: send your key in the `x-api-key` header. A failed request (4xx or 5xx) or an empty result costs 0 credits.

- [Full API reference as one Markdown file](https://scrapercompany.com/llms-full.txt)
- [OpenAPI spec](https://scrapercompany.com/openapi.json)
