The YouTube Best Videos API provides a RESTful interface to query information from the dataset of the most-viewed YouTube videos. It exposes dedicated endpoints to retrieve: a list of video names, uploader details (by video name), view counts (by video name), and upload dates (by video name). This API enables developers, data analysts, and researchers to interact programmatically with the dataset without retrieving all the information at once. Each endpoint supports parameterized queries to allow targeted retrieval, improving efficiency and enabling filtered analytics.
[
{
"video_names": [
"Baby Shark Dance",
"Despacito",
"Wheels on the Bus",
"Bath Song",
"Johny Johny Yes Papa",
"See You Again",
"Shape of You",
"Phonics Song with Two Words",
"Gangnam Style",
"Uptown Funk",
"Learning Colors – Colorful Eggs on a Farm",
"Axel F",
"Dame Tu Cosita",
"Shree Hanuman Chalisa",
"Masha and the Bear – Recipe for Disaster",
"Baa Baa Black Sheep",
"Lakdi Ki Kathi",
"Waka Waka (This Time for Africa)",
"Sugar",
"Counting Stars",
"Humpty the train on a fruits ride",
"Roar",
"Dark Horse",
"Sorry",
"Perfect",
"Baby Shark",
"Thinking Out Loud",
"Girls Like You",
"Let Her Go",
"Faded"
]
}
]
curl --location --request POST 'https://zylalabs.com/api/8783/youtube+best+videos+api/15401/get+top+viewed+videos' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
[
{
"video_name": "Despacito",
"uploader_name": "Luis Fonsi"
}
]
curl --location --request POST 'https://zylalabs.com/api/8783/youtube+best+videos+api/15406/get+uploader+by+video+name' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"video":"Required"}'
[
{
"video_name": "Despacito",
"view_count": 8.73,
"unit": "billion"
}
]
curl --location --request POST 'https://zylalabs.com/api/8783/youtube+best+videos+api/15410/get+view+count+by+video+name' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"video":"Required"}'
[
{
"video_name": "Despacito",
"upload_date": "January 12, 2017"
}
]
curl --location --request POST 'https://zylalabs.com/api/8783/youtube+best+videos+api/15413/get+upload+date+by+video+name' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"video":"Required"}'
| 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. Free Trial includes up to 50 requests.
The YouTube Best Videos API allows you to retrieve structured data about the most-viewed YouTube videos, including video names, uploader details, view counts, and upload dates.
The data returned by the YouTube Best Videos API is structured in a JSON format, providing clear fields for each data type such as video name, uploader, view count, and upload date.
The API can be used by developers, data analysts, and researchers to analyze trends in popular video content, track viewership statistics, and create applications that showcase top videos based on view counts.
The API's output includes fields such as 'video_name', 'uploader', 'view_count', and 'upload_date', allowing users to access detailed information about each video.
You can integrate the API by making HTTP requests to its endpoints, using the parameterized queries to filter and retrieve specific data based on your application's requirements.
Each endpoint returns specific data: the "get top viewed videos" endpoint provides a list of video names, the "get uploader by video name" endpoint returns the uploader's name, the "get view count by video name" endpoint gives the current view count, and the "get upload date by video name" endpoint provides the video's upload date.
The key fields in the response data include 'video_names' for the list of videos, 'uploader_name' for the video's uploader, 'view_count' for the number of views, and 'upload_date' for when the video was uploaded.
The response data is organized in JSON format, with each endpoint returning an array of objects. Each object contains relevant fields, such as 'video_name' and corresponding values, making it easy to parse and utilize in applications.
The primary parameter used across the endpoints is the 'video_name', which must be supplied to retrieve uploader details, view counts, or upload dates for specific videos. This allows for targeted data retrieval.
Users can customize their data requests by specifying the 'video_name' parameter in the relevant endpoints. This enables them to retrieve specific information about individual videos rather than bulk data.
Typical use cases include analyzing trends in popular video content, developing applications that showcase top videos, and conducting research on viewership patterns and video performance over time.
Data accuracy is maintained by sourcing information directly from YouTube's most-viewed videos dataset, ensuring that the API reflects current and reliable statistics regarding video views and upload details.
If a request returns partial or empty results, users should verify the 'video_name' parameter for accuracy. Additionally, implementing error handling in applications can help manage unexpected responses gracefully.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used 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.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
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, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
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.
Service Level:
100%
Response Time:
54ms
Service Level:
100%
Response Time:
1,535ms
Service Level:
100%
Response Time:
14,676ms
Service Level:
100%
Response Time:
1,682ms
Service Level:
100%
Response Time:
755ms
Service Level:
100%
Response Time:
854ms
Service Level:
100%
Response Time:
1,517ms
Service Level:
100%
Response Time:
55ms
Service Level:
100%
Response Time:
1,733ms
Service Level:
100%
Response Time:
58ms
Service Level:
100%
Response Time:
1,737ms
Service Level:
99%
Response Time:
1,038ms
Service Level:
100%
Response Time:
52ms
Service Level:
100%
Response Time:
5,020ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
6,266ms
Service Level:
100%
Response Time:
4,735ms
Service Level:
100%
Response Time:
1,521ms
Service Level:
100%
Response Time:
54ms
Service Level:
100%
Response Time:
158ms