Sources › Marketplace › Tokopedia › Recommendations
Request
https://api.zapi.ink/v1/marketplace:tokopedia/recommendationsSend 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 5 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| productId | string | query | No | Numeric product id — returns more products from the same shop. Use this OR categoryId Example: 11807421908 |
| categoryId | string | query | No | Numeric category id — returns recommended products in that category. Use this OR productId Example: 24 |
Code examples
curl -X GET "https://api.zapi.ink/v1/marketplace:tokopedia/recommendations?productId=11807421908&categoryId=24" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/marketplace:tokopedia/recommendations?productId=11807421908&categoryId=24", { 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/recommendations", params={"productId":"11807421908","categoryId":"24"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "marketplace:tokopedia", "data": { "count": 13, "items": [ { "url": "https://www.tokopedia.com/agres-id-tangerang-selatan/motorola-moto-g86-power-5g-8gb-256gb-dimensity7400-6720mah-6-67-poled-1-5k-120hz-garansi-resmi-indonesia-produk-asli-1732578579216041285-1735327867464549701", "name": "Motorola Moto G86 Power 5G 8GB 256GB - Dimensity7400 - 6720mAh - 6.67\" pOLED 1.5K 120Hz Garansi Resmi Indonesia Produk Asli", "image": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/7b84cef85f4344a88e30e15512c1c835~tplv-aphluv4xwc-white-pad-v1:250:250.jpeg?lk3s=67a35ccb&x-expires=1789804566&x-signature=EqNpZfIgn1mqmNCavnLtt%2B5ObDs%3D&x-signature-webp=j%2BFPFrx35B5ZAuxYObDk%2FlUqrk8%3D", "price": 4779000, "category": "Handphone & Tablet/Handphone/Android OS", "priceText": "Rp4.779.000", "productId": "103313329805" }, { "url": "https://www.tokopedia.com/starcomp-semarang/infinix-hot-60-pro-8-128gb-6-78-amoled-1-5k-144hz-mediatek-helio-g200-5160mah-45w-1734154098673157866", "name": "INFINIX HOT 70 8/128 GB 6.78\" IPS HD+ 120Hz 50MP 6000mAh", "image": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/08c1033231044339af710338996bdf8a~tplv-aphluv4xwc-white-pad-v1:250:250.jpeg?lk3s=67a35ccb&x-expires=1789804566&x-signature=3e9kP%2Fbwqyh8ME8DSRB3XCA8boQ%3D&x-signature-webp=aCGbjFd0wC1PEiQ6Z68JNhNeVkY%3D", "price": 3269000, "category": "Handphone & Tablet/Handphone/Android OS", "priceText": "Rp3.269.000", "productId": "102918095686" }, { "url": "https://www.tokopedia.com/starcomp-semarang/infinix-note-60-pro-8-256gb-6-78-amoled-1-5k-144hz-snapdragon-7s-gen-4-6500mah-90w-1734434576512026346", "name": "Infinix Note 60 Pro 8/256GB 6.78\" AMOLED 1.5K 144Hz 6500mAh 90W", "image": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/6c0bfe37e1804d439ea9117db66a8f47~tplv-aphluv4xwc-white-pad-v1:250:250.jpeg?lk3s=67a35ccb&x-expires=1789804566&x-signature=YT%2FB4ANiRIPVnepbRWI%2B%2FxXoP8U%3D&x-signature-webp=B4p84o8ueDavs9xTI7JRsoeCLOs%3D", "price": 5599000, "category": "Handphone & Tablet/Handphone/Android OS", "priceText": "Rp5.599.000", "productId": "103061954169" }, { "url": "https://www.tokopedia.com/gadget-universe-official/motorola-moto-g86-power-5g-8-256gb-garansi-resmi-1732537003355571991", "name": "Motorola Moto G86 Power 5G 8/256GB Garansi RESMI", "image": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/be1dc0c7ac72442795f42407e8831bb2~tplv-aphluv4xwc-white-pad-v1:250:250.jpeg?lk3s=67a35ccb&x-expires=1789804566&x-signature=TStsblXgU4sqZIZbW%2BdEvxsfpXk%3D&x-signature-webp=VrgR9g%2FMRt3DCLMax36opWbiI%2BE%3D", "price": 4779000, "category": "Handphone & Tablet/Handphone/Android OS", "priceText": "Rp4.779.000", "productId": "102268644669" }, { "url": "https://www.tokopedia.com/cellsius/samsung-galaxy-a17-5g-8-256gb-8-256gb-4g-8-128gb-4g-garansi-resmi-produk-original-layar-6-7-inci-fhd-super-amoled-prosesor-exynos-1330-baterai-5000mah-1732575902522902357", "name": "Samsung Galaxy A17 5G 8/256GB & 8/256GB 4G 8/128GB 4G Garansi Resmi Produk Original Layar 6.7 Inci FHD+ Super AMOLED Prosesor Exynos 1330 Baterai 5000mAh", "image": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/fd7fe34d666e4542b54c601be0684981~tplv-aphluv4xwc-white-pad-v1:250:250.jpeg?lk3s=67a35ccb&x-expires=1789804566&x-signature=0iUYnSrMSeUwEtZ1yMJ6S7Ethdg%3D&x-signature-webp=NX5g7%2BG0IeGPe533NCBk%2B7Bc1kM%3D", "price": 4700000, "category": "Handphone & Tablet/Handphone/Android OS", "priceText": "Rp4.700.000", "productId": "102291437517" }, { "url": "https://www.tokopedia.com/tokohapedia-idn/samsung-galaxy-note-20-8-256-gb-green-bronze-gray-red-blue-green", "name": "Samsung Galaxy Note 20 8/256 GB Green / Bronze / Gray / Red/ Blue", "image": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/f0f0f034493e4af396bc37af6b1f3ca1~tplv-aphluv4xwc-white-pad-v1:250:250.jpeg?lk3s=67a35ccb&x-expires=1789804566&x-signature=be%2Fasm5DDen6HR3NuIPD2n2d9J4%3D&x-signature-webp=2ABBorGg4blfY9hjbz%2FT1PxDe3I%3D", "price": 10899000, "category": "Handphone & Tablet/Handphone/Android OS", "priceText": "Rp10.899.000", "productId": "1206464951" }, { "url": "https://www.tokopedia.com/cuan-gadgetid/vivo-y16-3-64-vivo-y-16-3-32-garansi-resmi-indonesia-gold-3-32-tanpa-bonus", "name": "VIVO Y16 3/64 VIVO Y 16 3/32 GARANSI RESMI INDONESIA", "image": "https://p19-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/img/VqbcmM/2022/8/29/513633c8-2ebf-450b-ba8f-860a09770637.jpg~tplv-aphluv4xwc-white-pad-v1:250:250.jpeg?lk3s=67a35ccb&x-expires=1789804566&x-signature=ntRs%2FQLIEucNQvD7w43INv4eqws%3D&x-signature-webp=E7RFIzrVe%2BJ48EaDzsOr5qMSKA8%3D", "price": 1799000, "category": "Handphone & Tablet/Handphone/Android OS", "priceText": "Rp1.799.000", "productId": "5759724000" }, { "url": "https://www.tokopedia.com/angelhokkystore/tecno-spark-go-3-ram-4-64gb-ram-4-128gb-original-garansi-resmi-1734194573529613650", "name": "TECNO SPARK GO 3 RAM 4/64GB / RAM 4/128GB ORIGINAL GARANSI RESMI", "image": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/9d53f063d3da416ebedae36ec09f6f9a~tplv-aphluv4xwc-white-pad-v1:250:250.jpeg?lk3s=67a35ccb&x-expires=1789804566&x-signature=lHLTR20yVJA1WPfjsntqF89k%2BYg%3D&x-signature-webp=J3ik0m8EJRhID%2BQV3m5vKdWN%2B6M%3D", "price": 1999000, "category": "Handphone & Tablet/Handphone/Android OS", "priceText": "Rp1.999.000", "productId": "102930824190" } ], "title": "Rekomendasi untuk Anda", "categoryId": "24" }, "timestamp": "2026-06-13T04:34:29Z" }
Frequently asked questions
How do I call the Tokopedia Recommendations API?
Send a GET request to https://api.zapi.ink/v1/marketplace:tokopedia/recommendations with your Zapi key in the x-api-key header. Parameters — optional: productId, categoryId. The response is JSON in the { project, data, timestamp } envelope.
What does the Tokopedia Recommendations API return?
recommended products for a product or a category. The example response has the fields count, items, title, categoryId. Each item in items has fields such as url, name, image, price, category, priceText, productId.
Is the Tokopedia Recommendations 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 Recommendations 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 "recommendations".
What other Tokopedia API endpoints are there?
It has 7 endpoints. Besides Recommendations: Search Product, Product Detail, Shop Detail, Reviews, Shop Products, Categories.
