{
"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
}
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'
{
"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
}
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'
{
"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..."
}
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'
{
"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
}
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'
{
"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..."
}
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'
{
"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..."
}
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'
{
"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
}
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'
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.
| 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.
YouTube data in real time as JSON: video details, transcripts in any caption language, search results, channels, channel uploads and Shorts, comments and playlists.
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.
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.
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.
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.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund