# Traveloka Scraper | Hotels Flights Activities SEA (`lentic_clockss/traveloka-scraper`) Actor

Scrape Traveloka hotels, flights, activities, car rental, airport transfer & trains across SEA locales. Extract hotel IDs, prices, ratings & detail enrich. Export Excel/CSV/JSON. Unofficial — not affiliated with Traveloka.

- **URL**: https://apify.com/lentic\_clockss/traveloka-scraper.md
- **Developed by:** [kane liu](https://apify.com/lentic_clockss) (community)
- **Categories:** Travel, Lead generation, Automation
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.20 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Traveloka Scraper — Hotels, Flights & Activities (SEA)

**Scrape Traveloka hotel search, hotel detail, flight search, activities, car rental, airport transfer, and trains across Southeast Asia locales — then download structured results as Excel, CSV, or JSON.**

Use this Actor as a practical **Traveloka hotels / flights data API** for SEA price monitoring, OTA competitive research, and travel lead enrichment. Pick a locale (for example `en-id` or `en-ph`), choose a service, enter a verified `geoId` or flight route, and get Dataset rows with hotel IDs, names, prices, ratings, areas, and trip metadata.

- Scrape **Traveloka hotel search** by geoId / destination (with optional hotel-detail enrichment)
- Collect **flight fullsearch** signals for IATA routes
- Browse **activities**, **car rental**, **airport transfer**, and **trains** landing / listing surfaces
- Cover SEA locales such as **Indonesia, Malaysia, Singapore, Philippines, Thailand, Vietnam, Australia, Japan, Korea**
- Export to **Excel / CSV / JSON**, or connect Make, n8n, Zapier, Python, or the Apify API
- **Pay per event** — Actor start + each Dataset result; **platform usage is included** (you do not pay separate Apify compute on top)

> **Unofficial tool.** This Actor is not affiliated with, endorsed by, or sponsored by Traveloka or its affiliates. It collects publicly reachable shopping surfaces and does **not** complete bookings, log in, or access private accounts.

***

### What does the Traveloka Scraper do?

Traveloka Scraper lets you **extract structured travel inventory from Traveloka.com** without operating your own anti-bot browser fleet. Give it a `geoId` (hotels), dates, and a service, then start a run.

Under the hood, the Actor:

1. Validates your input (service, locale, geoId / route, dates, enrichment flags)
2. Enforces free-tier caps when you are on a free Apify plan
3. Calls a managed Cloud Run worker (`traveloka-com`) that opens Traveloka pages with residential egress
4. Parses guest-visible hotel / flight / activity signals into normalized records
5. Pushes Dataset rows ready for Excel / CSV / JSON export
6. Writes `RUN_SUMMARY` (and `ERROR_SUMMARY` on failure) to the key-value store

You run it like any other Apify Actor — schedule it, call it from the API, or plug it into automations.

***

### What Traveloka data can I extract?

| Data | Hotels | Hotel detail\* | Flights | Activities | Car / Transfer / Trains |
| --- | :---: | :---: | :---: | :---: | :---: |
| Hotel name / hotelId | ✅ | ✅ | — | — | — |
| Price display / currency | ✅ | ✅ | ✅ | ✅ | ✅ |
| Rating / area / location | ✅ | ✅ | — | ✅ | — |
| Address / lat-lng / facilities | — | ✅ | — | — | — |
| Origin / destination / cabin | — | — | ✅ | — | — |
| Locale / geoId | ✅ | ✅ | ✅ | ✅ | ✅ |
| Listing / product URL | ✅† | ✅ | ✅ | ✅ | ✅ |

\*Enable `enrichDetails` to open a bounded number of hotel detail pages after search (`__NEXT_DATA__.pageProps.hotel` + JSON-LD).\
†Hotel SERP cards often omit stable `<a href>` links; `hotelId` is the durable identity field.

Compared with Traveloka Actors that only collect **hotel reviews** or a **single hotels-search** slice, this Actor covers **hotels + flights + activities + car rental + airport transfer + trains** across multiple SEA locales in one input surface.

***

### Why scrape Traveloka?

Traveloka is one of the largest online travel platforms in Southeast Asia. Teams scrape Traveloka to:

- Monitor **hotel prices and availability** by geo and stay dates
- Compare **flight offer signals** for popular SEA routes (for example MNL–CEB)
- Enrich catalogs with **hotel IDs**, ratings, and location bands
- Track **activities / things to do** landing inventory for market research
- Feed BI dashboards, pricing tools, or AI agents with structured SEA OTA rows

***

***

### More Actors like this

Need another OTA or a different vertical? Use a **dedicated Actor** below for structured fields. Stay on **Traveloka Scraper** for Traveloka hotels and flights across SEA / regional locales.

#### Similar travel & stays scrapers

- [Booking.com Hotels Scraper](https://apify.com/lentic_clockss/booking-hotels-scraper)
- [Airbnb Listings Scraper](https://apify.com/lentic_clockss/airbnb-listings-scraper)
- [Booking.com & Airbnb Scraper](https://apify.com/lentic_clockss/booking-airbnb-scraper)
- [Agoda Scraper](https://apify.com/lentic_clockss/agoda-scraper)
- [Expedia Scraper](https://apify.com/lentic_clockss/expedia-scraper)
- [TripAdvisor Scraper](https://apify.com/lentic_clockss/tripadvisor-scraper)
- [Trip.com Scraper](https://apify.com/lentic_clockss/trip-com-scraper)
- [Despegar Scraper](https://apify.com/lentic_clockss/despegar-scraper)
- [Travelstart Flights Scraper](https://apify.com/lentic_clockss/travelstart-scraper)

#### Prefer another specialized scraper?

If your target has a specialized Actor below, use that first — usually cheaper and more structured than a generic scrape.

**Jobs & Freelance**

- [LinkedIn Jobs Scraper](https://apify.com/lentic_clockss/linkedin-jobs-scraper)
- [Indeed Jobs Scraper](https://apify.com/lentic_clockss/indeed-jobs-scraper)
- [Upwork Jobs Scraper](https://apify.com/lentic_clockss/upwork-jobs-scraper)
- [Glassdoor Scraper](https://apify.com/lentic_clockss/glassdoor-scraper)
- [Fiverr Gigs Scraper](https://apify.com/lentic_clockss/fiverr-programming-tech-gigs-scraper)
- [Bayt Jobs Scraper](https://apify.com/lentic_clockss/bayt-scraper)

**E-commerce**

- [Walmart Product Scraper](https://apify.com/lentic_clockss/walmart-scraper)
- [Amazon Search Scraper](https://apify.com/lentic_clockss/amazon-search-results-collector)
- [Shopee Search Scraper](https://apify.com/lentic_clockss/shopee-search-scraper)
- [Etsy Scraper](https://apify.com/lentic_clockss/etsy-scraper)
- [SHEIN Product Scraper](https://apify.com/lentic_clockss/shein-scraper)
- [Temu Product Scraper](https://apify.com/lentic_clockss/temu-scraper)
- [Target Product Scraper](https://apify.com/lentic_clockss/target-scraper)
- [Allegro Scraper](https://apify.com/lentic_clockss/allegro-scraper)

**Real Estate**

- [Zillow & Zumper Scraper](https://apify.com/lentic_clockss/us-real-estate-scraper)
- [Realtor.com Scraper](https://apify.com/lentic_clockss/realtor-com-scraper)
- [Apartments.com Rental Scraper](https://apify.com/lentic_clockss/apartments-com-rental-scraper)
- [Rightmove Scraper](https://apify.com/lentic_clockss/rightmove-property-scraper)
- [Idealista Scraper](https://apify.com/lentic_clockss/idealista-scraper)
- [realestate.com.au Scraper](https://apify.com/lentic_clockss/realestate-com-au-scraper)

**Social & Content**

- [YouTube Research Scraper](https://apify.com/lentic_clockss/youtube-research-scraper)
- [TikTok Scraper](https://apify.com/lentic_clockss/tiktok-scraper)
- [Reddit Scraper](https://apify.com/lentic_clockss/reddit-scraper)
- [YouTube Shorts Scraper](https://apify.com/lentic_clockss/youtube-shorts-scraper)

**Ads Intelligence**

- [Facebook Ad Library Scraper](https://apify.com/lentic_clockss/facebook-ad-library-scraper)
- [TikTok Ads Scraper](https://apify.com/lentic_clockss/tiktok-ads-top-ads-actor)

**Local & Maps**

- [Google Maps Scraper](https://apify.com/lentic_clockss/google-maps-scraper)

#### General tools

- [Stealth Web Scraper](https://apify.com/lentic_clockss/stealth-web-scraper)
- [Email Risk Validator](https://apify.com/lentic_clockss/email-risk-validator)
- [Phone Number Intelligence](https://apify.com/lentic_clockss/phone-number-intelligence)

→ See the full catalog in [Related Actors](#related-actors) below, or browse [apify.com/lentic\_clockss](https://apify.com/lentic_clockss).

***

### How to scrape Traveloka (no code required)

1. Create a free [Apify](https://apify.com/) account
2. Open [Traveloka Scraper](https://apify.com/lentic_clockss/traveloka-scraper)
3. Choose a **service**: `hotels` (default), `flights`, `activities`, `car_rental`, `airport_transfer`, or `trains`
4. Choose a **locale** (default `en-id`)
5. For hotels: enter a verified **geoId** (+ optional label). For flights: enter **origin** + **destination** IATA codes
6. *(Optional)* Set `checkin` / `checkout`, `enrichDetails`, or `maxResults`
7. Click **Start** and download the Dataset as JSON, CSV, Excel, or JSONL

Start with `maxResults: 5–10` to verify the query, then scale up.

***

### How much does it cost to scrape Traveloka?

This Actor uses **pay-per-event** pricing. You are charged for:

| Event | Price |
| --- | --- |
| Actor Start (`apify-actor-start`) | **$0.005** per start |
| Result (`apify-default-dataset-item`) | **$3.00 / 1,000** results (**$0.003** each) |

**Platform usage costs are included** — you do **not** pay separate Apify compute/proxy usage for this Actor on top of the event prices above.

#### Example cost estimates

| Results collected | Approx. event cost\* |
| --- | ---: |
| 100 | ~$0.31 |
| 1,000 | ~$3.01 |
| 10,000 | ~$30.01 |

\*Assumes one Actor start at default memory billing for start events, plus `$0.003` per Dataset item. Exact start billing can scale with allocated memory (one start event per GB, minimum one).

Free Apify trial credit can cover a small test run — try `maxResults: 5` first.

#### Free-tier caps (Actor developer limits)

| Cap | Value |
| --- | --- |
| Free Apify-plan runs of this Actor | **10** total |
| Free results / run | **200** |
| Paying Apify users | Unlimited runs (schema max still applies) |

These limits are enforced in Actor code (set by the Actor developer, not Apify). When the run cap is hit, the Actor finishes successfully with `RUN_SUMMARY.status = FREE_TIER_LIMIT` and a clear status message.

***

### Input

Open the **Input** tab for the full form. Common fields:

| Field | Description |
| --- | --- |
| `service` | `hotels`, `flights`, `activities`, `car_rental`, `airport_transfer`, `trains` |
| `locale` | Traveloka locale path (`en-id`, `en-ph`, `th-th`, …) |
| `geoId` | **Preferred** for hotels — numeric Traveloka geography id |
| `destination` / `label` | Display text; **do not trust label alone** for geography |
| `checkin` / `checkout` | Stay dates (`YYYY-MM-DD`) |
| `origin` / `destination` | IATA codes for flights |
| `maxResults` | Cap Dataset rows (free plan capped at 200) |
| `enrichDetails` | Optionally enrich a few hotel PDPs |

#### Hotels example

```json
{
  "service": "hotels",
  "locale": "en-ph",
  "geoId": "100883",
  "label": "Malino",
  "checkin": "2026-08-20",
  "checkout": "2026-08-22",
  "maxResults": 20
}
```

#### Flights example

```json
{
  "service": "flights",
  "locale": "en-ph",
  "origin": "MNL",
  "destination": "CEB",
  "departureDate": "2026-08-20",
  "tripType": "oneway",
  "cabinClass": "ECONOMY",
  "maxResults": 10
}
```

***

### Output

You can download the dataset extracted by Traveloka Scraper in **JSON, HTML, CSV, Excel, or JSONL**.

Example hotel row (simplified):

```json
{
  "source": "traveloka.com",
  "service": "hotels",
  "hotelId": "9000007529103",
  "name": "Kampoeng Eropa",
  "priceDisplay": "₱ 5,121.77",
  "rating": 9.3,
  "area": "Malino, Gowa",
  "geoId": "100883",
  "locale": "en-ph",
  "checkin": "2026-08-20",
  "checkout": "2026-08-22"
}
```

***

### Tips for reliable Traveloka hotel scrapes

1. **Prefer `geoId` over pretty city names.** Traveloka search URLs embed `HOTEL_GEO.{geoId}.{label}`. The label can disagree with inventory geography (example: label “Manila” + `geoId=100883` returned Malino/Gowa hotels).
2. Use a **future check-in / check-out** window (about 2–4 weeks ahead) for healthier inventory.
3. Keep `maxResults` modest on first runs, then scale.
4. Use `enrichDetails` only when you need address / facilities / room names — it opens extra detail pages.
5. Do **not** attempt login, booking, or payment automation with this Actor.

***

### Is it legal to scrape Traveloka?

Our scrapers are ethical and do not extract private account data. They only extract what is shown on publicly reachable shopping pages. Results may still contain personal data in some markets; personal data is protected by the GDPR and other regulations. You should not scrape personal data unless you have a legitimate reason. If you are unsure, consult your lawyers. This Actor is **unofficial** and not affiliated with Traveloka.

***

### FAQ

**Why do I need geoId for hotels?**\
Traveloka encodes geography as numeric geo ids. City labels in the URL are display text and can be wrong.

**Can this Actor book hotels or log in?**\
No. Shopping / SERP / detail surfaces only.

**What about flights fare cards?**\
Flight URL construction (`ap` / `dt` / `ps` / `sc`) is supported; fare-card hydration can be intermittent — diagnostics explain empty runs.

**Where can I get help?**\
Open an Issue on the Actor page with your input JSON (redact secrets) and the run URL.

***

### Related Actors

All **77** public Actors from \[[lentic\_clockss](https://apify.com/lentic_clockss)]. Click a name to open the Store detail page.

#### Jobs & Freelance

- [LinkedIn Jobs Scraper](https://apify.com/lentic_clockss/linkedin-jobs-scraper)
- [Bayt Jobs Scraper](https://apify.com/lentic_clockss/bayt-scraper)
- [Fiverr Gigs Scraper](https://apify.com/lentic_clockss/fiverr-programming-tech-gigs-scraper)
- [Freelancer.com Scraper](https://apify.com/lentic_clockss/freelancer-scraper)
- [Glassdoor Scraper](https://apify.com/lentic_clockss/glassdoor-scraper)
- [Himalayas Jobs Scraper](https://apify.com/lentic_clockss/himalayas-jobs-scraper)
- [Indeed Jobs Scraper](https://apify.com/lentic_clockss/indeed-jobs-scraper)
- [Jobicy Remote Jobs Scraper](https://apify.com/lentic_clockss/jobicy-remote-jobs-scraper)
- [RemoteOK Jobs Scraper](https://apify.com/lentic_clockss/remoteok-all-jobs-scraper)
- [SEEK Jobs Scraper](https://apify.com/lentic_clockss/seek-scraper)
- [Upwork Jobs Scraper](https://apify.com/lentic_clockss/upwork-jobs-scraper)

#### Real Estate

- [Zillow & Zumper Scraper](https://apify.com/lentic_clockss/us-real-estate-scraper)
- [Realtor.com Scraper](https://apify.com/lentic_clockss/realtor-com-scraper)
- [99.co Scraper](https://apify.com/lentic_clockss/ninetynine-co-sg-scraper)
- [Realtor.com Agents Scraper](https://apify.com/lentic_clockss/realtor-com-agents-scraper)
- [Apartments.com Rental Scraper](https://apify.com/lentic_clockss/apartments-com-rental-scraper)
- [Bayut Scraper](https://apify.com/lentic_clockss/bayut-uae-scraper)
- [Craigslist Housing Scraper](https://apify.com/lentic_clockss/craigslist-housing-scraper)
- [Daft.ie Scraper](https://apify.com/lentic_clockss/daft-property-scraper)
- [Dot Property Scraper](https://apify.com/lentic_clockss/dot-property-th-scraper)
- [FINN.no Scraper](https://apify.com/lentic_clockss/finn-scraper)
- [Funda Scraper](https://apify.com/lentic_clockss/funda-scraper)
- [Hepsiemlak Scraper](https://apify.com/lentic_clockss/hepsiemlak-scraper)
- [Idealista Scraper](https://apify.com/lentic_clockss/idealista-scraper)
- [Immobiliare.it Scraper](https://apify.com/lentic_clockss/immobiliare-property-scraper)
- [ImmoScout24 Scraper](https://apify.com/lentic_clockss/immobilienscout24-scraper)
- [Naver Land Scraper](https://apify.com/lentic_clockss/naver-land-scraper)
- [OpenSooq Scraper](https://apify.com/lentic_clockss/opensooq-real-estate-scraper)
- [Otodom Scraper](https://apify.com/lentic_clockss/otodom-scraper)
- [Property Finder Scraper](https://apify.com/lentic_clockss/property-finder-uae-scraper)
- [PropertyGuru Scraper](https://apify.com/lentic_clockss/propertyguru-sg-scraper)
- [realestate.com.au Scraper](https://apify.com/lentic_clockss/realestate-com-au-scraper)
- [Realtor.ca Scraper](https://apify.com/lentic_clockss/realtor-ca-scraper)
- [Rightmove Scraper](https://apify.com/lentic_clockss/rightmove-property-scraper)
- [SeLoger Scraper](https://apify.com/lentic_clockss/seloger-property-scraper)
- [SUUMO Scraper](https://apify.com/lentic_clockss/suumo-property-scraper)
- [Zillow Group Scraper](https://apify.com/lentic_clockss/zillow-group-scraper)

#### E-commerce

- [Shopee Search Scraper](https://apify.com/lentic_clockss/shopee-search-scraper)
- [E-commerce Scraper](https://apify.com/lentic_clockss/ecommerce-scraper)
- [1688 Global Product Search Scraper](https://apify.com/lentic_clockss/1688-global-scraper)
- [Allegro Scraper](https://apify.com/lentic_clockss/allegro-scraper)
- [Amazon Search Scraper](https://apify.com/lentic_clockss/amazon-search-results-collector)
- [ASOS Product Scraper](https://apify.com/lentic_clockss/asos-scraper)
- [Cdiscount Product Scraper](https://apify.com/lentic_clockss/cdiscount-scraper)
- [Costco Product Scraper](https://apify.com/lentic_clockss/costco-scraper)
- [Coupang Product Scraper](https://apify.com/lentic_clockss/coupang-scraper)
- [Etsy Scraper](https://apify.com/lentic_clockss/etsy-scraper)
- [Lazada Scraper](https://apify.com/lentic_clockss/lazada-ph-search-results-collector)
- [MercadoLibre Scraper](https://apify.com/lentic_clockss/mercadolibre-scraper)
- [Mercari Japan Scraper](https://apify.com/lentic_clockss/mercari-scraper)
- [Rakuten Japan Scraper](https://apify.com/lentic_clockss/rakuten-scraper)
- [SHEIN Product Scraper](https://apify.com/lentic_clockss/shein-scraper)
- [Target Product Scraper](https://apify.com/lentic_clockss/target-scraper)
- [Temu Product Scraper](https://apify.com/lentic_clockss/temu-scraper)
- [Walmart Product Scraper](https://apify.com/lentic_clockss/walmart-scraper)

#### Travel & Stays

- [Booking.com & Airbnb Scraper](https://apify.com/lentic_clockss/booking-airbnb-scraper)
- [Agoda Scraper](https://apify.com/lentic_clockss/agoda-scraper)
- [Airbnb Listings Scraper](https://apify.com/lentic_clockss/airbnb-listings-scraper)
- [Booking.com Hotels Scraper](https://apify.com/lentic_clockss/booking-hotels-scraper)
- [Despegar Scraper](https://apify.com/lentic_clockss/despegar-scraper)
- [Expedia Scraper](https://apify.com/lentic_clockss/expedia-scraper)
- [Traveloka Scraper](https://apify.com/lentic_clockss/traveloka-scraper)
- [Travelstart Flights Scraper](https://apify.com/lentic_clockss/travelstart-scraper)
- [Trip.com Scraper](https://apify.com/lentic_clockss/trip-com-scraper)
- [TripAdvisor Scraper](https://apify.com/lentic_clockss/tripadvisor-scraper)

#### Social & Content

- [TikTok Scraper](https://apify.com/lentic_clockss/tiktok-scraper)
- [Reddit Scraper](https://apify.com/lentic_clockss/reddit-scraper)
- [YouTube Shorts Scraper](https://apify.com/lentic_clockss/youtube-shorts-scraper)
- [YouTube Research Scraper](https://apify.com/lentic_clockss/youtube-research-scraper)
- [Hacker News Scraper](https://apify.com/lentic_clockss/hacker-news-scraper)

#### Ads Intelligence

- [Facebook Ad Library Scraper](https://apify.com/lentic_clockss/facebook-ad-library-scraper)
- [Google Ads Transparency VN](https://apify.com/lentic_clockss/google-ads-transparency-center-vn)
- [TikTok Ads Scraper](https://apify.com/lentic_clockss/tiktok-ads-top-ads-actor)

#### Local & Maps

- [Google Maps Scraper](https://apify.com/lentic_clockss/google-maps-scraper)

#### General Tools

- [Stealth Web Scraper](https://apify.com/lentic_clockss/stealth-web-scraper)
- [Email Risk Validator](https://apify.com/lentic_clockss/email-risk-validator)
- [Phone Number Intelligence](https://apify.com/lentic_clockss/phone-number-intelligence)

→ Browse the full profile: [apify.com/lentic\_clockss](https://apify.com/lentic_clockss)

# Actor input Schema

## `service` (type: `string`):

Traveloka line of business. Hotels is primary (SERP + optional detail enrich).

## `locale` (type: `string`):

Traveloka locale path prefix (e.g. en-ph).

## `domain` (type: `string`):

Host. Default www.traveloka.com.

## `geoId` (type: `string`):

Required for reliable hotels search (HOTEL\_GEO). Do not trust city label alone.

## `destination` (type: `string`):

City/place label or seed name. For flights: IATA code.

## `label` (type: `string`):

Display label embedded in hotel search spec (may not match inventory geo).

## `checkin` (type: `string`):

YYYY-MM-DD. Defaults to ~21 days ahead.

## `checkout` (type: `string`):

YYYY-MM-DD. Defaults to ~23 days ahead.

## `adults` (type: `integer`):

Number of adults.

## `children` (type: `integer`):

Number of children.

## `infants` (type: `integer`):

Number of infants (flights).

## `rooms` (type: `integer`):

Number of hotel rooms.

## `guests` (type: `integer`):

Hotel URL guests segment; defaults to adults.

## `origin` (type: `string`):

Required for flights (e.g. MNL).

## `departureDate` (type: `string`):

Flight departure YYYY-MM-DD.

## `returnDate` (type: `string`):

Flight return YYYY-MM-DD (roundtrip).

## `tripType` (type: `string`):

oneway or roundtrip for flights.

## `cabinClass` (type: `string`):

Flight cabin class.

## `currency` (type: `string`):

Optional override (e.g. PHP).

## `maxResults` (type: `integer`):

Free plan capped at 200 results/run by the Actor developer.

## `enrichDetails` (type: `boolean`):

Open hotel PDP for a few results and merge pageProps.hotel / JSON-LD.

## `proxyCountry` (type: `string`):

Optional ISO country for worker egress (e.g. SG).

## `workerBaseUrl` (type: `string`):

Optional https://…run.app override (allowlisted). Auth never sent to non-allowlisted hosts.

## Actor input object example

```json
{
  "service": "hotels",
  "locale": "en-id",
  "domain": "www.traveloka.com",
  "adults": 2,
  "children": 0,
  "infants": 0,
  "rooms": 1,
  "tripType": "oneway",
  "cabinClass": "ECONOMY",
  "maxResults": 50,
  "enrichDetails": false
}
```

# Actor output Schema

## `results` (type: `string`):

Normalized Traveloka hotel / flight / suggestion rows from the default dataset.

## `runSummary` (type: `string`):

Structured summary record stored in the default key-value store.

## `inputEcho` (type: `string`):

Normalized input saved at run start.

## `errorSummary` (type: `string`):

Present when a failed run stores structured terminal error information.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("lentic_clockss/traveloka-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("lentic_clockss/traveloka-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call lentic_clockss/traveloka-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=lentic_clockss/traveloka-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/FKTSan9AcewT9QvVQ/builds/JRtvdWoVERVY7PLeY/openapi.json
