TikTok Shop sales estimate API
For a product keyword, the top TikTok Shop listings by units sold, with price and an estimated sales figure.
GET /v1/tiktok/shop/sales1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/tiktok/shop/sales?q=casetify&top=5",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "query": "casetify", "markets": [ { "region": "US", "listings": [ { "product_id": "1732681549293129861", "title": "CASETiFY [Top 20] Impact Phone Case for iPhone 18/17/16/15 Series, MagSafe Compatible, with 8.2 ft. Drop Protection", "seller": "CASETiFY US", "unitsSold": 29, "price": 64, "currency": "USD", "estimatedSales": 1856 }, { "product_id": "1732814232582131845", "title": "CASETiFY Impact Clear Phone Case for iPhone 18/17 Series, MagSafe Compatible, with 6.6 ft. Drop Protection", "seller": "CASETiFY US", "unitsSold": 20, "price": 78, "currency": "USD", "estimatedSales": 1560 }, "… 1 more" ], "totalUnitsSold": 50, "totalEstimatedSales": 3433.99 } ]}Parameters
| Name | Type | Description |
|---|---|---|
qquery · required | string | Product keyword. Example: casetify. |
topquery | integer | Listings to return, 1 to 20 (default 5). |
regionsquery | "US" | Markets (US only for now). One of US. |
Response fields
200 with a TikTokShopSalesResponse, in TikTok’s own web JSON (itemStruct, userInfo, comments).
| Field | Type | Description |
|---|---|---|
query | string | |
markets | object[] |
Status codes
| Status | Meaning |
|---|---|
200 | Top listings by units sold. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The account, video, comment, hashtag or sound does not exist on TikTok, or was removed. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | TikTok is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Is estimatedSales revenue?
No: it is units sold times the current price, an estimate. TikTok Shop does not publish revenue.
TikTok is a trademark of ByteDance Ltd. We are not affiliated with or endorsed by TikTok or ByteDance.