Scraper APIYouTube
youtube.channel
One YouTube channel from its address, handle or id: name, description, subscribers, video count, country, join date, total views, links, avatar and banner.
- Id
youtube.channel- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/youtube.channel/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
channelrequired | string | The channel: its address (youtube.com/@name, /channel/UC…, /c/name, /user/name), its handle (@name) or its id (UC…).Limit: at most 500 characters. |
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
id | string | The channel id (UC…). |
url | string | The permanent address, youtube.com/channel/<id>. |
handle | string or null | @name |
handle_url | string or null | The channel's address by its handle, youtube.com/@name; null when it has no handle. |
title | string or null | The channel's name. |
description | string or null | The channel's description of itself, as text. |
subscriber_count_text | string or null | As shown ("4.56M subscribers"). |
subscriber_count | integer or null | As YouTube publishes it: rounded to three figures. |
video_count_text | string or null | As shown ("442 videos"), when the page shows it. |
video_count | integer or null | The number in video_count_text, when the text reads as one. |
country | string or null | The country the channel states in its About panel, in English; null when it states none. |
joined_text | string or null | When the channel joined YouTube, as its About panel shows it ("Joined Jun 3, 2008"). |
joined_date | string (date) or null | That day as a date, when the text reads as one. |
view_count_text | string or null | The channel's total views as its About panel shows them ("1,136,362,306 views"). |
view_count | integer or null | The total views as a number. |
links | array of string | The links the channel lists about itself. |
keywords | array of string | The tags the channel's page declares. |
verified | boolean or null | The channel shows YouTube's verified check. |
badges | array of string | "verified", "official_artist". |
is_family_safe | boolean or null | YouTube's own family-safe mark for the channel, as the page declares it. |
avatar | array of object | The channel's picture, in the sizes the page lists, smallest first. |
url (in avatar[]) | string | The image's address. |
width (in avatar[]) | integer or null | Its width in pixels, when the page states it. |
height (in avatar[]) | integer or null | Its height in pixels, when the page states it. |
banner | array of object | The banner across the top of the channel's page, in the sizes the page lists, smallest first; empty when it has none. |
url (in banner[]) | string | The image's address. |
width (in banner[]) | integer or null | Its width in pixels, when the page states it. |
height (in banner[]) | integer or null | Its height in pixels, when the page states it. |
rss_url | string or null | The address of the channel's RSS feed, as the page declares it. |
fetched_at | string (date-time) | When the page was read, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/youtube.channel/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"channel":"@NASA"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("youtube.channel", {"channel": "@NASA"})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("youtube.channel", { channel: "@NASA" });
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "youtube.channel", map[string]any{"channel": "@NASA"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("youtube.channel", Map.of("channel", "@NASA"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run youtube.channel --input channel=@NASAInstall it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"channel": "@NASA"
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "youtube.channel",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"channel": "@NASA"
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"id": "UCLA_DiR1FfKNvjuUpBHmylQ",
"url": "https://www.youtube.com/channel/UCLA_DiR1FfKNvjuUpBHmylQ",
"handle": "@NASA",
"handle_url": "https://www.youtube.com/@NASA",
"title": "NASA",
"description": "NASA's mission is to pioneer the future in space exploration, scientific discovery, and aeronautics research.\r\n\r\nTo do that, we have worked around the world—and off it—for more than 60 years, searching for answers to fundamental questions … [truncated]",
"subscriber_count_text": "15.1M subscribers",
"subscriber_count": 15100000,
"video_count_text": "6.2K videos",
"video_count": 6200,
"country": null,
"joined_text": null,
"joined_date": null,
"view_count_text": null,
"view_count": null,
"links": [
"https://www.nasa.gov",
"https://x.com/nasa",
"https://www.facebook.com/NASA"
],
"keywords": [
"nasa",
"space",
"iss"
],
"verified": true,
"badges": [
"verified"
],
"is_family_safe": true,
"avatar": [
{
"url": "https://yt3.googleusercontent.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s900-c-k-c0x00ffffff-no-rj",
"width": 900,
"height": 900
}
],
"banner": [
{
"url": "https://yt3.googleusercontent.com/y8Srh-oCcilLvBO8jAPI546m1bn0puA5DIvQiBZ1cSxc_rZfKxKSFlTCtoCQCtB6viUf1NGsaQ=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
"width": 1060,
"height": 175
},
{
"url": "https://yt3.googleusercontent.com/y8Srh-oCcilLvBO8jAPI546m1bn0puA5DIvQiBZ1cSxc_rZfKxKSFlTCtoCQCtB6viUf1NGsaQ=w1138-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
"width": 1138,
"height": 188
}
],
"rss_url": "https://www.youtube.com/feeds/videos.xml?channel_id=UCLA_DiR1FfKNvjuUpBHmylQ",
"fetched_at": "2026-11-19T18:07:42.785496Z"
}
],
"next_cursor": null
}What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].
- Shortened:
description: 364 characters, the first 238 shown. - Shortened:
links: 6 items, the first 3 shown. - Shortened:
keywords: 21 items, the first 3 shown. - Shortened:
banner: 6 items, the first 2 shown.
A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the YouTube scrapers are in their own section there.