Sources › Marketplace › Tokopedia › Categories
Request
https://api.zapi.ink/v1/marketplace:tokopedia/categoriesSend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 1 hour.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| x | string | query | No | Unused — this endpoint takes no input |
Code examples
curl -X GET "https://api.zapi.ink/v1/marketplace:tokopedia/categories?x=" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/marketplace:tokopedia/categories?x=", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/marketplace:tokopedia/categories", params={"x":""}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "marketplace:tokopedia", "data": { "count": 30, "items": [ { "name": "Pilihan Untukmu", "children": [ { "url": "https://www.tokopedia.com/p/fashion-muslim/dress-muslim-wanita/gamis-wanita", "icon": "https://images.tokopedia.net/img/cache/300/attachment/2019/12/30/50439068/50439068_ffcb7af5-ff46-4b34-b8be-8524f50328bf.png", "name": "Gamis Wanita", "path": "fashion-muslim/dress-muslim-wanita/gamis-wanita", "categoryId": "1889" }, { "url": "https://www.tokopedia.com/p/handphone-tablet/aksesoris-handphone/soft-case-handphone", "icon": "https://images.tokopedia.net/img/cache/300/attachment/2019/3/7/69/69_d5cf842c-3195-45c8-a1e4-d2d9faac1c67.png", "name": "Soft Case Handphone", "path": "handphone-tablet/aksesoris-handphone/soft-case-handphone", "categoryId": "69" }, { "url": "https://www.tokopedia.com/p/ibu-bayi/popok/popok-sekali-pakai", "icon": "https://images.tokopedia.net/img/cache/300/attachment/2019/2/4/2042/2042_4ad72770-a8cb-42a9-908f-640a446fb7db.png", "name": "Popok Sekali Pakai", "path": "ibu-bayi/popok/popok-sekali-pakai", "categoryId": "2042" } ], "categoryId": "0" }, { "name": "Virtual Products", "path": "virtual-products", "children": [ { "url": "https://www.tokopedia.com/p/virtual-products/voucher", "icon": "https://images.tokopedia.net/img/cache/300/WgKiGm/2026/2/23/97d570e1-04b2-4c44-9f2b-4c29c24f9c80.jpg", "name": "Voucher", "path": "virtual-products/voucher", "children": [ { "url": "https://www.tokopedia.com/p/virtual-products/voucher/discount-and-shipping-coupon", "name": "Discount and Shipping Coupon", "path": "virtual-products/voucher/discount-and-shipping-coupon", "categoryId": "7736" } ], "categoryId": "7735" } ], "categoryId": "5762" }, { "name": "Rumah Tangga", "path": "rumah-tangga", "children": [ { "url": "https://www.tokopedia.com/p/rumah-tangga/dekorasi", "icon": "https://images.tokopedia.net/img/cache/300/attachment/2020/3/17/77305583/77305583_bc7f49ac-a771-42bc-b317-46702b44a36a.png", "name": "Dekorasi", "path": "rumah-tangga/dekorasi", "children": [ { "url": "https://www.tokopedia.com/p/rumah-tangga/dekorasi/cover-kipas-angin", "name": "Cover Kipas Angin", "path": "rumah-tangga/dekorasi/cover-kipas-angin", "categoryId": "3741" }, { "url": "https://www.tokopedia.com/p/rumah-tangga/dekorasi/cover-kursi", "name": "Cover Kursi", "path": "rumah-tangga/dekorasi/cover-kursi", "categoryId": "3740" }, { "url": "https://www.tokopedia.com/p/rumah-tangga/dekorasi/hiasan-dinding", "name": "Hiasan Dinding", "path": "rumah-tangga/dekorasi/hiasan-dinding", "categoryId": "3739" } ], "categoryId": "993" }, { "url": "https://www.tokopedia.com/p/rumah-tangga/furniture", "icon": "https://images.tokopedia.net/img/cache/300/attachment/2020/3/17/77305583/77305583_7a873b9b-91a3-459b-a378-c68d3b8a9c07.png", "name": "Furniture", "path": "rumah-tangga/furniture", "children": [ { "url": "https://www.tokopedia.com/p/rumah-tangga/furniture/bedside-table", "name": "Bedside Table", "path": "rumah-tangga/furniture/bedside-table", "categoryId": "3700" }, { "url": "https://www.tokopedia.com/p/rumah-tangga/furniture/cermin-badan", "name": "Cermin Badan", "path": "rumah-tangga/furniture/cermin-badan", "categoryId": "3702" }, { "url": "https://www.tokopedia.com/p/rumah-tangga/furniture/kasur", "name": "Kasur", "path": "rumah-tangga/furniture/kasur", "categoryId": "3701" } ], "categoryId": "992" }, { "url": "https://www.tokopedia.com/p/rumah-tangga/kamar-mandi", "icon": "https://images.tokopedia.net/img/cache/300/attachment/2020/3/17/77305583/77305583_9f241e27-176f-406b-83fc-7563f17e376c.png", "name": "Kamar Mandi", "path": "rumah-tangga/kamar-mandi", "children": [ { "url": "https://www.tokopedia.com/p/rumah-tangga/kamar-mandi/cermin-kamar-mandi", "name": "Cermin Kamar Mandi", "path": "rumah-tangga/kamar-mandi/cermin-kamar-mandi", "categoryId": "3722" }, { "url": "https://www.tokopedia.com/p/rumah-tangga/kamar-mandi/dispenser-odol", "name": "Dispenser Odol", "path": "rumah-tangga/kamar-mandi/dispenser-odol", "categoryId": "1131" }, { "url": "https://www.tokopedia.com/p/rumah-tangga/kamar-mandi/ember-baskom", "name": "Ember & Baskom", "path": "rumah-tangga/kamar-mandi/ember-baskom", "categoryId": "1005" } ], "categoryId": "986" } ], "categoryId": "984" } ] }, "timestamp": "2026-06-13T04:34:29Z" }
Frequently asked questions
How do I call the Tokopedia Categories API?
Send a GET request to https://api.zapi.ink/v1/marketplace:tokopedia/categories with your Zapi key in the x-api-key header. Parameters — optional: x. The response is JSON in the { project, data, timestamp } envelope.
What does the Tokopedia Categories API return?
the full category tree. The example response has the fields count, items. Each item in items has fields such as name, children, categoryId.
Is the Tokopedia Categories API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.
Can an AI assistant call the Tokopedia Categories API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "tokopedia" and endpoint "categories".
What other Tokopedia API endpoints are there?
It has 7 endpoints. Besides Categories: Search Product, Product Detail, Shop Detail, Reviews, Recommendations, Shop Products.
