Make a request
Send the page’s URL to scrape with ajson format that names the parser. Get an API key in the Quickstart.
Read the response
The parser’s data is indata.json. Its fields include results, cursor, page and total. This sample is cut to the first items.
Options
Send options in theoptions object of the json format.
Price
$0.001 per 10 clips. See Pricing.Limits and errors
- The URL must be a Twitch channel’s clips page, like twitch.tv/twitch/clips. The range in the link (24hr, 7d, 30d or all) picks the period, and a link with no range gives the last 7 days. Options limit sets how many clips, up to 100. Twitch gives one page of clips, so there is no next page. Any other URL fails with
invalidRequest. - The answer comes back in
data.json. If the page cannot be read, the call fails with an error code from Errors.
Related
- Pre-built parsers lists every parser.
- Scrape has the options every scrape takes.
- Twitch profile
- YouTube search
- YouTube video