Skip to main content

Shopee Scraper API

Search products, fetch full product detail, pull reviews with star and media filters, list category items, and walk the full category tree from Shopee — Southeast Asia’s largest online marketplace. The API handles authentication, anti-bot bypass, session warmup, and marketplace routing automatically.

Key Features

11 Marketplaces

Indonesia, Philippines, Vietnam, Brazil, Malaysia, Thailand, Singapore, Taiwan, Colombia, Chile, and Mexico.

Anti-Bot Bypass

Real-browser session warmup seeds Shopee’s SPC_* cookies + TLS fingerprint, so the guarded /api/v4/ endpoints just work.

Rich Product Data

Variants, tier options, per-SKU models, ratings breakdown, stock, sold counts, images, attributes, and shop info.

Structured Data

Clean JSON with prices normalized from Shopee’s 1e5-scaled integers and raw values preserved.

Country Proxies

Requests are routed through residential proxies matching the target storefront for accurate local pricing.

SDK Support

First-class support via the ScrapeBadger Node.js and Python SDKs.

Supported Marketplaces

Shopee operates across 11 country storefronts. Use the market query parameter to target a specific one.
MarketDomainCurrencyMarketDomainCurrency
:indonesia: idshopee.co.idIDR:philippines: phshopee.phPHP
:vietnam: vnshopee.vnVND:brazil: brshopee.com.brBRL
:malaysia: myshopee.com.myMYR:thailand: thshopee.co.thTHB
:singapore: sgshopee.sgSGD:taiwan: twshopee.twTWD
:colombia: coshopee.com.coCOP:chile: clshopee.clCLP
:mexico: mxshopee.com.mxMXN
If no market is specified, it defaults to sg. Use the /v1/shopee/markets endpoint to get the full list (with currency and locale) programmatically.

Quick Start

import ScrapeBadger from "scrapebadger";

const client = new ScrapeBadger({ apiKey: "YOUR_API_KEY" });

const results = await client.shopee.search({
  keyword: "wireless earbuds",
  market: "sg",
  sortBy: "sales",
  limit: 60,
});

console.log(results.results);

Endpoints

EndpointMethodDescription
/v1/shopee/searchGETSearch the Shopee catalog with sorting
/v1/shopee/product/{shop_id}/{item_id}GETFull product detail by shop + item ID
/v1/shopee/product/{shop_id}/{item_id}/reviewsGETProduct reviews with star/media filters
/v1/shopee/category/{category_id}/itemsGETList products within a category
/v1/shopee/categoriesGETFull recursive category tree
/v1/shopee/marketsGETList all supported marketplaces

Credit Costs

EndpointCost
Search products5 credits
Get product detail5 credits
Get reviews5 credits
Category items5 credits
List categories (tree)2 credits
List markets0 credits
Failed requests0 credits

Authentication

All requests require your API key in the X-API-Key header:
curl "https://scrapebadger.com/v1/shopee/search?keyword=laptop&market=sg" \
  -H "X-API-Key: YOUR_API_KEY"

Anti-Bot Handling

Shopee gates its /api/v4/ JSON endpoints behind anti-fraud headers (af-ac-enc-sz-token, x-sap-ri) produced by a bytecode VM that is impractical to mint offline. Rather than block on that, ScrapeBadger warms a genuine Shopee session in a real Chrome browser — seeding the SPC_* cookies and a valid TLS fingerprint Shopee’s API validates — and serves the GET endpoints against that warm session. You never need to manage proxies, cookies, sessions, or request signing.
For accurate pricing and availability, requests are routed through residential proxies in the storefront’s country. This is handled automatically based on the market parameter.

Next Steps

Search Products

Full API reference for searching the Shopee catalog

Get Product Detail

Retrieve full product detail for a specific item