Klook search
Klook tours, attraction tickets, transport passes and stays matching a search: activity id, kind, title, category, city, link, image, price text, rating, review count, booked count, tags and coordinates, 15 a page, with the category tabs Klook offers for the query. Pass next_page back as page; null on the last page.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
qrequired | string | Search text: a place, attraction or activity. Example: tokyo disneyland |
category | string | Category tab key from categories in a previous answer (1 tours and experiences, 2 attraction tickets, 30 transport, 54 hotels, 70 more). |
sort | most_relevant | price | participants | publish_time | review_score | Sort order. Example: most_relevant |
city_id | string | Only this Klook city id (city_id of a result). |
currency | string | Price currency. Example: USD |
language | string | Site language, e.g. en-US, en-GB, ja-JP. Example: en-US |
page | integer | Page number, starting at 1. Pass next_page back as page; it is null on the last page. Example: 1 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/klook/v1/search?q=tokyo+disneyland" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/klook/v1/search",
params={"q": "tokyo disneyland"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/klook/v1/search");
url.searchParams.set("q", "tokyo disneyland");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).