Authorization
The host: https://api.worldota.net
.
The API key is the sequence of characters used to send API requests.
The ETG:
- Requires HTTP Basic Authentication via the API key.
- Grants the following API key types:
test
—the test environment.production
—the production environment.
Test environment
Use sandbox API keys only to book the test hotel with hid
- 8473727
or id
- test_hotel_do_not_book
.
Production environment
Use the production API keys to book hotels available via the ETG API.
You may have several production API keys across different contracts.
API key in account
You can find the created API keys in the API section of your contract settings. Access to this section is provided for the Master account only.
API key structure
The API key structure consists of the two values: <KEY_ID>:<API_KEY>
.
KEY_ID
API key ID. Use it as an HTTP Basic Authentication username.
API_KEY
API key access token. Use it as an HTTP Basic Authentication password.
Request limits
Each endpoint has a limit on the number of requests. To discuss changes to these limits, contact your account manager.
The limit is specified in the corresponding header of the call response. The ETG API provides:
- The maximum number of requests allowed per specified period.
- The number of remaining requests in the current period.
- The timestamp indicating the expiration of the limitation period.
X-RateLimit-SecondsNumber
The number of seconds during which requests can be executed within the X-RateLimit-RequestsNumber
.
X-RateLimit-RequestsNumber
The maximum number of requests that can be executed within the X-RateLimit-SecondsNumber
.
X-RateLimit-Remaining
The number of remaining requests in the current period:
- Within the
X-RateLimit-SecondsNumber
. - Out of the
X-RateLimit-RequestsNumber
.
X-RateLimit-Reset
The string with the date and time when the X-RateLimit-SecondsNumber
expires. The format is YYYY-MM-DDTHH:MM:SS
in the UTC+0 time zone.
Limits example
"X-RateLimit-SecondsNumber": 1
"X-RateLimit-RequestsNumber": 10
"X-RateLimit-Remaining": 9
"X-RateLimit-Reset": "2018-08-14T08:54:11"