APIs / Marketplaces / Tokopedia

1 credit per call5 endpoints14 datapointsChecked working 6 Dec 2026

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.

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 OKJSONX-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_idstringtitlestringpriceintegeroriginal_priceintegerdiscount_percentnumbercurrencystringreview_countintegershopobjectlocationstringcategory_idstringimageurlurlurlshop_domainstringproduct_keystring
1103966754913SALOMON XT-6 Unisex Outdoor Running Shoes Sepatu Lari Pria Hiking Shoes Sports Sneakers - L45406100386900038990000.77IDR0{5 fields}Jakarta Utara0https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/021762c50ed644228084d6de53f46d25https://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-indonesiasalomon-xt-6-unisex-outdoor-running-shoes-sepatu-lari-pria-hiking-shoes-sports-sneakers-l45406100-1737664240586294770-1737664157653435890
2103325892444SPOTEC Running Epic 978 Sepatu Olahraga Lari Pria Wanita - 018237610543990014.5IDR0{5 fields}Kab. Sidoarjo0https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/50ba995293ba4dc38219b562daccf173https://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…spotecspotec-running-epic-978-sepatu-olahraga-lari-pria-wanita-0182-1735375374927890409-1735375734223570921
315917865559Sepatu Kasogi Hainan Sepatu Dewasa Pria Laki-laki Olahraga Jogging Lari Runner Shoes38992551990025IDR0{5 fields}Surabaya0https://p16-images-sign-sg.tokopedia-static.net/tos-alisg-i-aphluv4xwc-sg/img/VqbcmM/2025/2/12/64954d51-0950-4799-96f8-f3592c6b04ab.jpghttps://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%3Dsearchkasogishoessepatu-kasogi-dewasa-pria-olahraga-jogging-lari-hainan-hitam-putih-39-55f52

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

14 datapoints

Identity

  • product_idstring
  • titlestring
  • category_idstring

Contact

  • urlurl
  • shop_domainstring

Location

  • locationstring

Reputation

  • review_countinteger
  • imageurl

Price

  • priceinteger
  • original_priceinteger
  • discount_percentnumber
  • currencystring

Other

  • shopobject
  • product_keystring

Playground

Run this API

cURLshell
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.

EndpointRequired parametersReturnsCost
GET/v1/tokopedia/product
none+3 optional
product_idtitlepriceoriginal_pricediscount_percentcurrency+11 more
1 credit
GET/v1/tokopedia/reviews
product_id+1 optional
product_idsummaryreviewstopicspagination
1 credit
GET/v1/tokopedia/search
query+7 optional
currencyresultspagination
1 credit
GET/v1/tokopedia/shop
sid
shop_idnameprofileproductspagination
1 credit
GET/v1/tokopedia/shop-products
sid+4 optional
shop_idresultspagination
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.

MarketplacesJSONRESTMCP

More marketplaces APIs

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.