/v1/hotelsSearch hotels
Paginated. With checkIn/checkOut, only hotels with rooms free on those nights.
الصلاحية: search:read
المعاملات
| name | in | type | مطلوب | |
|---|---|---|---|---|
| page | query | number | ||
| limit | query | number | ||
| city | query | string | City name in English, e.g. "Mecca". Matches exactly. | |
| country | query | string | Country name in English. | |
| q | query | string | Free text: hotel name, city or area, in English or Arabic. | |
| checkIn | query | string | With checkOut: only hotels with rooms free on these nights. YYYY-MM-DD. | |
| checkOut | query | string | YYYY-MM-DD | |
| adults | query | number | ||
| children | query | number | ||
| rooms | query | number | ||
| stars | query | string | Star ratings, comma-separated. | |
| minPrice | query | number | Lowest "from" price, in the hotel currency. | |
| maxPrice | query | number | ||
| sortBy | query | priceAsc | priceDesc | starsDesc | starsAsc | nameAsc | newest |
الردود
200401Missing, invalid, expired or revoked API key.403Missing scope, address not allowed, or a browser request.429Rate limit reached; see Retry-After.
مثال
curl "https://api.lifedream.net/v1/hotels" \
-H "Authorization: Bearer $LIFEDREAM_API_KEY"