---
title: "Updated accommodations"
method: POST
path: "/accommodations/details/changes"
tags: ["Accommodations"]
---

# Updated accommodations

`POST /accommodations/details/changes`

Use this endpoint to track accommodations that have opened, closed, or had relevant content updates since a specific timestamp. Changes can include updates to general information, facilities, rooms, photos, payments, and more. <br/>You can:<br/> - Filter results by country or city.<br/> - Use the "next" timestamp from the response to request further updates.<br/><br/>To keep your local accommodation cache up to date, use this endpoint in combination with [accommodations/details](/demand/docs/open-api/demand-api/accommodations/accommodations/details) <br/><br/>The maximum number of IDs returned is approximately 5000 per request.

## Headers

- `X-Affiliate-Id` integer, required

## Request body

- object
  - `last_change` string, date-time, required — The timestamp in ISO-8601 format from which changes to accommodations are returned (inclusive). Only UTC time zone is supported. We support changes for last 24 hours. Format: YYYY-MM-DDTHH:mm:ss+00:00
  - `filters` object — parameter basis which filtering needs to be done. Only one of (countries or cities) must be provided.
    - `countries` string[] — Filter changes based on these countries. The valid full list can be obtained by calling <a href="/demand/docs/open-api/demand-api/commonlocations/common/locations/countries" target="_blank">common/locations/countries</a>.
    - `cities` integer[] — Filter changes based on these cities. The valid full list can be obtained by calling <a href="/demand/docs/open-api/demand-api/commonlocations/common/locations/cities" target="_blank">common/locations/cities</a>.

## Response `200`

Successful response.

- object
  - `request_id` string — Uniquely identifies the request. Please provide this identifier when contacting support.
  - `data` object
    - `changes` object — The list of changed accommodations.
      - `changed` integer[]
      - `closed` integer[]
      - `opened` integer[]
    - `from` string, date-time — ISO 8601 timestamp which indicates the timestamp from which the changes are returned (inclusive).
    - `next` string, date-time — ISO 8601 timestamp which indicates the next timestamp to be used for `last_change`. This will be 1 second after the latest change returned in the result (all changes from the "last" second are returned). NOTE: this field will not be present unless changes are returned. In this case, repeat the call after one minute with the same `last_change` date.
    - `total_changes` integer — Total number of changed accommodation ids returned. If 0, then repeat the call after one minute with the same `last_change` date.

---

[API](https://skmtc.net/booking/apis/booking-com-demand-api.md) · [All operations](https://skmtc.net/booking/apis/booking-com-demand-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/booking/booking-com-demand-api/revisions/e5f3dccae7ca/schema)
