Retrieve hotel reviews’ incremental dump

Retrieve hotel reviews’ incremental dump

#b2b

https://api.worldota.net/api/b2b/v3/hotel/incremental_reviews/dump/

The call gets the dump with the hotel reviews of the ETG clients whose reviews have been added from the previous update.

ℹ️

The dump:

  • Is incremental.
  • Should be updated every week.

The ETG generates each archive for a single language.

⚠️
  • The ETG can’t share the TripAdvisor reviews via the API.
  • Reviews indexing isn’t allowed.

Request example

curl --user '<KEY_ID>:<API_KEY>' 'https://api.worldota.net/api/b2b/v3/hotel/incremental_reviews/dump/' \
--header 'Content-Type: application/json' \
--data '{
  "language": "en"
}'

Request body

language String required

The language.

ℹ️

The possible values:

  • ar — Arabic.
  • bg — Bulgarian.
  • cs — Czech.
  • da — Danish.
  • de — German.
  • el — Greek.
  • en — English.
  • es — Spanish.
  • fi — Finnish.
  • fr — French.
  • he — Hebrew.
  • hu — Hungarian.
  • it — Italian.
  • ja — Japanese.
  • kk — Kazakh.
  • ko — Korean.
  • nl — Dutch.
  • no — Norwegian.
  • pl — Polish.
  • pt — Portuguese.
  • pt_PT — Portuguese (Portugal).
  • ro — Romanian.
  • ru — Russian.
  • sq — Albanian.
  • sr — Serbian.
  • sv — Swedish.
  • th — Thai.
  • tr — Turkish.
  • uk — Ukrainian.
  • vi — Vietnamese.
  • zh_CN — Simplified Chinese.
  • zh_TW — Traditional Chinese.

Response

url String
The URL for downloading the dump.
last_update DateTime
The last date and time of updating the dump.

Response example

{
  "data": {
    "last_update": "2020-07-01T00:38:13Z",
    "url": "https://example.com/reviews/feed_en.json.gz"
  },
  "debug": null,
  "error": null,
  "status": "ok"
}

Errors

The error field has the value specified in the headers below.

dump_not_ready

The dump is in processing. Try to send the request later.