curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":[{"url":"https://www.tiktok.com/shop/store/mavm/7495974556885158484"}],"limit_per_input":null}' \
"https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_m45m1u911dsa4274pi¬ify=false&include_errors=true&type=discover_new&discover_by=shop"
import requests
response = requests.post(
"https://api.brightdata.com/datasets/v3/scrape",
params={
"dataset_id": "gd_m45m1u911dsa4274pi",
"notify": "false",
"include_errors": "true",
"type": "discover_new",
"discover_by": "shop",
},
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"input": [
{"url": "https://www.tiktok.com/shop/store/mavm/7495974556885158484"},
],
"limit_per_input": None,
},
)
print(response.text)
const params = new URLSearchParams({
dataset_id: "gd_m45m1u911dsa4274pi",
notify: "false",
include_errors: "true",
type: "discover_new",
discover_by: "shop",
});
const response = await fetch(`https://api.brightdata.com/datasets/v3/scrape?${params}`, {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
input: [
{ url: "https://www.tiktok.com/shop/store/mavm/7495974556885158484" },
],
limit_per_input: null,
}),
});
console.log(await response.text());
[
{
"url": "https://shop.tiktok.com/us/pdp/mavm-mens-intimate-wash-260ml-plant-based-ph-balanced-hypoallergenic/1729941055972610644",
"id": "1729941055972610644",
"title": "MAVM Men's Intimate Wash, pH Balanced",
"currency": "USD",
"initial_price": 116.87,
"final_price": 53.29,
"store_name": "MAVM",
"seller_url": "https://shop.tiktok.com/us/store/mavm/7495974556885158484",
"category": "Bath & Shower",
"category_url": "https://shop.tiktok.com/us/c/bath-shower/601493",
"availability": "in_stock",
"domain": "shop.tiktok.com",
"image_url": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/ac0a4399f0314b4486ac6e5fa87e1e71~tplv-fhlh96nyum-crop-webp:800:800.webp?dr=12190&t=555f072d&ps=933b5bde&shp=c940a200&shcp=9b759fb9&idc=useast5&from=3376456192"
}
]
TikTok
按店铺发现 TikTok Shop 商品
使用 Bright Data Scraper API 按店铺 URL 发现该店铺在售的 TikTok Shop 商品。发送 POST /datasets/v3/scrape 请求,dataset_id 为 gd_m45m1u911dsa4274pi。
POST
/
datasets
/
v3
/
scrape
curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":[{"url":"https://www.tiktok.com/shop/store/mavm/7495974556885158484"}],"limit_per_input":null}' \
"https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_m45m1u911dsa4274pi¬ify=false&include_errors=true&type=discover_new&discover_by=shop"
import requests
response = requests.post(
"https://api.brightdata.com/datasets/v3/scrape",
params={
"dataset_id": "gd_m45m1u911dsa4274pi",
"notify": "false",
"include_errors": "true",
"type": "discover_new",
"discover_by": "shop",
},
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"input": [
{"url": "https://www.tiktok.com/shop/store/mavm/7495974556885158484"},
],
"limit_per_input": None,
},
)
print(response.text)
const params = new URLSearchParams({
dataset_id: "gd_m45m1u911dsa4274pi",
notify: "false",
include_errors: "true",
type: "discover_new",
discover_by: "shop",
});
const response = await fetch(`https://api.brightdata.com/datasets/v3/scrape?${params}`, {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
input: [
{ url: "https://www.tiktok.com/shop/store/mavm/7495974556885158484" },
],
limit_per_input: null,
}),
});
console.log(await response.text());
[
{
"url": "https://shop.tiktok.com/us/pdp/mavm-mens-intimate-wash-260ml-plant-based-ph-balanced-hypoallergenic/1729941055972610644",
"id": "1729941055972610644",
"title": "MAVM Men's Intimate Wash, pH Balanced",
"currency": "USD",
"initial_price": 116.87,
"final_price": 53.29,
"store_name": "MAVM",
"seller_url": "https://shop.tiktok.com/us/store/mavm/7495974556885158484",
"category": "Bath & Shower",
"category_url": "https://shop.tiktok.com/us/c/bath-shower/601493",
"availability": "in_stock",
"domain": "shop.tiktok.com",
"image_url": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/ac0a4399f0314b4486ac6e5fa87e1e71~tplv-fhlh96nyum-crop-webp:800:800.webp?dr=12190&t=555f072d&ps=933b5bde&shp=c940a200&shcp=9b759fb9&idc=useast5&from=3376456192"
}
]
查询参数
请求体
curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":[{"url":"https://www.tiktok.com/shop/store/mavm/7495974556885158484"}],"limit_per_input":null}' \
"https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_m45m1u911dsa4274pi¬ify=false&include_errors=true&type=discover_new&discover_by=shop"
import requests
response = requests.post(
"https://api.brightdata.com/datasets/v3/scrape",
params={
"dataset_id": "gd_m45m1u911dsa4274pi",
"notify": "false",
"include_errors": "true",
"type": "discover_new",
"discover_by": "shop",
},
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"input": [
{"url": "https://www.tiktok.com/shop/store/mavm/7495974556885158484"},
],
"limit_per_input": None,
},
)
print(response.text)
const params = new URLSearchParams({
dataset_id: "gd_m45m1u911dsa4274pi",
notify: "false",
include_errors: "true",
type: "discover_new",
discover_by: "shop",
});
const response = await fetch(`https://api.brightdata.com/datasets/v3/scrape?${params}`, {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
input: [
{ url: "https://www.tiktok.com/shop/store/mavm/7495974556885158484" },
],
limit_per_input: null,
}),
});
console.log(await response.text());
[
{
"url": "https://shop.tiktok.com/us/pdp/mavm-mens-intimate-wash-260ml-plant-based-ph-balanced-hypoallergenic/1729941055972610644",
"id": "1729941055972610644",
"title": "MAVM Men's Intimate Wash, pH Balanced",
"currency": "USD",
"initial_price": 116.87,
"final_price": 53.29,
"store_name": "MAVM",
"seller_url": "https://shop.tiktok.com/us/store/mavm/7495974556885158484",
"category": "Bath & Shower",
"category_url": "https://shop.tiktok.com/us/c/bath-shower/601493",
"availability": "in_stock",
"domain": "shop.tiktok.com",
"image_url": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/ac0a4399f0314b4486ac6e5fa87e1e71~tplv-fhlh96nyum-crop-webp:800:800.webp?dr=12190&t=555f072d&ps=933b5bde&shp=c940a200&shcp=9b759fb9&idc=useast5&from=3376456192"
}
]
此页面对您有帮助吗?