Scraper API
YouTubeyoutube.videoAvailable
YouTube video
Its title, description, channel, dates, length, views, likes, comment count, tags, hashtags, chapters and caption languages.
Give it a YouTube video's address, or its id.
1 unit a run, for runs that return data. Runs that fail cost nothing. How units work
- Counted
- 1 unit a run
- Inputs
- 2
- Record
- 39 fields
- A run takes
- up to 5 minutes
- Records kept
- 7 days
- Measured
- its success, on the status page
POST/v1/scrapers/youtube.video/runs
sent, and answered
a record of the run39 fields
ok1 unit a run
A record this scraper returned for this input. The first 9 of its 39 fields are set down here; the whole record is below.

What it is used for
- Measure a video
- Read a video's views, likes and number of comments, with its title, description, keywords, category, duration and chapters.
- Check a video can be played
playable,embeddable,age_restrictedandavailable_countriessay whether a video will play where you mean to show it, before you embed it.- Build a catalogue of videos
- Keep one record per video with its channel, publication date, thumbnails and the languages of its captions, refreshed when you choose.
What you send
A YouTube video's address, or its id. These are its 2 inputs, as its schema has them.
urlstring One of the two- The video's address: a youtube.com/watch, youtu.be, /shorts/, /live/ or /embed/ link.
video_idstring One of the two- The video's 11-character id.
A request, ready to send
It starts a run with the input shown at the top of this page, waits up to 60 seconds for it, and reads its records. Put your key in the variable it reads.
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/youtube.video/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}}'
# 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.video", {
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
})
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.video", {
url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
});
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.video", map[string]any{"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"})
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.video", Map.of("url", "https://www.youtube.com/watch?v=dQw4w9WgXcQ"));
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.video --input 'url=https://www.youtube.com/watch?v=dQw4w9WgXcQ'Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
What comes back
Its title, description, channel, dates, length, views, likes, comment count, tags, hashtags, chapters and caption languages. A record has 39 fields. One we could not read is null, never an empty string or a zero.
{
"id": "dQw4w9WgXcQ",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
"description": "The official video for “Never Gonna Give You Up” by Rick Astley. \n\nNever: The Autobiography 📚 OUT NOW! \nFollow this link to get your copy and listen to Rick’s ‘Never’ playlist ❤️ #RickAstleyNever\nhttps://linktr.ee/rickastleynever\n\n“Never … [truncated]",
"channel_name": "Rick Astley",
"channel_id": "UCuAXFkgsw1L7xaCfnd5JJOw",
"channel_url": "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw",
"channel_handle": "@RickAstleyYT",
"channel_verified": true,
"channel_subscriber_count_text": "4.56M subscribers",
"published_at": "2009-10-24T23:57:33-07:00",
"uploaded_at": "2009-10-24T23:57:33-07:00",
"published_text": "Oct 24, 2009",
"duration_seconds": 213,
"view_count": 1837923431,
"like_count": 19508123,
"keywords": [
"rick astley",
"Never Gonna Give You Up",
"nggyu"
],
"category": "Music",
"is_live": false,
"is_live_content": false,
"is_upcoming": false,
"live_started_at": null,
"live_ended_at": null,
"is_unlisted": false,
"is_family_safe": true,
"age_restricted": false,
"playable": true,
"playability_status": "OK",
"playability_reason": null,
"embeddable": true,
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg?sqp=-oaymwEfCKgBEF5IVfKriqkDEggBFQAAiEIYAXABwAEGuALzGA==&rs=AOn4CLAy5pvOfmmlRtbC9v1ptqnWgPympA",
"width": 168,
"height": 94
},
{
"url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg?sqp=-oaymwEfCMQBEG5IVfKriqkDEggBFQAAiEIYAXABwAEGuALzGA==&rs=AOn4CLDnaw1sg9xedLybAaLCts8m3KNOlQ",
"width": 196,
"height": 110
}
],
"caption_tracks": [
{
"language_code": "en",
"name": "English",
"auto_generated": false,
"translatable": true
},
{
"language_code": "en",
"name": "English (auto-generated)",
"auto_generated": true,
"translatable": true
}
],
"caption_languages": [
"en",
"de-DE",
"ja"
],
"hashtags": [
"#OfficialMusicVideo",
"#NeverGonnaGiveYouUp",
"#RickAstleyNever"
],
"comment_count_text": null,
"comment_count": null,
"chapters": [],
"available_countries": [],
"fetched_at": "2026-11-19T18:07:42.965142Z"
}The scraper returned this record for the input above, reading a saved copy of the page, not the live site.
Values shortened for this page: description: 2,375 characters, the first 237 shown; keywords: 27 items, the first 3 shown; thumbnails: 5 items, the first 2 shown; caption_tracks: 6 items, the first 2 shown; caption_languages: 5 items, the first 3 shown.
The fields of a record
idstring- The video id: the
vof its address. urlstring- The video's address: youtube.com/watch?v=<id>.
titlestring or null- The video's title.
descriptionstring or null- The full description, as text.
channel_namestring or null- The name of the channel that published it.
channel_idstring or null- That channel's id (UC…).
channel_urlstring or null- That channel's permanent address, youtube.com/channel/<id>; its address by handle when the page gave no id.
channel_handlestring or null- @name, when the page links the channel by its handle.
channel_verifiedboolean or null- The channel shows a verified or official-artist badge under the video; null when the page did not carry the channel's block.
channel_subscriber_count_textstring or null- The channel's subscribers as shown under the video ("4.56M subscribers"): a figure YouTube rounds, kept as text.
published_atdatetime or null- When it was made public.
uploaded_atdatetime or null- The upload time the page declares (its
uploadDate). published_textstring or null- The date as shown under the video ("Oct 24, 2009").
duration_secondsinteger or null- Null for a stream that is still live.
view_countinteger or null- The number of views, in full: the watch page carries the exact count.
like_countinteger or null- Null when the channel hides likes.
keywordslist of strings- The tags the channel gave the video.
categorystring or null- YouTube's category for the video, in English, e.g. "Music".
is_liveboolean or null- On air now.
is_live_contentboolean or null- A live stream, on air or ended.
is_upcomingboolean or null- A premiere or stream that has not started.
live_started_atdatetime or null- For a live stream or premiere: the start time the page gives; null for any other video.
live_ended_atdatetime or null- For a live stream or premiere that is over: the end time the page gives.
is_unlistedboolean or null- YouTube marks the video as unlisted: it opens by its address and is not listed in search or on the channel.
is_family_safeboolean or null- YouTube's own family-safe mark for the video, as the page declares it.
age_restrictedboolean or null- YouTube plays it only for a signed-in adult.
playableboolean or null- A logged-out visitor can play it here and now.
playability_statusstring or null- YouTube's own word: OK, LOGIN_REQUIRED, UNPLAYABLE, LIVE_STREAM_OFFLINE.
playability_reasonstring or null- What the player shows when it will not play.
embeddableboolean or null- Whether the page says the video may be played embedded in other sites; null when it does not say.
thumbnailslist of objects- The video's thumbnail, in the sizes the page lists, smallest first.Each holds
url,width,height. caption_trackslist of objects or null- The caption tracks offered; an empty list when the video has none; null when the page did not say (a video that does not play logged out).Each holds
language_code,name,auto_generated,translatable. caption_languageslist of strings or null- The tracks' language codes, without repeats.
hashtagslist of strings- The hashtags shown above the title ("#OfficialMusicVideo").
comment_count_textstring or null- The number of comments as the page shows it beside the comments ("2.4M"); null when comments are off or the page shows none.
comment_countinteger or null- That figure as a number: rounded by YouTube above a thousand.
chapterslist of objects- The video's chapters, in order, when it has them.Each holds
title,start_seconds,start_text. available_countrieslist of strings- The two-letter codes of the countries where the page says the video can be watched.
fetched_atdatetime- When the page was read, in UTC.
Units and limits
- Counted per request
- Billed per request: a run that returns data costs 1 unit, however many records it returns.
- A miss costs nothing
- A run that fails, that meets something not supported yet, or that you cancel costs nothing. You pay for runs that return data.
- What bounds a run
- A run may take up to 5 minutes. Its records are read in pages of up to 1,000 and are kept for 7 days.
Questions
What does YouTube video return?
Its title, description, channel, dates, length, views, likes, comment count, tags, hashtags, chapters and caption languages. A record has 39 fields, among them id, url, title, description, channel_name and channel_id. A value that could not be read is null, never an empty string or a zero.
What do I send?
A YouTube video's address, or its id. Of url and video_id, send one of the two.
How is it counted?
Billed per request: a run that returns data costs 1 unit, however many records it returns. A run that fails, that meets something not supported yet, or that you cancel costs nothing. The first 1,000 units each month are free.
How long are the records kept, and in what format do they come?
Records are kept for 7 days after the run ended, and read in pages of up to 1,000. They come as JSON, as NDJSON with one record a line, or as CSV with a column for each field.
Can an AI assistant call it?
Yes. Through the EnrichedNow MCP server an assistant calls the tool run_scraper with the scraper_id youtube.video and the same input. It costs what the same API call costs.
YouTube
YouTube's public pages, as a visitor who is not signed in sees them.
YouTube search
youtube.searchA search query. The videos, Shorts, channels and playlists YouTube lists for the query, in its order; or, with type movie, the films of YouTube Movies & TV with their genre, year and credits.
YouTube channel
youtube.channelA YouTube channel's address, handle or id. Its name, description, subscribers, video count, country, join date, total views, links, avatar and banner.
YouTube channel videos
youtube.channel_videosA YouTube channel's address, handle or id. The videos on the channel's Videos tab, newest first.
YouTube channel Shorts
youtube.channel_shortsA YouTube channel's address, handle or id. The Shorts on the channel's Shorts tab, newest first: title, views and cover image.
YouTube channel live streams
youtube.channel_streamsA YouTube channel's address, handle or id. The streams on the channel's Live tab: on air now, scheduled and past, with viewers, views and length.
YouTube channel playlists
youtube.channel_playlistsA YouTube channel's address, handle or id. The playlists the channel lists on its Playlists tab: title, number of videos and cover image.
YouTube playlist
youtube.playlistA YouTube playlist's address, or its id. The videos in the playlist, in its order: title, length, views, age and thumbnail.
YouTube transcript
youtube.transcriptA YouTube video's address, or its id, and optionally a language. The video's captions as timed segments and as one text, with the language, whether they are auto-generated, and every language the video offers.
YouTube comments
youtube.commentsA YouTube video's address, or its id. The comments under the video, top or newest first, with replies if you ask for them: text, likes, reply count, time, pinned and hearted marks, and the author's channel.
YouTube Music search
youtube.music_searchWords to search YouTube Music for: a song, an artist, an album. The top result and the songs, videos, albums, singles, artists, playlists and episodes YouTube Music lists, each with its kind, title, artists, the plays or audience shown, the year for an album, and its address.
- Industry
- Social and video
- Where
- Worldwide
Run it on an input of your own.
Create an account, make a key, and send the request above with your own input. The first 1,000 units each month are free.