---
title: "Tokopedia API: product search, product details as JSON"
description: "Tokopedia API for product search, product details, reviews, shop profiles and shop product lists in IDR as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/tokopedia
---

[APIs](https://perceptlayer.com/apis) / [Marketplaces](https://perceptlayer.com/verticals/marketplaces) / Tokopedia

1 credit per call 5 endpoints 14 datapoints 

# Tokopedia API

Tokopedia API for product search, product details, reviews, shop profiles and shop product lists in IDR as JSON. 1 credit per successful call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Tokopedia

GET /v1/tokopedia/search?query=sepatu+lari 

```
{
  "success": true,
  "data": {
    "query": "sepatu lari",
    "currency": "IDR",
    "results": [
      {
        "product_id": "103966754913",
        "title": "SALOMON XT-6 Unisex Outdoor Running Shoes Sepatu Lari Pria Hiking Shoes Sports Sneakers - L45406100",
        "price": 3869000,
        "original_price": 3899000,
        "discount_percent": 0.77,
        "currency": "IDR",
        "review_count": 0,
        "shop": {
          "id": "7494273546126722546",
          "name": "SALOMON Indonesia",
          "location": "Jakarta Utara",
          "is_official": true,
          "url": "https://www.tokopedia.com/salomon-indonesia"
        },
        "location": "Jakarta Utara",
        "category_id": "0",
        "image": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/021762c50ed644228084d6de53f46d25",
        "url": "https://www.tokopedia.com/salomon-indonesia/salomon-xt-6-unisex-outdoor-running-shoes-sepatu-lari-pria-hiking-shoes-sports-sneakers-l45406100-1737664240586294770-1737664157653435890?extParam=ivf%3Dfalse%26keyword%3Dsepatu+lari%26search_id%3…",
        "shop_domain": "salomon-indonesia",
        "product_key": "salomon-xt-6-unisex-outdoor-running-shoes-sepatu-lari-pria-hiking-shoes-sports-sneakers-l45406100-1737664240586294770-1737664157653435890"
      },
      {
        "product_id": "103325892444",
        "title": "SPOTEC Running Epic 978 Sepatu Olahraga Lari Pria Wanita - 0182",
        "price": 376105,
        "original_price": 439900,
        "discount_percent": 14.5,
        "currency": "IDR",
        "review_count": 0,
        "shop": {
          "id": "11162592",
          "name": "Spotec",
          "location": "Kab. Sidoarjo",
          "is_official": true,
          "url": "https://www.tokopedia.com/spotec"
        },
        "location": "Kab. Sidoarjo",
        "category_id": "0",
        "image": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/50ba995293ba4dc38219b562daccf173",
        "url": "https://www.tokopedia.com/spotec/spotec-running-epic-978-sepatu-olahraga-lari-pria-wanita-0182-1735375374927890409-1735375734223570921?extParam=ivf%3Dtrue%26keyword%3Dsepatu+lari%26search_id%3D202611180613321543843A4723ED1A3V5O%26src%3Dsear…",
        "shop_domain": "spotec",
        "product_key": "spotec-running-epic-978-sepatu-olahraga-lari-pria-wanita-0182-1735375374927890409-1735375734223570921"
      },
      {
        "product_id": "15917865559",
        "title": "Sepatu Kasogi Hainan Sepatu Dewasa Pria Laki-laki Olahraga Jogging Lari Runner Shoes",
        "price": 389925,
        "original_price": 519900,
        "discount_percent": 25,
        "currency": "IDR",
        "review_count": 0,
        "shop": {
          "id": "6426335",
          "name": "Kasogi Shoes",
          "location": "Surabaya",
          "is_official": true,
          "url": "https://www.tokopedia.com/kasogishoes"
        },
        "location": "Surabaya",
        "category_id": "0",
        "image": "https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/img/VqbcmM/2025/2/12/64954d51-0950-4799-96f8-f3592c6b04ab.jpg",
        "url": "https://www.tokopedia.com/kasogishoes/sepatu-kasogi-dewasa-pria-olahraga-jogging-lari-hainan-hitam-putih-39-55f52?extParam=ivf%3Dfalse%26keyword%3Dsepatu+lari%26search_id%3D202611180613321543843A4723ED1A3V5O%26src%3Dsearch",
        "shop_domain": "kasogishoes",
        "product_key": "sepatu-kasogi-dewasa-pria-olahraga-jogging-lari-hainan-hitam-putih-39-55f52"
      }
    ],
    "pagination": {
      "page": 1,
      "per_page": 60,
      "has_next": true,
      "total_results": 98346,
      "filtered_out": 0
    }
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_701faad040bd4ddcbb20343f9c4fed23",
    "credits_charged": 1,
    "credits_remaining": 993
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `search`: the fields and shapes you will get, shortened to 3 items.

| # | product\_id string | title string | price integer | original\_price integer | discount\_percent number | currency string | review\_count integer | shop object | location string | category\_id string | image url | url url | shop\_domain string | product\_key string |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 103966754913 | SALOMON XT-6 Unisex Outdoor Running Shoes Sepatu Lari Pria Hiking Shoes Sports Sneakers - L45406100 | 3869000 | 3899000 | 0.77 | IDR | 0 | {5 fields} | Jakarta Utara | 0 | https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/021762c50ed644228084d6de53f46d25 | https://www.tokopedia.com/salomon-indonesia/salomon-xt-6-unisex-outdoor-running-shoes-sepatu-lari-pria-hiking-shoes-sports-sneakers-l45406100-1737664240586294770-1737664157653435890?extParam=ivf%3Dfalse%26keyword%3Dsepatu+lari%26search\_id%3… | salomon-indonesia | salomon-xt-6-unisex-outdoor-running-shoes-sepatu-lari-pria-hiking-shoes-sports-sneakers-l45406100-1737664240586294770-1737664157653435890 |
| 2 | 103325892444 | SPOTEC Running Epic 978 Sepatu Olahraga Lari Pria Wanita - 0182 | 376105 | 439900 | 14.5 | IDR | 0 | {5 fields} | Kab. Sidoarjo | 0 | https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/50ba995293ba4dc38219b562daccf173 | https://www.tokopedia.com/spotec/spotec-running-epic-978-sepatu-olahraga-lari-pria-wanita-0182-1735375374927890409-1735375734223570921?extParam=ivf%3Dtrue%26keyword%3Dsepatu+lari%26search\_id%3D202611180613321543843A4723ED1A3V5O%26src%3Dsear… | spotec | spotec-running-epic-978-sepatu-olahraga-lari-pria-wanita-0182-1735375374927890409-1735375734223570921 |
| 3 | 15917865559 | Sepatu Kasogi Hainan Sepatu Dewasa Pria Laki-laki Olahraga Jogging Lari Runner Shoes | 389925 | 519900 | 25 | IDR | 0 | {5 fields} | Surabaya | 0 | https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/img/VqbcmM/2025/2/12/64954d51-0950-4799-96f8-f3592c6b04ab.jpg | https://www.tokopedia.com/kasogishoes/sepatu-kasogi-dewasa-pria-olahraga-jogging-lari-hainan-hitam-putih-39-55f52?extParam=ivf%3Dfalse%26keyword%3Dsepatu+lari%26search\_id%3D202611180613321543843A4723ED1A3V5O%26src%3Dsearch | kasogishoes | sepatu-kasogi-dewasa-pria-olahraga-jogging-lari-hainan-hitam-putih-39-55f52 |

Recorded from our API · 3 items shown · 14 datapoints per item GET /v1/tokopedia/search?query=sepatu+lari

14 datapoints

### Identity

-   product\_id string
-   title string
-   category\_id string

### Contact

-   url url
-   shop\_domain string

### Location

-   location string

### Reputation

-   review\_count integer
-   image url

### Price

-   price integer
-   original\_price integer
-   discount\_percent number
-   currency string

### Other

-   shop object
-   product\_key string

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/tokopedia/search?query=sepatu+lari" \
  -H "X-API-Key: $API_KEY"
```

Tokopedia · 5 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/tokopedia/product`](https://perceptlayer.com/apis/tokopedia/product) | none +3 optional | `product_id` `title` `price` `original_price` `discount_percent` `currency` +11 more | 1 credit |
| [GET `/v1/tokopedia/reviews`](https://perceptlayer.com/apis/tokopedia/reviews) | `product_id` +1 optional | `product_id` `summary` `reviews` `topics` `pagination` | 1 credit |
| [GET `/v1/tokopedia/search`](https://perceptlayer.com/apis/tokopedia/search) | `query` +7 optional | `currency` `results` `pagination` | 1 credit |
| [GET `/v1/tokopedia/shop`](https://perceptlayer.com/apis/tokopedia/shop) | `sid` | `shop_id` `name` `profile` `products` `pagination` | 1 credit |
| [GET `/v1/tokopedia/shop-products`](https://perceptlayer.com/apis/tokopedia/shop-products) | `sid` +4 optional | `shop_id` `results` `pagination` | 1 credit |

Overview

## About the Tokopedia API

## What you can get

The Tokopedia API returns Tokopedia products, reviews and shops from Indonesia as JSON through 5 endpoints.

-   **Search:** `search` takes a `query`, with `page`, `sort` ( `relevance`, `price_asc`, `price_desc` or `rating`), `min_price`, `max_price`, `min_rating`, `category` and `location`.
-   **Product:** `product` takes a product `url`, or a `shop_domain` with a `product_key`.
-   **Reviews:** `reviews` takes a `product_id`, with `page`.
-   **Shop:** `shop` takes a shop ID as `sid`.
-   **Shop products:** `shop-products` takes a `sid`, with `page`, `sort` ( `relevance`, `price_asc`, `price_desc` or `rating`), `min_price` and `max_price`.

The recorded search for "sepatu lari" (running shoes) returns `results` and `pagination`, which reports `total_results` of 98346 at 60 per page. Each result has `product_id`, `title`, `price`, `original_price`, `discount_percent`, `currency`, `review_count`, `shop`, `location`, `image`, `url`, `shop_domain` and `product_key`. The first result is a SALOMON XT-6 running shoe at a `price` of 3869000 IDR from SALOMON Indonesia, an official store.

## How a call works

Search, then read the product: `GET /v1/tokopedia/search?query=sepatu lari`, with your key in the `X-API-Key` header, returns each result's `shop_domain` and `product_key`. Pass both to `product`, for example `GET /v1/tokopedia/product?shop_domain=salomon-indonesia` with the `product_key` from search, which returned `rating`, `review_count`, `sold_count`, `condition`, `category`, `images`, `variants` and `specs`. Pass the `product_id` to `reviews`, for example `GET /v1/tokopedia/reviews?product_id=103966754913`, and the shop's `id` to `shop` or `shop-products` as `sid`. Check `has_next` in `pagination` before asking for the next `page`. Every successful call costs 1 credit; failed calls cost nothing.

Marketplaces JSON REST MCP

### More marketplaces APIs

[About You](https://perceptlayer.com/apis/about-you) [adidas](https://perceptlayer.com/apis/adidas) [Albert Heijn](https://perceptlayer.com/apis/albert-heijn) [ALDI SÜD](https://perceptlayer.com/apis/aldi-sued) [Alibaba](https://perceptlayer.com/apis/alibaba) [AliExpress](https://perceptlayer.com/apis/aliexpress) [Allegro](https://perceptlayer.com/apis/allegro) [ALTERNATE](https://perceptlayer.com/apis/alternate) [Alza](https://perceptlayer.com/apis/alza) [Amazon](https://perceptlayer.com/apis/amazon) [Americanas](https://perceptlayer.com/apis/americanas) [Aponeo](https://perceptlayer.com/apis/aponeo)

Use cases

### Track prices and discounts for a product across Tokopedia sellers

`Use the Tokopedia API to track prices and discounts for a product across Tokopedia sellers` 

### Pull a shop's catalogue with \`shop-products\`, sorted by price or rating

`` Use the Tokopedia API to pull a shop's catalogue with `shop-products`, sorted by price or rating `` 

### Size up a shop by \`followers\`, \`is\_official\`, \`shop\_tier\` and \`open\_since\`

`` Use the Tokopedia API to size up a shop by `followers`, `is_official`, `shop_tier` and `open_since` `` 

### Read review text, seller replies and review \`topics\` for a product

`` Use the Tokopedia API to read review text, seller replies and review `topics` for a product `` 

FAQ

## Questions

**How much does the Tokopedia API cost?**

Each successful call costs one credit, whichever endpoint you call, and each page is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.

**What does a review include?**

The recorded \`reviews\` call returned a \`summary\` with \`average\`, \`total\`, \`with\_image\` and a \`count\` and \`percentage\` per star in \`buckets\`. Each review has \`id\`, \`rating\`, \`text\`, \`date\`, \`variant\`, \`seller\_reply\` and \`likes\`, and \`topics\` counts the themes reviewers mention.

**What is the difference between shop and shop-products?**

\`shop\` returns the shop's \`profile\`, with \`domain\`, \`location\`, \`followers\`, \`is\_official\`, \`shop\_tier\` and \`open\_since\`, plus its first \`products\` page. \`shop-products\` returns only the product list and adds \`sort\` and price filters.

**What format are responses in?**

Every endpoint returns JSON, with no HTML parsing on your side.

**Is this the official Tokopedia API?**

No. Perceptlayer is an independent service and is not affiliated with Tokopedia. It returns Tokopedia data as JSON with a Perceptlayer key, so there is no Tokopedia developer account, app review or partner approval to get first. It only reads data: if Tokopedia has an official API and you need to act on your own Tokopedia account, such as posting, managing orders or reading private data, use that one.

**Should I build a Tokopedia scraper instead?**

You can, but a Tokopedia scraper is code you maintain: page changes break it, requests get blocked, and Tokopedia's terms govern how you collect data. The Tokopedia API gives you 5 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the Tokopedia API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
