Shop Best Sellers
curl --request GET \
--url https://scrapebadger.com/v1/tiktok/shop/ranking \
--header 'x-api-key: <api-key>'import requests
url = "https://scrapebadger.com/v1/tiktok/shop/ranking"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://scrapebadger.com/v1/tiktok/shop/ranking', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://scrapebadger.com/v1/tiktok/shop/ranking",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/tiktok/shop/ranking"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/tiktok/shop/ranking")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/tiktok/shop/ranking")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"products": [
{
"product_id": "1729448464509734958",
"title": "Toplux Magnesium Complex 8 Essential Magnesium Supplement",
"url": "https://shop.tiktok.com/us/pdp/magnesium-complex-by-toplux-8-essential-magnesium-forms-in-one-capsule/1729448464509734958",
"image": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/0b7d3556b58d451da...",
"price": {
"amount": 16.97,
"original": 49.97,
"discount": "66%",
"currency": "USD",
"symbol": "$"
},
"rating": 4.6,
"review_count": null,
"sold_count": 2000000,
"seller": {
"id": null,
"name": "Toplux Nutrition",
"logo": null
},
"brand": null,
"labels": [
"Free shipping"
],
"promo": "Limited time deal",
"video": null,
"rank": 1
},
{
"product_id": "1731997246433955867",
"title": "[Dr.Melaxin Official] Gifted Collagen Boost Set Pore Spot Skin Care Calcium Collagen Volume Firming Balm for Enhanced Skin Health routine",
"url": "https://shop.tiktok.com/us/pdp/gifted-collagen-boost-set-for-enhanced-skin-health-routine/1731997246433955867",
"image": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/60593f61e24149a78...",
"price": {
"amount": 58.5,
"original": 273,
"discount": "79%",
"currency": "USD",
"symbol": "$"
},
"rating": 4.5,
"review_count": null,
"sold_count": 471700,
"seller": {
"id": null,
"name": "Dr.Melaxin",
"logo": null
},
"brand": null,
"labels": [
"Free shipping"
],
"promo": null,
"video": null,
"rank": 2
}
],
"period": "past_30_days",
"region": "US"
}Shop
Shop Best Sellers
TikTok Shop’s official best sellers of the past 30 days, ranked, with price, discount, rating, sold count and seller.
GET
/
v1
/
tiktok
/
shop
/
ranking
Shop Best Sellers
curl --request GET \
--url https://scrapebadger.com/v1/tiktok/shop/ranking \
--header 'x-api-key: <api-key>'import requests
url = "https://scrapebadger.com/v1/tiktok/shop/ranking"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://scrapebadger.com/v1/tiktok/shop/ranking', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://scrapebadger.com/v1/tiktok/shop/ranking",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/tiktok/shop/ranking"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/tiktok/shop/ranking")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/tiktok/shop/ranking")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"products": [
{
"product_id": "1729448464509734958",
"title": "Toplux Magnesium Complex 8 Essential Magnesium Supplement",
"url": "https://shop.tiktok.com/us/pdp/magnesium-complex-by-toplux-8-essential-magnesium-forms-in-one-capsule/1729448464509734958",
"image": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/0b7d3556b58d451da...",
"price": {
"amount": 16.97,
"original": 49.97,
"discount": "66%",
"currency": "USD",
"symbol": "$"
},
"rating": 4.6,
"review_count": null,
"sold_count": 2000000,
"seller": {
"id": null,
"name": "Toplux Nutrition",
"logo": null
},
"brand": null,
"labels": [
"Free shipping"
],
"promo": "Limited time deal",
"video": null,
"rank": 1
},
{
"product_id": "1731997246433955867",
"title": "[Dr.Melaxin Official] Gifted Collagen Boost Set Pore Spot Skin Care Calcium Collagen Volume Firming Balm for Enhanced Skin Health routine",
"url": "https://shop.tiktok.com/us/pdp/gifted-collagen-boost-set-for-enhanced-skin-health-routine/1731997246433955867",
"image": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/60593f61e24149a78...",
"price": {
"amount": 58.5,
"original": 273,
"discount": "79%",
"currency": "USD",
"symbol": "$"
},
"rating": 4.5,
"review_count": null,
"sold_count": 471700,
"seller": {
"id": null,
"name": "Dr.Melaxin",
"logo": null
},
"brand": null,
"labels": [
"Free shipping"
],
"promo": null,
"video": null,
"rank": 2
}
],
"period": "past_30_days",
"region": "US"
}The storefront’s own “Best sellers in past 30 days” ranking —
rank is the 1-based position and promo carries the active deal label (Flash sale, Limited time deal) when there is one.US market only — TikTok Shop resolves the market from the visitor’s location and these endpoints read the US storefront (prices in USD). Lists return what the storefront page renders; there is no further pagination.
Each request costs 5 credits. Failed requests are not charged.
Authorizations
Query Parameters
Maximum number of products to return (the page carries about 18).
Required range:
1 <= x <= 50
