Anmelden
Verwenden Sie den JS-Token

TikTok-Scrapers funktionieren am besten mit Ihrem JavaScript token.

API-Nutzung

Fügen Sie &scraper=tiktok-product zu einem Crawling API-Request hinzu. URL-kodieren Sie die Ziel-URL im Parameter url.

curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
  --data-urlencode 'url=https://www.tiktok.com/view/product/1729493620818874839' \
  --data-urlencode 'scraper=tiktok-product' -G
from crawlbase import CrawlingAPI

api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
    'https://www.tiktok.com/view/product/1729493620818874839',
    {'scraper': 'tiktok-product'}
)

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/view/product/1729493620818874839',
  { scraper: 'tiktok-product' }
);
const data = JSON.parse(res.body);
require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')

res = api.get('https://www.tiktok.com/view/product/1729493620818874839', scraper: 'tiktok-product')
data = JSON.parse(res.body)

Beispiel-Eingabe-URL

Die im Parameter url übergebene URL (zur besseren Lesbarkeit URL-dekodiert):

https://www.tiktok.com/view/product/1729493620818874839

Response-Struktur

JSON Response-Body. Feldtypen können null sein, wenn die Quellseite den Wert nicht enthält.

product_id
string
Produkt-ID aus der URL.
title
string
Produkttitel.
price
string
Aktueller Verkaufspreis.
original_price
string | null
Preis vor dem Rabatt, wenn das Produkt im Angebot ist.
discount_percentage
string | null
Rabatt als Prozent-String, z. B. "20%".
rating
number
Durchschnittliche Produktbewertung.
reviews_count
integer
Gesamtanzahl der Bewertungen.
sold_count
string
Insgesamt verkaufte Einheiten (formatiert als "10K+", "1.2M+").
description
string
Produktbeschreibung.
images
array
Array von Produktbild-URLs.
variants
array
Array von Varianten-Objekten (Farbe, Größe usw.).
seller
object
Verkäufer-Metadaten: name, rating, follower_count.
related_videos
array
TikTok-Videos, die dieses Produkt zeigen.

Beispiel-Response

{
  "product_id": "1729493620818874839",
  "title": "Wireless Bluetooth Earbuds Pro",
  "price": "$24.99",
  "original_price": "$49.99",
  "discount_percentage": "50%",
  "rating": 4.7,
  "reviews_count": 12453,
  "sold_count": "50K+",
  "seller": {
    "name": "AudioPro Store",
    "rating": 4.8,
    "follower_count": 28000
  }
}