To access the API, you need to use an API key. The key should be passed in the header of each request.
Request header:
Authorization: Bearer <Your_API_Key>
This endpoint is used to retrieve a list of hotels.
GET /api/hotels
Parameter | Type | Required | Description |
skip | int | no | The index of the first hotel to retrieve results from. Default is 0. |
limit | int | no | The maximum number of results to return. Default: 10. Request example |
GET /api/hotels?skip=10&limit=5
{
"status": "success",
"data": [
{
"id": 11,
“hotel_name”: “Flamingo Hotel”
},
{
"id": 12",
"hotel_name": "Albatros Hotel",
},
{
"id": 13,
"hotel_name": "Herron Hotel",
},
...
]
}
- Maximum number of requests: 1000 per hour.
- Exceeding the request limit will result in a temporary block of the API key