> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stophy.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Twitch clips

> Read a Twitch channel's clips page as JSON with the twitch-clips parser. $0.001 per 10 clips. Send the page to scrape. Examples in cURL, TypeScript and Python.

Reads a Twitch channel's clips page, like twitch.tv/twitch/clips, and returns a list of videos as JSON.

## Make a request

Send the page's URL to [scrape](https://docs.stophy.dev/api-reference/endpoint/scrape.md) with a `json` format that names the parser. Get an API key in the [Quickstart](https://docs.stophy.dev/quickstart).

```bash cURL theme={null}
curl -X POST https://api.stophy.dev/v1/scrape \
  -H "Authorization: Bearer $STOPHY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.twitch.tv/twitch/clips","formats":[{"type":"json","parser":"twitch-clips"}]}'
```

```typescript TypeScript theme={null}
const response = await fetch("https://api.stophy.dev/v1/scrape", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.STOPHY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://www.twitch.tv/twitch/clips",
    formats: [{ type: "json", parser: "twitch-clips" }],
  }),
});
console.log(await response.json());
```

```python Python theme={null}
import os

import requests

response = requests.post(
    "https://api.stophy.dev/v1/scrape",
    headers={"Authorization": f"Bearer {os.environ['STOPHY_API_KEY']}"},
    json={
        "url": "https://www.twitch.tv/twitch/clips",
        "formats": [{"type": "json", "parser": "twitch-clips"}],
    },
)
print(response.json())
```

## Read the response

The parser's data is in `data.json`. Its fields include `results`, `cursor`, `page` and `total`. This sample is cut to the first items.

```json theme={null}
{
  "success": true,
  "data": {
    "json": {
      "results": [
        {
          "id": "1277432355",
          "url": "https://www.twitch.tv/twitch/clip/AbnegateObedientHyenaWOOP-8L-PLMCZUIbyZ_Wq",
          "title": "What key? The original",
          "description": null,
          "author": {
            "id": "0",
            "name": "Example user",
            "handle": "example_user",
            "url": "https://example.com/example_user",
            "avatarUrl": null
          },
          "publishedAt": "2026-11-13T05:09:43Z",
          "durationSeconds": 26,
          "views": 1408,
          "likes": null,
          "comments": null,
          "thumbnailUrl": "https://static-cdn.jtvnw.net/twitch-video-assets/twitch-vap-video-assets-prod-us-west-2/27c8b573-19fd-4e27-a5fd-15eea45…",
          "hashtags": [],
          "game": {
            "id": "509672",
            "name": "IRL"
          }
        }
      ],
      "cursor": null,
      "page": null,
      "total": null
    }
  }
}
```

## Options

Send options in the `options` object of the `json` format.

| Option | What it does |
| - | - |
| `period` | Which clips to rank by views: the last day, week or month, or all time. Matches the range on the channel's clips page. Defaults to week. |
| `limit` | Return at most this many clips. You pay \$0.001 for each 10 returned. |

## Price

\$0.001 per 10 clips. See [Pricing](https://docs.stophy.dev/account/pricing.md).

## 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](https://docs.stophy.dev/api-reference/errors.md).

## Related

* [Pre-built parsers](https://docs.stophy.dev/scrape/prebuilt-parsers) lists every parser.
* [Scrape](https://docs.stophy.dev/scrape/overview) has the options every scrape takes.
* [Twitch profile](https://docs.stophy.dev/scrape/prebuilt-parsers/video/twitch-profile.md)
* [YouTube search](https://docs.stophy.dev/scrape/prebuilt-parsers/video/youtube-search.md)
* [YouTube video](https://docs.stophy.dev/scrape/prebuilt-parsers/video/youtube-video.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.