← Back to marketplace

Traveloka Hotels Flights and Reviews Data

Traveloka hotel rates, rooms, guest reviews and flight offers across Southeast Asian markets, one row per entity.

travel
by kaneliu101 endpoint100% uptime191ms avg

Endpoints

POST/v1/search
$0.0500/req

Search Traveloka hotels, flights and reviews

Request schema

servicestring

Service. What to collect. Auto picks Hotels when you fill Destination, Hotel geo ID or Hotel list URL, and Flights when you fill Origin. Hotels come from Traveloka's own hotel search with live prices for your dates; flights from the flight search page; the other services list links from their Traveloka pages and need no destination.

destinationstring

Destination. Hotels: a city, region or area as you would type it on Traveloka (Bali, Ubud, Bangkok, Singapore). Flights: destination airport IATA code (e.g. DPS). Leave every target empty with Service on Auto for a short example run.

originstring

Origin IATA (flights). Flights: origin airport IATA code (e.g. CGK). Filling it with Service on Auto runs a flight search. With Service = Flights and no codes, the route is CGK to DPS.

hotelListUrlstring

Hotel list URL (optional). A Traveloka hotel area or region URL, such as https://www.traveloka.com/en-id/hotel/indonesia/area/ubud-102771. Returns hotels up to your row limit, with advertised starting prices rather than rates for your dates.

geoIdstring

Hotel geo ID (optional). Traveloka's id of the city/area (e.g. 102746 = Bali). Use it instead of Destination to skip the lookup.

maxResultsinteger

Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).

checkinstring

Check-in. Hotels: check-in date, YYYY-MM-DD. Default: 21 days from today.

checkoutstring

Check-out. Hotels: check-out date, YYYY-MM-DD, after check-in, at most 30 nights. Default: 2 nights.

adultsinteger

Adults. Number of adults.

childreninteger

Children. Number of children. With hotels, set Child ages instead (one age per child).

childAgesarray

Child ages (hotels). One age (0-17) per child, e.g. [7, 10].

roomsinteger

Rooms. Number of hotel rooms.

enrichDetailsboolean

Hotel details and rooms. Add hotel details and separate room rows for up to the first 100 hotels, within your combined row limit. Room rows are billed individually and may be unpriced catalog entries when dated offers are unavailable.

includeReviewsboolean

Hotel reviews. Add reviews shown on the hotel page as separate billed rows, within maxReviews and the combined row limit. This is a sample, not the full review history.

maxReviewsinteger

Max reviews per hotel. Maximum review rows per hotel when includeReviews is enabled, from 1 to 20. Reviews share maxResults with hotel and room rows.

departureDatestring

Departure date. Flights: departure date, YYYY-MM-DD. Default: 28 days from today.

returnDatestring

Return date. Flights (round trip): return date, YYYY-MM-DD. Default: 7 days after departure.

tripTypestring

Trip type. oneway or roundtrip for flights.

cabinClassstring

Cabin class. Flight cabin class.

infantsinteger

Infants. Number of infants.

localestring

Locale. Traveloka site language and market (e.g. en-sg = English, Singapore dollars). Sets the default currency.

currencystring

Currency. Optional currency override (e.g. USD). Defaults to the locale's currency.

domainstring

Domain. Host. Default www.traveloka.com.

requestIdstring

Optional. Your id for this request: repeating it while the job runs returns the same job.

Response schema

{
  "allOf": [
    {
      "type": "object",
      "properties": {
        "jobId": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "running",
            "succeeded",
            "partial",
            "failed",
            "cancelled"
          ]
        },
        "done": {
          "type": "boolean"
        },
        "rowsAvailable": {
          "type": "integer"
        },
        "rowsDelivered": {
          "type": "integer",
          "description": "Rows already delivered (and billed) to you for this job."
        },
        "rowsLimit": {
          "type": "integer",
          "description": "Most rows this job can deliver."
        },
        "estimatedFinishSec": {
          "type": "integer",
          "description": "While running: estimated seconds until done."
        },
        "statusUrl": {
          "type": "string"
        },
        "resultsUrl": {
          "type": "string"
        },
        "expiresAt": {
          "type": "string",
          "format": "date-time"
        },
        "retentionHours": {
          "type": "integer"
        },
        "error": {
          "$ref": "#/components/schemas/ErrorDetail"
        }
      }
    },
    {
      "type": "object",
      "properties": {
        "offset": {
          "type": "integer"
        },
        "nextOffset": {
          "type": "integer"
        },
        "hasMore": {
          "type": "boolean"
        },
        "rowCount": {
          "type": "integer"
        },
        "rowsBilled": {
          "type": "integer",
          "description": "Rows delivered by this response."
        },
        "rows": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/Row"
          }
        },
        "meta": {
          "type": "object",
          "additionalProperties": true
        }
      }
    }
  ]
}

Quick start

Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.

# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call this service
npx @apihubio/cli call "https://proxy.apihub.io/traveloka-com/v1/search" \
  -d '{"service":"hotels","destination":"Bali","origin":"example origin","hotelListUrl":"example hotelListUrl","geoId":"example geoId","maxResults":3,"checkin":"example checkin","checkout":"example checkout","adults":2,"children":0,"childAges":["string"],"rooms":1,"enrichDetails":false,"includeReviews":false,"maxReviews":20,"departureDate":"example departureDate","returnDate":"example returnDate","tripType":"oneway","cabinClass":"ECONOMY","infants":0,"locale":"en-sg","currency":"example currency","domain":"www.traveloka.com","requestId":"example requestId"}'

Or call the proxy directly (curl / any HTTP client):

curl -X POST https://proxy.apihub.io/traveloka-com/v1/search \
  -H "Authorization: Bearer ahk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"service":"hotels","destination":"Bali","origin":"example origin","hotelListUrl":"example hotelListUrl","geoId":"example geoId","maxResults":3,"checkin":"example checkin","checkout":"example checkout","adults":2,"children":0,"childAges":["string"],"rooms":1,"enrichDetails":false,"includeReviews":false,"maxReviews":20,"departureDate":"example departureDate","returnDate":"example returnDate","tripType":"oneway","cabinClass":"ECONOMY","infants":0,"locale":"en-sg","currency":"example currency","domain":"www.traveloka.com","requestId":"example requestId"}'

# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)

Pricing calculator

Estimate your monthly cost for Traveloka Hotels Flights and Reviews Data.

POST /v1/search$0.0500/req
-