# Klook Activity Search & City Browser Scraper (`crawlyth-forge/klook-activity-search-and-city-browser-scraper`) Actor

Browse Klook tours and activities by city, search by keyword, or look up specific activity pages. Get price, discount, rating, review count, tags and sold-out status, sortable by price, rating or recency.

- **URL**: https://apify.com/crawlyth-forge/klook-activity-search-and-city-browser-scraper.md
- **Developed by:** [crawlyth forge](https://apify.com/crawlyth-forge) (community)
- **Categories:** Travel, Automation, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Klook Activity Search & City Browser Scraper

Klook is a travel marketplace for tours, attraction tickets, transport passes and day trips. This actor reads Klook's public activity catalogue without login, cookies or an API key. Browse a destination, search the whole catalogue by keyword, or enrich a list of activity page URLs.

### Modes

| Mode | What it does |
|---|---|
| **Browse a city** | Resolves the destination name (or a Klook destination URL) to Klook's city id, then walks the result pages for that city. |
| **Search by keyword** | Runs a free-text search across Klook's catalogue, for example `snorkeling`, `teamLab` or `food tour`. |
| **Specific activity URLs** | Opens each activity page you provide and returns its detail fields (description, images, address, coordinates, rating and availability). |

Every mode supports sorting, price/rating filters and pagination up to `maxItems` or `maxPages`.

### Output per activity

- `activityId`, `title`, `url`, `thumbnailUrl`, `images`
- `city`, `cityId`, `countryId`, `category`, `subTitle`
- `price`, `currency`, `originalPrice`, `discountPercent`, `isFree`
- `rating`, `reviewCount`, `bookedCount`
- `tags` — visible badges such as `Instant confirmation` or `5% off`
- `latitude`, `longitude`
- `description`, `address`, `countryCode`, `availability` — from activity pages
- `isSoldOut`, `recordType`, `scrapedAt`

Fields Klook does not publish for a given activity are omitted rather than emitted as `null`.

### Input

| Field | Type | Default | Notes |
|---|---|---|---|
| `mode` | select | `searchActivities` | `byCity`, `searchActivities` or `byActivityUrls` |
| `city` | text | — (prefilled `Tokyo`) | City name or destination URL (mode=`byCity`) |
| `searchQuery` | text | — (prefilled `Tokyo`) | Keyword (mode=`searchActivities`) |
| `startUrls` | list | `[]` | Klook activity URLs (mode=`byActivityUrls`) |
| `sortBy` | select | `most_relevant` | `most_relevant`, `top_picks`, `price_asc`, `rating` or `newest` |
| `minRating` | number | — | Excludes activities without a rating when set |
| `minPrice` / `maxPrice` | number | — | Compared with the displayed selling price |
| `maxItems` | integer | `50` | 1–5000; Klook exposes at most 1,000 results per query |
| `maxPages` | integer | `50` | Search pages to walk, 20 activities per page |

#### Example: top-rated Bangkok activities

```json
{
  "mode": "byCity",
  "city": "Bangkok",
  "sortBy": "rating",
  "minRating": 4.5,
  "maxItems": 100
}
```

#### Example: snorkeling trips under 100

```json
{
  "mode": "searchActivities",
  "searchQuery": "snorkeling",
  "maxPrice": 100,
  "sortBy": "price_asc"
}
```

#### Example: enrich activity pages

```json
{
  "mode": "byActivityUrls",
  "startUrls": [
    "https://www.klook.com/en-US/activity/695-tokyo-disney-resort-1-day-pass-tokyo/"
  ]
}
```

### Use cases

- Build a destination activity list for an itinerary or travel guide.
- Track price, discount and sold-out changes by rerunning a city or keyword.
- Compare ratings and booking volumes across similar tours.
- Collect activity descriptions, coordinates and images for a catalogue.

### FAQ

**Do I need a Klook account, cookie or API key?**
No. The actor reads the public catalogue and activity pages anonymously.

**Which currency are prices in?**
Whatever currency Klook returns for the actor's network location. Each record states its own `currency` (for example `USD`, `HKD` or `EUR`). Compare `minPrice`/`maxPrice` in that same currency.

**Why did I get fewer rows than Klook shows?**
Klook caps every search at 1,000 results. Narrow by city, keyword, price or rating to partition a large catalogue, and raise `maxItems` if the cap is the limit.

**Why are some activities missing a price or rating?**
Klook sometimes lists free vouchers, price-on-request items or new activities without reviews. Those records keep the fields Klook actually provides.

**Does sorting change which activities are returned?**
No. Sorting changes their order; filters and the source's own result set decide which activities appear.

**Is this affiliated with Klook?**
No. It is an independent, third-party actor that reads publicly accessible Klook pages.

# Actor input Schema

## `mode` (type: `string`):

Choose what to scrape.

## `city` (type: `string`):

City or destination to browse (mode=byCity). A Klook destination URL also works, for example Tokyo or https://www.klook.com/en-US/destination/c28-tokyo/1-things-to-do/.

## `searchQuery` (type: `string`):

Keyword to search across Klook (mode=searchActivities), for example snorkeling or food tour.

## `startUrls` (type: `array`):

Klook activity page URLs to enrich (mode=byActivityUrls).

## `sortBy` (type: `string`):

Order of the results returned by Klook.

## `minRating` (type: `number`):

Keep only activities rated at or above this value (0 to 5). Activities without a rating are excluded when this is set.

## `minPrice` (type: `number`):

Keep only activities whose displayed selling price is at or above this amount. Use the same currency Klook shows in the output `currency` field.

## `maxPrice` (type: `number`):

Keep only activities whose displayed selling price is at or below this amount.

## `maxItems` (type: `integer`):

Maximum number of activities to return. Klook exposes at most 1,000 results per query.

## `maxPages` (type: `integer`):

Maximum search pages to walk (20 activities per page). Usually leave at 50.

## Actor input object example

```json
{
  "mode": "searchActivities",
  "city": "Tokyo",
  "searchQuery": "Tokyo",
  "startUrls": [],
  "sortBy": "most_relevant",
  "maxItems": 3,
  "maxPages": 1
}
```

# Actor output Schema

## `activities` (type: `string`):

Dataset containing one record per scraped Klook activity.

# 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 = {
    "mode": "searchActivities",
    "city": "Tokyo",
    "searchQuery": "Tokyo",
    "startUrls": [],
    "sortBy": "most_relevant",
    "maxItems": 3,
    "maxPages": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlyth-forge/klook-activity-search-and-city-browser-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 = {
    "mode": "searchActivities",
    "city": "Tokyo",
    "searchQuery": "Tokyo",
    "startUrls": [],
    "sortBy": "most_relevant",
    "maxItems": 3,
    "maxPages": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlyth-forge/klook-activity-search-and-city-browser-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "mode": "searchActivities",
  "city": "Tokyo",
  "searchQuery": "Tokyo",
  "startUrls": [],
  "sortBy": "most_relevant",
  "maxItems": 3,
  "maxPages": 1
}' |
apify call crawlyth-forge/klook-activity-search-and-city-browser-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawlyth-forge/klook-activity-search-and-city-browser-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/x5JYQ81Ya35rygzlY/builds/1EP214tkASWrJQwi5/openapi.json
