Twitch Scraper
Pricing
from $0.55 / 1,000 channels
Go to Apify Store
Twitch Scraper
Get Twitch channel profiles with followers, socials and live status, plus past videos, clips and the live streams of any game or category with viewer counts.
Twitch Scraper
Pricing
from $0.55 / 1,000 channels
Get Twitch channel profiles with followers, socials and live status, plus past videos, clips and the live streams of any game or category with viewer counts.
You can access the Twitch Scraper programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "channelUsernames": [12 "shroud",13 "pokimane"14 ],15 "gameNames": [16 "Just Chatting"17 ],18 "includeVideos": true,19 "maxVideosPerChannel": 5,20 "includeClips": true,21 "maxClipsPerChannel": 5,22 "maxStreamsPerGame": 20,23 "proxyConfiguration": {24 "useApifyProxy": true25 }26};27
28// Run the Actor and wait for it to finish29const run = await client.actor("automly/twitch-scraper").call(input);30
31// Fetch and print Actor results from the run's dataset (if any)32console.log('Results from dataset');33console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);34const { items } = await client.dataset(run.defaultDatasetId).listItems();35items.forEach((item) => {36 console.dir(item);37});38
39// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docsThe Apify API client for JavaScript is the official library that allows you to use Twitch Scraper API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-clientOther API clients include: