NEW AI Studio is now available Try it now
Social

TikTok Social Scraper

Extract video metadata, creator profiles, engagement metrics, and trending sounds from TikTok. Powered by spider-browser .

Get Started Documentation
tiktok.com target
99.5% success rate
~4ms latency
Quick Start

Extract data in minutes

tiktok-social-scraper.ts
import { SpiderBrowser } from "spider-browser";

const spider = new SpiderBrowser({
  apiKey: process.env.SPIDER_API_KEY!,
  stealth: 2,
});

await spider.connect();
const page = spider.page!;
await page.goto("https://www.tiktok.com/@nasa");
await page.content(12000);

const data = await page.evaluate(`(() => {
  const videos = [];
  document.querySelectorAll("[data-e2e='user-post-item']").forEach(el => {
    const caption = el.querySelector("[data-e2e='video-desc']")?.textContent?.trim();
    const views = el.querySelector("[data-e2e='video-views']")?.textContent?.trim();
    const link = el.querySelector("a")?.href;
    if (caption || views) videos.push({ caption: caption?.slice(0, 200), views, link });
  });
  return JSON.stringify({ total: videos.length, videos: videos.slice(0, 10) });
})()`);

console.log(JSON.parse(data));
await spider.close();
✓ ready to run | spider-browser | TypeScript
Fetch API

Structured data endpoint

Extract structured JSON from tiktok.com with a single POST request. AI-configured selectors, cached for fast repeat calls.

POST /fetch/tiktok.com/
Video captionCreatorLikesCommentsSharesViews
curl
curl -X POST https://api.spider.cloud/fetch/tiktok.com/ \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"return_format": "json"}'
Python
import requests

resp = requests.post(
    "https://api.spider.cloud/fetch/tiktok.com/",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
    json={"return_format": "json"},
)
print(resp.json())
Node.js
const resp = await fetch("https://api.spider.cloud/fetch/tiktok.com/", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ return_format: "json" }),
});
const data = await resp.json();
console.log(data);
Extraction

Data you can extract

Video captionCreatorLikesCommentsSharesViewsSound nameHashtags
Stealth

Platform bypass

Residential proxies and fingerprint rotation for tiktok.com access.

Rendering

SPA rendering

Full JavaScript execution for React-based feeds and dynamic content.

Data

Profile & post data

Extract public profiles, posts, engagement metrics, and connections.

Related

More Social scrapers

Start scraping tiktok.com

Get your API key and start extracting data in minutes.