Twitch Gaming Scraper
Extract live stream data, channel info, viewer counts, and category listings from Twitch streaming platform. Powered by spider-browser .
Extract data in minutes
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.twitch.tv/directory/category/league-of-legends");
await page.content(10000);
const data = await page.evaluate(`(() => {
const streams = [];
document.querySelectorAll("[data-a-target='card-0'], [data-a-target*='card-']").forEach(el => {
const title = el.querySelector("[data-a-target='preview-card-title-link'] h3")?.textContent?.trim();
const channel = el.querySelector("[data-a-target='preview-card-channel-link'] p")?.textContent?.trim();
const viewers = el.querySelector(".tw-media-card-stat")?.textContent?.trim();
if (title) streams.push({ title, channel, viewers });
});
return JSON.stringify({ total: streams.length, streams: streams.slice(0, 10) });
})()`);
console.log(JSON.parse(data));
await spider.close(); Structured data endpoint
Extract structured JSON from twitch.tv with a single POST request. AI-configured selectors, cached for fast repeat calls.
/fetch/twitch.tv/ curl -X POST https://api.spider.cloud/fetch/twitch.tv/ \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"return_format": "json"}' import requests
resp = requests.post(
"https://api.spider.cloud/fetch/twitch.tv/",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
json={"return_format": "json"},
)
print(resp.json()) const resp = await fetch("https://api.spider.cloud/fetch/twitch.tv/", {
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); Data you can extract
Game metadata
Extract prices, reviews, system requirements, and ratings from twitch.tv.
Store page handling
Handle dynamic storefronts, interactive catalogs, and lazy-loaded content.
Catalog coverage
Process entire game libraries and mod repositories at scale.
More Gaming & Esports scrapers
Extract game listings, pricing, reviews, tags, and player counts from the Steam store and community pages.
Extract game listings, pricing, free game promotions, and metadata from the Epic Games Store.
Extract DRM-free game listings, pricing, compatibility info, and user ratings from the GOG store.
Start scraping twitch.tv
Get your API key and start extracting data in minutes.