登录
使用 JS token

TikTok scrapers 配合您的 JavaScript token 效果最佳。

API 用法

Crawling API 请求中添加 &scraper=tiktok-shop。在 url 参数中对目标 URL 进行 URL 编码。

curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
  --data-urlencode 'url=https://www.tiktok.com/shop/store/medcursor/7495198098029185725' \
  --data-urlencode 'scraper=tiktok-shop' -G
from crawlbase import CrawlingAPI

api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
    'https://www.tiktok.com/shop/store/medcursor/7495198098029185725',
    {'scraper': 'tiktok-shop'}
)

import json
data = json.loads(res['body'])
const { CrawlingAPI } = require('crawlbase');
const api = new CrawlingAPI({ token: 'YOUR_TOKEN' });

const res = await api.get(
  'https://www.tiktok.com/shop/store/medcursor/7495198098029185725',
  { scraper: 'tiktok-shop' }
);
const data = JSON.parse(res.body);
require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')

res = api.get('https://www.tiktok.com/shop/store/medcursor/7495198098029185725', scraper: 'tiktok-shop')
data = JSON.parse(res.body)

示例输入 URL

传入 url 参数的 URL(为便于阅读已 URL 解码):

https://www.tiktok.com/shop/store/medcursor/7495198098029185725

响应结构

JSON 响应体。当源页面缺少该值时,字段类型可能为 null

shop_id
string
店铺标识符。
shop_name
string
店铺的显示名称。
logo_url
string
店铺 logo URL。
rating
number
店铺平均评分。
reviews_count
integer
店铺的评论总数。
follower_count
integer
店铺粉丝数量。
products_count
integer
上架商品总数。
products
array
落地页上的示例商品。

示例响应

{
  "shop_id": "7495198098029185725",
  "shop_name": "Medcursor",
  "rating": 4.6,
  "reviews_count": 8420,
  "follower_count": 125000,
  "products_count": 342
}