traveloka.com APItraveloka.com ↗
Access Traveloka hotel data via 3 endpoints: search by property, list hotels by region, and discover popular destinations with prices and ratings.
curl -X GET 'https://api.parse.bot/scraper/fbbb6f69-7fe3-4f0b-bd86-98fd3f029c37/search_hotels' \ -H 'X-API-Key: $PARSE_API_KEY'
Search for hotels similar to a given property. Useful for discovering and listing multiple hotels with names, ratings, prices, and locations.
| Param | Type | Description |
|---|---|---|
| rooms | integer | Number of rooms |
| adults | integer | Number of adults |
| checkin | string | Check-in date (YYYY-MM-DD) |
| checkout | string | Check-out date (YYYY-MM-DD) |
| currency | string | Currency code |
| hotel_idrequired | string | Base hotel ID for the search |
{
"type": "object",
"fields": {
"hotels": "array"
},
"sample": {
"hotels": [
{
"id": "254012",
"name": "Harris Suites FX Sudirman",
"price": {
"amount": "9733",
"currency": "USD"
},
"region": "Senayan",
"location": {
"lat": "-6.2246542736947585",
"lng": "106.80359624326229"
},
"image_url": "https://ik.imagekit.io/...",
"star_rating": "4.0",
"user_rating": "8.6",
"review_count": "6193"
}
]
}
}About the traveloka.com API
The Traveloka API exposes 3 endpoints for retrieving hotel data from Traveloka.com, covering hotel names, star ratings, user ratings, review counts, prices, and location details. Use get_hotels_by_region to list hotels in cities like Bali or Jakarta, search_hotels to find properties similar to a known hotel, or get_popular_destinations to enumerate valid region slugs and geo IDs for region-based queries.
Endpoints and What They Return
get_popular_destinations takes no parameters and returns an array of destination objects, each with a slug (e.g. bali, singapore) and a geo_id (e.g. 102746). These values are required inputs to get_hotels_by_region, making this endpoint the natural starting point for any region-scoped hotel search.
get_hotels_by_region accepts a required region_slug and geo_id (from get_popular_destinations) plus optional checkin and checkout dates in YYYY-MM-DD format. If dates are omitted, checkin defaults to 7 days from today and checkout to one day after. The response includes an array of hotel objects with fields: id, name, location, star_rating, user_rating, num_reviews, price, accommodation_type, image_url, and seo_p, alongside a total_hotels count for the region.
Search by Similar Property
search_hotels takes a required hotel_id and optional occupancy parameters — rooms, adults, checkin, checkout, and currency — then returns an array of hotels similar to the specified property. This is useful when you already know a reference hotel and want to surface alternatives. The currency parameter lets you request prices in a specific denomination across results.
- Build a hotel comparison tool for a specific region using
get_hotels_by_regionwith star_rating and price fields. - Populate a destination picker UI by mapping
get_popular_destinationsslugs to supported cities. - Display user rating and review count alongside pricing for hotels in a city like Bangkok or Jakarta.
- Suggest alternative hotels to a known property using
search_hotelswith a reference hotel_id. - Track nightly price changes for a region by querying
get_hotels_by_regionwith different check-in and check-out dates. - Filter accommodation listings by
accommodation_typeto separate hotels from other lodging categories. - Embed hotel thumbnails in a travel app using the
image_urlfield returned per property.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does Traveloka offer an official developer API?+
What does get_hotels_by_region return beyond basic hotel names?+
id, name, location, star_rating, user_rating, num_reviews, price, accommodation_type, image_url, and seo_p. The response also returns the region slug queried, the checkin and checkout dates used, and a total_hotels count indicating how many hotels exist in that region.Does the API support filtering hotels by price range, star rating, or amenities within a region?+
How do I get valid geo_id and region_slug values for get_hotels_by_region?+
get_popular_destinations returns an array of destination objects each containing a slug and geo_id. Pass those values directly as region_slug and geo_id to get_hotels_by_region. The endpoint documentation also lists a few examples: 102813 for Jakarta and 102746 for Bali.