YouTube Real-Time API

API ID 14956

YouTube data in real time as JSON: video details, transcripts in any caption language, search results, channels, channel uploads and Shorts, comments and playlists.

API Documentation

Endpoints

Request
Details of a public video, Short or live stream: title, description, publish time, length, view count, like count, comment count, tags, category, chapters, thumbnail and live status, plus its channel name, subscriber count and verified status.
Endpoint ID: 39188
GET https://zylalabs.com/api/14956/youtube+real-time+api/39188/get+video+details
INPUT PARAMETERS

Get Video Details — Endpoint Features

Object Description
url Required A video link (https://www.youtube.com/watch?v=_T8cn2J13-4, a youtu.be, Shorts, live or embed link) or its 11-character id (_T8cn2J13-4).

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
API EXAMPLE RESPONSE
JSON
{
    "ok": true,
    "data": {
        "id": "_T8cn2J13-4",
        "url": "https://www.youtube.com/watch?v=_T8cn2J13-4",
        "title": "How We Are Going to the Moon - 4K",
        "description": "While Apollo placed the first steps on the Moon, Artemis opens the door for humanity to sustainably work and live on another world...",
        "publishedAt": "2019-12-19T17:43:14.000Z",
        "durationSeconds": 331,
        "duration": "00:05:31",
        "viewCount": 11863645,
        "likeCount": 480000,
        "commentCount": 43988,
        "commentsTurnedOff": false,
        "tags": [
            "NASA",
            "Moon",
            "Artemis"
        ],
        "hashtags": [],
        "category": "Science & Technology",
        "thumbnail": "https://i.ytimg.com/vi/_T8cn2J13-4/maxresdefault.jpg",
        "videoType": "video",
        "isShort": false,
        "isLive": false,
        "liveStatus": "none",
        "isMembersOnly": false,
        "isAgeRestricted": false,
        "isUnlisted": false,
        "isFamilySafe": true,
        "hasPaidPromotion": false,
        "descriptionLinks": [],
        "chapters": [],
        "channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
        "channelName": "NASA",
        "channelHandle": "@NASA",
        "channelUrl": "https://www.youtube.com/@NASA",
        "channelSubscriberCount": 15100000,
        "channelIsVerified": true,
        "scrapedAt": "2026-11-15T04:30:12.512Z"
    },
    "next_cursor": null
}
Get Video Details — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14956/youtube+real-time+api/39188/get+video+details?url=https://www.youtube.com/watch?v=_T8cn2J13-4' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
The transcript of a video in the language you ask for, as full text, or as timed segments with format=segments. Human captions are preferred over automatic ones, the available languages are listed, and without lang the default captions are returned. Covers the first hour of a video.
Endpoint ID: 39189
GET https://zylalabs.com/api/14956/youtube+real-time+api/39189/get+video+transcript
INPUT PARAMETERS

Get Video Transcript — Endpoint Features

Object Description
url Required A video link (https://www.youtube.com/watch?v=_T8cn2J13-4, a youtu.be, Shorts, live or embed link) or its 11-character id (_T8cn2J13-4).
lang Optional A language code (en, es, pt-BR, zh-Hans). Leave it out for the video's default captions, usually its spoken language.
format Optional text (default): the full text. segments: the full text plus the timed lines (start and duration in seconds).

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
lang
format
API EXAMPLE RESPONSE
JSON
{
    "ok": true,
    "data": {
        "videoId": "_T8cn2J13-4",
        "url": "https://www.youtube.com/watch?v=_T8cn2J13-4",
        "title": "How We Are Going to the Moon - 4K",
        "channelName": "NASA",
        "channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
        "channelUrl": "https://www.youtube.com/@NASA",
        "publishedAt": "2019-12-19T17:43:14.000Z",
        "durationSeconds": 331,
        "viewCount": 11863645,
        "category": "Science & Technology",
        "language": "en",
        "languageName": "English",
        "isAutoGenerated": false,
        "wordCount": 873,
        "availableLanguages": [
            {
                "language": "en",
                "languageName": "English",
                "isAutoGenerated": false
            },
            {
                "language": "en",
                "languageName": "English",
                "isAutoGenerated": true
            }
        ],
        "thumbnailUrl": "https://i.ytimg.com/vi/_T8cn2J13-4/maxresdefault.jpg",
        "keywords": [
            "NASA",
            "Moon",
            "Artemis"
        ],
        "description": "While Apollo placed the first steps on the Moon, Artemis opens the door...",
        "fullText": "Between 1968 and 1972, America launched 9 human missions to the Moon, 6 of which successfully touched down...",
        "segments": [
            {
                "start": 1.31,
                "duration": 7.39,
                "text": "Between 1968 and 1972, America launched 9 human missions to the Moon, 6 of which successfully"
            },
            {
                "start": 8.7,
                "duration": 4.2,
                "text": "touched down",
                "allowing 12 men to walk on the lunar surface.": null
            }
        ],
        "scrapedAt": "2026-11-15T04:30:13.101Z"
    },
    "next_cursor": null
}
Get Video Transcript — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14956/youtube+real-time+api/39189/get+video+transcript?url=https://www.youtube.com/watch?v=_T8cn2J13-4&lang=en&format=text' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
One page of search results for a query (about 20 videos, plus the Shorts and channels shown with them), with title, view count, length, age, thumbnail, channel and description snippet. Filters: result type, upload date, duration, sort order and features.
Endpoint ID: 39190
GET https://zylalabs.com/api/14956/youtube+real-time+api/39190/search+youtube
INPUT PARAMETERS

Search YouTube — Endpoint Features

Object Description
q Optional The search terms, or a YouTube search link (its filters are kept). Required for the first page; later pages need only cursor.
type Optional Only results of one type.
upload_date Optional Only videos uploaded in the last hour, today, this week, this month or this year.
duration Optional Only videos of one length: short (under 4 minutes), medium (4 to 20 minutes), long (over 20 minutes).
sort Optional Order of the results.
features Optional Comma-separated features a video must have: live, 4k, hd, subtitles, creative_commons, 360, vr180, 3d, hdr, location, purchased.
cursor Optional The next_cursor of the previous page, exactly as returned. Leave it out for the first page.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

q
type
upload_date
duration
sort
features
cursor
API EXAMPLE RESPONSE
JSON
{
    "ok": true,
    "data": {
        "query": "nasa artemis",
        "estimatedResults": 3510030,
        "items": [
            {
                "type": "video",
                "id": "_T8cn2J13-4",
                "url": "https://www.youtube.com/watch?v=_T8cn2J13-4",
                "title": "How We Are Going to the Moon - 4K",
                "description": "While Apollo placed the first steps on the Moon, Artemis opens the door for humanity...",
                "durationSeconds": 331,
                "duration": "00:05:31",
                "viewCount": 11863614,
                "publishedTimeText": "6 years ago",
                "publishedAt": "2020-11-15T00:00:00.000Z",
                "thumbnail": "https://i.ytimg.com/vi/_T8cn2J13-4/hq720.jpg",
                "channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
                "channelName": "NASA",
                "channelHandle": "@NASA",
                "channelUrl": "https://www.youtube.com/@NASA",
                "channelIsVerified": true,
                "isLive": false,
                "isUpcoming": false,
                "badges": [
                    "4K",
                    "CC"
                ],
                "position": 1
            }
        ]
    },
    "next_cursor": "eyJrIjoic2VhcmNoIiwicSI6Im5hc2EgYXJ0ZW1pcyIsImMiOiJFdU1DRWd4dVlYTmhJR0Z5ZEdWdGFYTWEw..."
}
Search YouTube — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14956/youtube+real-time+api/39190/search+youtube?q=drone footage&type=all&upload_date=any&duration=any&sort=relevance&features=hd,subtitles' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Details of a public channel: name, handle, description, subscriber count, video count, total views, join date, country, keywords, avatar, banner and verified status.
Endpoint ID: 39191
GET https://zylalabs.com/api/14956/youtube+real-time+api/39191/get+channel+details
INPUT PARAMETERS

Get Channel Details — Endpoint Features

Object Description
handle_or_url Required An @handle (@NASA, or NASA), a channel link (https://www.youtube.com/@NASA, /channel/UC..., /c/..., /user/...) or a channel id (UCLA_DiR1FfKNvjuUpBHmylQ).

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

handle_or_url
API EXAMPLE RESPONSE
JSON
{
    "ok": true,
    "data": {
        "id": "UCLA_DiR1FfKNvjuUpBHmylQ",
        "url": "https://www.youtube.com/@NASA",
        "name": "NASA",
        "handle": "@NASA",
        "description": "NASA's mission is to pioneer the future in space exploration, scientific discovery, and aeronautics research...",
        "subscriberCount": 15100000,
        "videoCount": 6202,
        "viewCount": 1135840911,
        "joinedAt": "2008-06-03",
        "country": null,
        "links": [
            {
                "title": "Website",
                "url": "https://www.nasa.gov/"
            }
        ],
        "keywords": [
            "NASA",
            "space",
            "astronomy"
        ],
        "avatar": "https://yt3.googleusercontent.com/nasa-avatar=s900",
        "banner": "https://yt3.googleusercontent.com/nasa-banner=w2560",
        "isVerified": true,
        "isFamilySafe": true,
        "scrapedAt": "2026-11-15T04:30:14.227Z"
    },
    "next_cursor": null
}
Get Channel Details — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14956/youtube+real-time+api/39191/get+channel+details?handle_or_url=@NASA' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
One page of a channel's videos, Shorts or live streams (about 30 per page), newest first, most popular or oldest first, each with title, view count, length, age and thumbnail. A channel without that tab returns an empty page.
Endpoint ID: 39192
GET https://zylalabs.com/api/14956/youtube+real-time+api/39192/get+channel+videos
INPUT PARAMETERS

Get Channel Videos — Endpoint Features

Object Description
handle_or_url Optional An @handle, a channel link (a link to its Shorts or Live tab picks that tab) or a channel id. Required for the first page; later pages need only cursor.
tab Optional The channel's Videos, Shorts or Live tab.
sort Optional Newest first (default), most popular first, or oldest first, as the channel page offers it.
cursor Optional The next_cursor of the previous page, exactly as returned. Leave it out for the first page.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

handle_or_url
tab
sort
cursor
API EXAMPLE RESPONSE
JSON
{
    "ok": true,
    "data": {
        "channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
        "channelName": "NASA",
        "tab": "videos",
        "sort": "popular",
        "items": [
            {
                "type": "video",
                "id": "EJxwWpaGoJs",
                "url": "https://www.youtube.com/watch?v=EJxwWpaGoJs",
                "title": "The Year of Pluto - New Horizons Documentary Brings Humanity Closer to the Edge of the Solar System",
                "description": null,
                "durationSeconds": 3514,
                "duration": "00:58:34",
                "viewCount": 21000000,
                "publishedTimeText": "11 years ago",
                "publishedAt": "2015-11-15T00:00:00.000Z",
                "thumbnail": "https://i.ytimg.com/vi/EJxwWpaGoJs/hq720.jpg",
                "channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
                "channelName": "NASA",
                "channelHandle": "@NASA",
                "channelUrl": "https://www.youtube.com/@NASA",
                "channelIsVerified": null,
                "isLive": false,
                "isUpcoming": false,
                "badges": [],
                "position": 1
            }
        ]
    },
    "next_cursor": "eyJrIjoiY2hhbm5lbC12aWRlb3MiLCJjaCI6IlVDTEFfRGlSMUZmS052anVVcEJIbXlsUSIs..."
}
Get Channel Videos — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14956/youtube+real-time+api/39192/get+channel+videos?handle_or_url=@NASA&tab=videos&sort=newest' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
One page of a video's comments (about 20), top or newest first, with the comment text, like count, reply count, age, and pinned and creator-heart flags. The first page also includes the exact comment count. Videos with comments turned off return an empty page.
Endpoint ID: 39193
GET https://zylalabs.com/api/14956/youtube+real-time+api/39193/get+video+comments
INPUT PARAMETERS

Get Video Comments — Endpoint Features

Object Description
url Optional A video link or its 11-character id. Required for the first page; later pages need only cursor.
sort Optional Top comments first (default) or newest first.
cursor Optional The next_cursor of the previous page, exactly as returned. Leave it out for the first page.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
sort
cursor
API EXAMPLE RESPONSE
JSON
{
    "ok": true,
    "data": {
        "videoId": "_T8cn2J13-4",
        "commentCount": 43988,
        "commentsTurnedOff": false,
        "sort": "top",
        "items": [
            {
                "id": "UgzExampleComment0AaABAg",
                "text": "Can't wait to see people walk on the Moon again!",
                "author": "@spacefan",
                "authorChannelId": "UCxxxxxxxxxxxxxxxxxxxxxx",
                "authorChannelUrl": "https://www.youtube.com/channel/UCxxxxxxxxxxxxxxxxxxxxxx",
                "authorIsChannelOwner": false,
                "authorIsVerified": false,
                "likeCount": 1200,
                "replyCount": 14,
                "publishedAt": "2020-11-15T00:00:00.000Z",
                "publishedTimeText": "6 years ago",
                "isEdited": false,
                "isPinned": false,
                "hasCreatorHeart": false
            }
        ]
    },
    "next_cursor": "eyJrIjoiY29tbWVudHMiLCJpZCI6Il9UOGNuMkoxMy00IiwicyI6InRvcCIsImMiOiJFZzBTQzE5VU9HTnVN..."
}
Get Video Comments — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14956/youtube+real-time+api/39193/get+video+comments?url=_T8cn2J13-4&sort=top' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
One page of a public playlist (up to 100 videos) in playlist order, each with title, length, view count, age, thumbnail and channel. The first page also includes the playlist title, description and video and view counts.
Endpoint ID: 39194
GET https://zylalabs.com/api/14956/youtube+real-time+api/39194/get+playlist+videos
INPUT PARAMETERS

Get Playlist Videos — Endpoint Features

Object Description
url Optional A playlist link (https://www.youtube.com/playlist?list=PL...), a watch link that plays the playlist, or the playlist id. Required for the first page; later pages need only cursor.
cursor Optional The next_cursor of the previous page, exactly as returned. Leave it out for the first page.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
cursor
API EXAMPLE RESPONSE
JSON
{
    "ok": true,
    "data": {
        "playlistId": "PL2aBZuCeDwlQvNtHhNJtarm9OewQwVntv",
        "url": "https://www.youtube.com/playlist?list=PL2aBZuCeDwlQvNtHhNJtarm9OewQwVntv",
        "title": "Artemis II Mission Coverage",
        "description": null,
        "channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
        "channelName": "NASA",
        "videoCount": 23,
        "viewCount": 1049387,
        "isUnlisted": false,
        "items": [
            {
                "type": "video",
                "id": "DYY4nnfxKbU",
                "url": "https://www.youtube.com/watch?v=DYY4nnfxKbU",
                "title": "NASA's Artemis II Crew Return to Houston",
                "description": null,
                "durationSeconds": 4860,
                "duration": "01:21:00",
                "viewCount": 1700000,
                "publishedTimeText": "Streamed 7 months ago",
                "publishedAt": "2026-04-15T00:00:00.000Z",
                "thumbnail": "https://i.ytimg.com/vi/DYY4nnfxKbU/hqdefault.jpg",
                "channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
                "channelName": "NASA",
                "channelHandle": "@NASA",
                "channelUrl": "https://www.youtube.com/@NASA",
                "channelIsVerified": null,
                "isLive": false,
                "isUpcoming": false,
                "badges": [],
                "position": 1
            }
        ]
    },
    "next_cursor": null
}
Get Playlist Videos — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14956/youtube+real-time+api/39194/get+playlist+videos?url=https://www.youtube.com/playlist?list=PL2aBZuCeDwlQvNtHhNJtarm9OewQwVntv' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the YouTube Real-Time API simply include your bearer token in the Authorization header.

Headers
Header Description
Authorization Required Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

No long-term commitment. Upgrade, downgrade, or cancel anytime.

Starts at
$10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Overview

YouTube data in real time as JSON: video details, transcripts in any caption language, search results, channels, channel uploads and Shorts, comments and playlists.

YouTube Real-Time API FAQs

Any caption language the video has, including auto-generated captions. Ask for a language code or get the default track.

List endpoints return next_cursor. Pass it back as the cursor parameter to get the next page, until next_cursor is null.

A video link or id for videos and transcripts, a channel link, handle or id for channels, a playlist link or id for playlists, and free text for search.

The transcript endpoint answers with an error code that says no transcript is available, instead of data.

Each endpoint returns specific YouTube data in JSON format. For example, the "Get Video Details" endpoint provides video metadata, while "Get Video Transcript" returns captions. Other endpoints like "Search YouTube" return search results, and "Get Channel Details" provides information about channels.

Key fields vary by endpoint. For "Get Video Details," important fields include title, view count, and duration. In "Get Channel Details," fields like subscriber count and description are crucial. Each endpoint's documentation outlines its specific fields.

Parameters vary by endpoint. For "Search YouTube," you can filter by result type, upload date, and duration. The "Get Video Transcript" endpoint accepts a language code. Refer to each endpoint's documentation for a complete list of accepted parameters.

Response data is structured in a JSON format with an "ok" status and a "data" object. The "data" object contains relevant fields specific to the endpoint, such as video details or search results, making it easy to parse and utilize.

Each endpoint provides distinct information: "Get Video Details" offers metadata about videos, "Get Video Comments" lists user comments, and "Get Playlist Videos" details videos within a playlist. This variety allows for comprehensive data retrieval.

Users can customize requests by using specific parameters. For instance, in "Get Channel Videos," you can sort by popularity or age. In "Search YouTube," you can specify filters like duration and upload date to refine results.

Typical use cases include analyzing video performance, retrieving transcripts for accessibility, and aggregating comments for sentiment analysis. Developers can use this data for applications like content curation or educational tools.

Data accuracy is maintained through direct access to YouTube's API, which provides real-time updates. The API reflects the latest information available on YouTube, ensuring that users receive current and reliable data.

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs