Sources › Marketplace › Tokopedia › Search Product

Tokopedia Search Product API
Cari produk Tokopedia berdasarkan kata kunci. Mendukung sorting & pagination.
Request
https://api.zapi.ink/v1/marketplace:tokopedia/searchSend 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 2 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| q | string | query | Yes | Kata kunci pencarian produk Example: laptop gaming |
| page | number | query | No | Halaman hasil (1, 2, 3...). Default 1 |
| count | number | query | No | Jumlah produk per halaman. Default 20, max 60 |
| sort | enum: relevance | newest | cheapest | expensive | bestselling | query | No | Urutan hasil. Default relevance |
Code examples
curl -X GET "https://api.zapi.ink/v1/marketplace:tokopedia/search?q=laptop+gaming&page=&count=&sort=" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/marketplace:tokopedia/search?q=laptop+gaming&page=&count=&sort=", { 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/search", params={"q":"laptop gaming","page":"","count":"","sort":""}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "marketplace:tokopedia", "data": { "page": 1, "count": 20, "items": [ { "url": "https://www.tokopedia.com/mageid/mage-genus-anti-bara-backpack-tas-gendong-pria-wanita-premium-ransel-laptop-14-inch-1730838809683789809?extParam=ivf%3Dfalse%26keyword%3Dlaptop%26s…", "name": "MAGE Genus Anti Bara Backpack | Tas Gendong Pria Wanita Premium | Ransel Laptop 14 Inch", "shop": { "url": "https://www.tokopedia.com/mageid", "city": "Tangerang Selatan", "name": "Mage.id", "tier": 2, "shopId": "7494570278612339697" }, "image": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/059c93759b224e8b96b6a76fb3f9d639~tplv-aphluv4xwc-white-pad-v1:200:200.jpeg?lk3s=97278606&x-expires=1781328…", "price": 250000, "labels": [ { "title": "2 terjual", "position": "ri_product_credibility" }, { "title": "Bisa COD", "position": "ri_product_offer" }, { "title": "23%", "position": "ri_ribbon" } ], "rating": 5, "image300": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/059c93759b224e8b96b6a76fb3f9d639~tplv-aphluv4xwc-white-pad-v1:300:300.jpeg?lk3s=97278606&x-expires=1781328…", "priceText": "Rp250.000", "productId": "100169579302", "categoryId": "1759", "categoryName": "Fashion Pria" }, { "url": "https://www.tokopedia.com/alienwarestore/tas-laptop-sleevecase-carbon?extParam=ivf%3Dfalse%26keyword%3Dlaptop%26search_id%3D202606130430025737C6EC2E071627BRQK%26src%3Dsearch", "name": "Tas Laptop Sleevecase Carbon", "shop": { "url": "https://www.tokopedia.com/alienwarestore", "city": "Jakarta Utara", "name": "ALIENWARE GAMING STORE", "tier": 2, "shopId": "2678348" }, "image": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/img/VqbcmM/2023/10/11/885aba3d-3e6a-4ed7-8ed5-e4280eb1dcbb.jpg~tplv-aphluv4xwc-white-pad-v1:200:200.jpeg?l…", "price": 100000, "labels": [ { "title": "8 terjual", "position": "ri_product_credibility" }, { "title": "Hemat s.d 8% Pakai Bonus", "position": "ri_product_offer" }, { "title": "Rp100.000", "position": "final_price" } ], "rating": 5, "image300": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/img/VqbcmM/2023/10/11/885aba3d-3e6a-4ed7-8ed5-e4280eb1dcbb.jpg~tplv-aphluv4xwc-white-pad-v1:300:300.jpeg?l…", "priceText": "Rp100.000", "productId": "11807421908", "categoryId": "297", "categoryName": "Komputer & Laptop" }, { "url": "https://www.tokopedia.com/machenike-indonesia/machenike-k500-b61-keyboard-mechanical-60-61-keys-wired-hot-swappable-rgb-backlit-untuk-android-tablet-pc-laptop-1731279037941056556?e…", "name": "MACHENIKE K500 B61 Keyboard Mechanical 60% 61 Keys Wired Hot-Swappable RGB Backlit untuk Android Tablet PC Laptop", "shop": { "url": "https://www.tokopedia.com/machenike-indonesia", "city": "Kab. Tangerang", "name": "MACHENIKE Indonesia", "tier": 2, "shopId": "7496161101338544172" }, "image": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/2396c067b8934eb98f3e32cac868f2ed~tplv-aphluv4xwc-white-pad-v1:200:200.jpeg?lk3s=97278606&x-expires=1781328…", "price": 299000, "labels": [ { "title": "11 terjual", "position": "ri_product_credibility" }, { "title": "Hemat s.d 8% Pakai Bonus", "position": "ri_product_offer" }, { "title": "50%", "position": "ri_ribbon" } ], "rating": 5, "image300": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/2396c067b8934eb98f3e32cac868f2ed~tplv-aphluv4xwc-white-pad-v1:300:300.jpeg?lk3s=97278606&x-expires=1781328…", "priceText": "Rp299.000", "productId": "100279070090", "categoryId": "297", "categoryName": "Komputer & Laptop" } ], "query": "laptop", "hasMore": true, "nextPage": 2, "totalData": 1195185, "totalDataText": "1.1jt+" }, "timestamp": "2026-06-13T04:34:29Z" }
Frequently asked questions
How do I call the Tokopedia Search Product API?
Send a GET request to https://api.zapi.ink/v1/marketplace:tokopedia/search?q=laptop+gaming with your Zapi key in the x-api-key header. Parameters — required: q; optional: page, count, sort. The response is JSON in the { project, data, timestamp } envelope.
What does the Tokopedia Search Product API return?
Cari produk Tokopedia berdasarkan kata kunci. The example response has the fields page, count, items, query, hasMore, nextPage, totalData, totalDataText. Each item in items has fields such as url, name, shop, image, price, labels, rating, image300.
Is the Tokopedia Search Product 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 Search Product 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 "search".
What other Tokopedia API endpoints are there?
It has 7 endpoints. Besides Search Product: Product Detail, Shop Detail, Reviews, Recommendations, Shop Products, Categories.