Twitch Streams Scraper Gql avatar

Twitch Streams Scraper Gql

Pricing

from $2.99 / 1,000 results

Go to Apify Store
Twitch Streams Scraper Gql

Twitch Streams Scraper Gql

Twitch Streams Scraper GQL is a Python tool to extract stream titles, game categories, live viewer counts, streamer usernames, and uptime timestamps from Twitch's internal GraphQL endpoint. It exports structured live-streaming datasets into clean CSV or JSON formats

Pricing

from $2.99 / 1,000 results

Rating

0.0

(0)

Developer

real-estate-api

real-estate-api

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

18 days ago

Last modified

Categories

Features

Limited permissions

Share

Twitch Streams Scraper (GQL) — Live Twitch Streams and Viewer Statistics

Twitch Streams Scraper (GQL) cover

Overview

Twitch Streams Scraper (GQL) collects publicly available live stream information from Twitch and organizes it into a structured dataset. Capture stream IDs, titles, viewer counts, broadcaster details, and game categories without manually browsing Twitch's live directory.

Export the collected data in JSON, CSV, Excel, and other supported Apify dataset formats.

Features

  • Live Stream Collection: Retrieve live streams from Twitch's directory.
  • Top Streams: Collect streams sorted by viewer count.
  • Game Filtering: Filter results by game or category name.
  • Broadcaster Details: Capture broadcaster login and display names.
  • Viewer Statistics: Collect the current viewer count for each stream.
  • Maximum Item Control: Set a limit on the number of records collected.
  • Structured Dataset: Store stream information in a clean, organized format.
  • Scheduled Runs: Refresh live stream data using Apify schedules.

Collection Mode

ModeDescription
topStreamsCollect live streams sorted by viewer count, up to the configured maxItems limit.

The actor typically retrieves up to 30 streams per page. Twitch may restrict requests for subsequent pages, so a run can return fewer records than the requested maximum.

Input Parameters

ParameterTypeDescription
modeStringCollection mode. Use topStreams.
firstIntegerNumber of streams requested per page.
gameNameStringOptional game or category name used to filter results. Leave empty to include all categories.
maxItemsIntegerMaximum number of stream records to collect.
requestDelayMsIntegerDelay between requests in milliseconds.
userAgentStringUser-Agent value used for requests.
timeoutSecsIntegerOverall run timeout in seconds.
requestTimeoutSecsIntegerIndividual request timeout in seconds.

Example Input

{
"mode": "topStreams",
"first": 30,
"gameName": "",
"maxItems": 50,
"requestDelayMs": 1000,
"userAgent": "ActorResearch/1.0",
"timeoutSecs": 300,
"requestTimeoutSecs": 30
}

What Data Does This Actor Extract?

FieldDescription
streamIdUnique identifier of the live stream.
streamTitleTitle of the live stream.
viewersCountCurrent number of viewers.
broadcasterBroadcaster information, including login and display name.
gameGame or category associated with the stream.
scrapedAtDate and time when the record was collected.

Example Output

{
"streamId": "319543611735",
"streamTitle": "SPOOKY TIME",
"viewersCount": 64146,
"broadcaster": {
"login": "caseoh_",
"displayName": "caseoh_"
},
"game": {
"name": "Minecraft"
},
"scrapedAt": "2026-10-26T00:00:00+00:00"
}

Use Cases

  • Live Directory Snapshots: Build spreadsheets of popular live streams ranked by viewer count.
  • Category Monitoring: Collect streams associated with a particular game or category.
  • Creator Research: Explore broadcaster login names and display names from public streams.
  • Viewer Analysis: Compare viewer counts across collected live streams.
  • Scheduled Monitoring: Run the actor periodically to collect fresh live directory snapshots.

Working with Your Dataset

After a successful run, access the collected records through the Apify Dataset tab.

You can export the dataset in JSON, CSV, Excel, and other supported formats for analysis, reporting, or further processing.

FAQ

Who is this actor for?

It is designed for analysts, researchers, and developers who want structured information about publicly listed Twitch live streams.

What data does it collect?

It collects stream IDs, titles, viewer counts, broadcaster details, game categories, and collection timestamps.

Can I filter streams by game?

Yes. Enter a game or category name in gameName to filter the collected results.

Can I collect more than 30 streams?

You can configure maxItems to request more records. However, Twitch may restrict subsequent pages, so the actual number collected can be lower than the requested limit.

Can I run it on a schedule?

Yes. You can configure Apify schedules to collect fresh live stream snapshots at your preferred intervals.

How fresh is the collected data?

Each run collects information at request time. Viewer counts and stream availability can change after collection.

Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, sponsored by, or officially associated with Twitch or its owners. It collects information from publicly available pages. Users are responsible for ensuring that their use of collected data complies with applicable terms and laws.

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same thing as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article Is web scraping legal?.