Tokopedia API endpoint
Lists the current Tokopedia home recommendation tabs, each with its `id`, `name` and an optional image URL, plus a `fetched_at` timestamp. It takes no parameters. Pass a returned `id` as `tab_id` to `/tokopedia/home` to load that tab.
/tokopedia/home/tabsNo query parameters are required.
Returns the current public home tab IDs, names, and optional images. Pass a returned
id to GET /tokopedia/home?tab_id=... to select that tab.
| Field | Filled in, of 11 checked | Values in the sample |
|---|---|---|
| id | 11 | |
| name | 11 | “For You” and 10 other values |
| image_url | 1 | p16-images-comn-sg.tokopedia-static.net |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/tokopedia/home/tabs" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"tabs": [
{
"id": "1",
"name": "For You"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/tokopedia.homeTabsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | tokopedia.HomeTabsResponse | No | ||||
| data.fetched_at | string | No | ||||
| data.tabs | array | No | ||||
| data.tabs[].id | string | No | ||||
| data.tabs[].image_url | string | No | ||||
| data.tabs[].name | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/tokopedia/home/tabs" \
-H "x-api-key: $CRAWLORA_API_KEY"