Retrieve hotel dump
https://api.worldota.net/api/b2b/v3/hotel/info/dump/
ℹ️
The call is required.
The call gets the dump of all available ETG hotels as a single archive for a single language. The link to the archive is passed in the url response field. You must open the link to start the downloading. The dump format is the Zstd.
The ETG updates the data every week. To renew your local dump, use the Retrieve hotel incremental dump call.
⚠️
- Any internal content such as photos, descriptions, and others can’t be indexed. It isn’t allowed.
- Any public content such as name, address, amenities, and policies can be indexed.
Request example
curl --user '<KEY_ID>:<API_KEY>' 'https://api.worldota.net/api/b2b/v3/hotel/info/dump/' \
--header 'Content-Type: application/json' \
--data '{
"inventory": "all",
"language": "en"
}'Request body
Response
Response example
{
"data": {
"last_update": "2024-07-01T00:38:13Z",
"url": "https://example.com/feed/dump_en.json.zst"
},
"debug": null,
"error": null,
"status": "ok"
}Dump file structure
The dump is a Zstd archive that contains a file with a list of objects line by line:
{
"address": "Gabriele-Tergit-Promenade 19, Berlin",
"amenity_groups": [
{
"amenities": [
"Common kitchen",
"Kitchen"
]
}
]
},
{
"address": "Passeig De Gracia, 68, Barcelona",
"amenity_groups": [
{
"amenities": [
"Common kitchen",
"Kitchen"
]
}
]
},
{
"address": "Great Cumberland Place, London",
"amenity_groups": [
{
"amenities": [
"Cable TV",
"Locker"
]
}
]
}Field details
The entire dump structure is described in the response of the Retrieve hotel content call.
To decompress the archive you can use, for example, a Zstandard plugin or 7-zip archive manager with Zstandard.
Errors
The error field has the value specified in the headers below.
dump_not_ready
The dump is being updated. Try to download the archive later.