> ## 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.

# YouTube channel

> Read a YouTube channel link as JSON with the youtube-channel parser. $1 per 1,000 calls. Send the page to scrape. Examples in cURL, TypeScript and Python.

Reads a YouTube channel link: @handle, /channel/, /c/ or /user/, with an optional tab, and returns one profile 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. This parser works without an API key when you send no options, up to 10 calls a minute and 50 calls a day per IP address. See [Rate limits](https://docs.stophy.dev/production/rate-limits.md). To lift the limits, 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.youtube.com/@mkbhd","formats":[{"type":"json","parser":"youtube-channel"}]}'
```

```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.youtube.com/@mkbhd",
    formats: [{ type: "json", parser: "youtube-channel" }],
  }),
});
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.youtube.com/@mkbhd",
        "formats": [{"type": "json", "parser": "youtube-channel"}],
    },
)
print(response.json())
```

## Read the response

The parser's data is in `data.json`. Its fields include `id`, `url`, `handle`, `name`, `bio`, `avatarUrl`, `isVerified`, `followers`, `following`, `posts`, `website`, `location` and `category`. This sample is cut to the first items.

```json theme={null}
{
  "success": true,
  "data": {
    "json": {
      "id": "UCBJycsmduvYEL83R_U4JriQ",
      "url": "https://www.youtube.com/channel/UCBJycsmduvYEL83R_U4JriQ",
      "handle": "mkbhd",
      "name": "Marques Brownlee",
      "bio": "MKBHD: Quality Tech Videos | YouTuber | Geek | Consumer Electronics | Tech Head | Internet Personality!\n…",
      "avatarUrl": "https://yt3.googleusercontent.com/qu4TmIaYUlS41-dJ9gZ7DUR3nilvmB5_11i6OKSdvNnBNiyOusZP1bMN6ICnuxtjFBb6ioKgRQ=s900-c-k-c…",
      "isVerified": null,
      "followers": 21400000,
      "following": null,
      "posts": 1800,
      "website": null,
      "location": "United States",
      "category": null,
      "bannerUrl": "https://yt3.googleusercontent.com/zi_48HwHU4s0Hnb6tZuvRzTfCPHrLEnrtIMDLzMauDEyDmURh9JZ4wrNd3lKr7m9uVnT4YjYKw=w2560-fcro…",
      "joinedDate": "2008-03-21",
      "totalViews": 5868481445,
      "results": [
        {
          "description": null,
          "likes": null,
          "comments": null,
          "type": "video",
          "title": "OLED iPad Mini is The Most Apple Product They've Ever Appled",
          "durationSeconds": 780,
          "views": 7500000,
          "thumbnailUrl": "https://i.ytimg.com/vi/g6Die8gVFn0/hqdefault.jpg",
          "isShort": false,
          "isLive": false,
          "publishedAt": "2026-11-03T00:00:00.000Z",
          "id": "g6Die8gVFn0",
          "url": "https://www.youtube.com/watch?v=g6Die8gVFn0",
          "author": {
            "id": "UCBJycsmduvYEL83R_U4JriQ",
            "name": "Marques Brownlee",
            "handle": "mkbhd",
            "url": "https://www.youtube.com/channel/UCBJycsmduvYEL83R_U4JriQ",
            "avatarUrl": null
          },
          "hashtags": []
        }
      ],
      "cursor": "4qmFsgLZCRIYVUNCSnljc21kdXZZRUw4M1JfVTRKcmlRGrwJOGdhRUJ4cUJCM3ItQmpyN0Jnb2tObUkxTTJJNFpqSXRNREF3TUMweU5URmpMV0l6Tm1JdE5UZ3lOREk1WTJJME5ESXdFdEFHUVdOV09GWmtWe..."
    }
  }
}
```

## Options

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

| Option | What it does |
| - | - |
| `tab` | YouTube's own channel tab. Releases are a music channel's albums. |
| `sort` | YouTube's own sort for the videos, shorts and live tabs. |
| `cursor` | The cursor from the previous response. Send it as is. |

## Price

\$1 per 1,000 calls. Works without an API key, within the free limits. See [Pricing](https://docs.stophy.dev/account/pricing.md).

## Limits and errors

* The URL must be a YouTube channel link: @handle, /channel/, /c/ or /user/, with an optional tab. Any other URL fails with `invalidRequest`.
* To read the next page, send the `cursor` from the response as the `cursor` option. Paging needs an API key.
* 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.
* [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)
* [YouTube transcript](https://docs.stophy.dev/scrape/prebuilt-parsers/video/youtube-transcript.md)


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