HasData is an independent service and is not affiliated with, endorsed by, or sponsored by YouTube. YouTube is a trademark of its respective owner. This API works with publicly available data only.
Get Your API Key
Sign in at hasdata.com, go to your account settings, and copy your API key. All requests must include your key in thex-api-key header.
Request Cost and API Credits
Each request to the YouTube Channel Scraper API consumes API Credits from your account balance.- Cost per request: 10 API Credits
- Credits are deducted only for successful requests.
- Your total available credits depend on your active plan.
Make Your First Request
API Parameters
| Parameter | Default Value | Required | Description |
|---|---|---|---|
channelId | @PewDiePie | Yes | YouTube channel identifier — either the canonical channel ID (UC…, 24 chars) or the public handle starting with @ (e.g. @PewDiePie). Legacy /c/<custom> and /user/<name> URL slugs are also accepted. |
tab | - | No | Channel tab to scrape. Each tab returns a different content shape: - featured (default) — channel Home page (channel trailer + curated rows)- videos — uploaded long-form videos- shorts — Shorts feed- streams — past and upcoming live streams- playlists — created and saved playlists- posts / community — community posts- podcasts — podcast episodes- releases — music releases- about — channel description, links, stats- store — channel merch |
gl | - | No | The two-letter country code for the country you want to limit the search to. |
hl | - | No | The two-letter language code for the language you want to use for the search. |
deviceType | - | No | Device type for the request. |
paginationToken | - | No | Token returned in the previous response to fetch the next page of results. |