[
{
"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/8781/youtube+top+content+api/15398/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/8781/youtube+top+content+api/15405/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/8781/youtube+top+content+api/15412/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/8781/youtube+top+content+api/15416/get+upload+date+by+video+name' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"video":"Required"}'
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 Top Content 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. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
The YouTube Top Content 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.
The YouTube Top Content 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 Top Content 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, 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