Skip to main content

Shopee API SDK — 8 Markets, Exact Unrounded Sold Count, Live Bags & Affiliate (Python / Node.js / n8n)

Shopee Global API — 13 Live Endpoints across 8 Markets

Zero-dependency Python and Node.js (ESM) SDK + ready-to-import n8n price tracker workflow for the Shopee Global E-Commerce, Live & Affiliate API across all 8 Shopee markets (VN, ID, TH, PH, MY, SG, TW, BR).

  • Exact unrounded sales: Receive historical_sold: 1096754 and monthly_sold: 27202 instead of "10k+ sold".
  • All 8 countries: vn, id, th, ph, my, sg, tw, br (auto-detected when passing a product URL or shortlink).
  • 13 endpoints: Product detail, 20x batch fetch, category tree, Daily Discover, Hot Picks, buyer search autocomplete, Shop profile, Shopee Live rooms/bags/HLS streams, and 8-format affiliate link & commission calculator.
  • Zero cookies, zero browser setup, zero pip/npm dependency bloat.

Test Shopee Global API on RapidAPI →

Need bulk scheduled dataset exports (CSV / Excel / Google Sheets)? Also available on Apify Store (jistudio/shopee-scraper).


How It Works

Step 1: Pass any Shopee URL or IDs

Step 2: Receive structured JSON with exact unrounded sold count


Quickstart

1. Python (Zero Dependencies — Standard Library Only)

export RAPIDAPI_KEY="YOUR_RAPIDAPI_KEY"
python examples/quickstart.py
from python.shopee_api_sdk import ShopeeClient

client = ShopeeClient(rapidapi_key="YOUR_RAPIDAPI_KEY")

# 1. Exact product detail (auto-detects country, shop_id, item_id)
detail = client.get_product_detail(url="https://shopee.vn/product/37251933/41412722725")
p = detail["product"]
print(p["name"], "| Price:", p["price"], "| Exact Sold:", p["historical_sold"])

# 2. Indonesia Daily Discover trending products
id_trends = client.get_daily_discover(country="id", limit=5)
print("Top ID item:", id_trends["items"][0]["name"])

# 3. Affiliate commission & 8 tracking link formats
aff = client.analyze_affiliate(
    urls=["https://shopee.vn/product/37251933/41412722725"],
    affiliate_id="17321010010",
    country="vn",
)
print("Commission:", aff["items"][0]["affiliate_commission"])

2. Node.js 18+ (Zero Dependencies — Native fetch)

export RAPIDAPI_KEY="YOUR_RAPIDAPI_KEY"
node examples/quickstart.mjs
import { ShopeeClient } from "./node/index.mjs";

const client = new ShopeeClient(process.env.RAPIDAPI_KEY);
const res = await client.getProductDetail({ url: "https://shopee.vn/product/37251933/41412722725" });
console.log(res.product.name, "Exact Sold:", res.product.historical_sold);

3. n8n Automated Price & Sales Tracker

Import workflows/n8n-shopee-price-tracker.json into n8n, set your RAPIDAPI_KEY header on the HTTP Request node, and schedule hourly price & sold-velocity tracking.


Supported 8 Marketplaces

Code Country Domain Currency
vn Vietnam shopee.vn VND
id Indonesia shopee.co.id IDR
th Thailand shopee.co.th THB
ph Philippines shopee.ph PHP
my Malaysia shopee.com.my MYR
sg Singapore shopee.sg SGD
tw Taiwan shopee.tw TWD
br Brazil shopee.com.br BRL

JiStudio Ecosystem

Metadata

Release files for shopee-global-api 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shopee-global-api 1.0.0
File Size Uploaded Provenance Actions
shopee_global_api-1.0.0.tar.gz 5.8 kB Without provenance Details for shopee_global_api-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shopee-global-api 1.0.0
File Interpreter ABI Platform Actions
shopee_global_api-1.0.0-py3-none-any.whl Python 3 none any Details for shopee_global_api-1.0.0-py3-none-any.whl

Total release size: 11.9 kB

Release files / shopee_global_api-1.0.0.tar.gz

Download URL shopee_global_api-1.0.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
eeefe46f37a06b51997af94ee936a7839b2945e9925454e071b6f0bca6f7067b
BLAKE2b-256 checksum
How to use checksums
002df41aa04ff7339fd8d64dc4080107a37cbcd189e9f3f9296ec0a47059bcb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / shopee_global_api-1.0.0-py3-none-any.whl

Download URL shopee_global_api-1.0.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
240ee95068be60943dd687f5a626ff70f4218bbf6569a1b27925ac2d5586433c
BLAKE2b-256 checksum
How to use checksums
1399dc176832c873b5625a36852bbf3c882c5b1e2d93b3b65d146b6145328986
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Security for shopee-global-api 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page