Video and Channel Statistics API

API ID 14619

Public statistics of online videos and channels from their URLs: views, likes, subscribers and links.

19,227 ms avg response

API Documentation

Endpoints

Request
Returns title, views, likes, comments, duration and publish date of one video from its URL. Accepts watch, shorts, live and short-link video URLs. Some videos take a few minutes the first time: on status running (HTTP 202) send the same request again after retryAfter seconds.
Endpoint ID: 37580
GET https://zylalabs.com/api/14619/video+and+channel+statistics+api/37580/data+of+one+video
INPUT PARAMETERS

Data of one video — Endpoint Features

Object Description
url Required Video URL.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
API EXAMPLE RESPONSE
JSON
{"success":true,"status":"succeeded","requestId":"5801134f-a20c-4e5a-b424-250184d1c87d","items":[{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ","title":"Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)","youtuber":"@RickAstleyYT","youtuber_md5":"4fc65cd6213b5c0f1d04c2aa3006f46a","video_url":"https://rr3---sn-nx5e6nle.googlevideo.com/videoplayback?expire=1793501942&ei=llbmaqGJGOb8sfIP1YCy6AY&ip=154.222.187.84&id=o-AKHZjmmQvmoW7ccdFLx1bIhEfnkp0ZrNpv9hUCLthZow&itag=18&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&cps=1173&met=1793480342%2C&mh=7c&mm=18%2C26&mn=sn-nx5e6nle%2Csn-n4v7snse&ms=aub%2Conr&mv=u&mvi=3&pl=24&rms=aub%2Caub&bui=AZFAFb-WMAVpawg-Ff3xPruKzn8QTc2FrfArxXsMzHBhzPGWuJkNMXKkaStBgrmyQLKYe66qty_AcFkm&spc=mpRQ_1DjS1G9xHfnDi_DCfLVuMkfxK32nY2EiUQHHCoITLIJekhteOXV84TPok24muwdCqyCcmseGD_nsWM&vprv=1&svpuc=1&mime=video%2Fmp4&ns=M-jh70irDDM4h4lUcGOKlFQZ&rqh=1&cnr=14&ratebypass=yes&dur=213.089&lmt=1766960953317159&mt=1793480180&fvip=2&epbp=1&fexp=51565115%2C52184236%2C52271470&c=WEB&sefc=1&txp=5538534&n=mKRBqhBwFISsCg64&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Ccnr%2Cratebypass%2Cdur%2Clmt&lsparams=cps%2Cmet%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms&lsig=APaTxxMwRAIgJDoK-0xlMDqzEARKuYMJkrBn8XAhMZx6gOV2fyUVzHUCICtKpJc3dB_4OJLxGRxm9su54HhVIGxh9-w-4jdCOhJc","video_length":213,"likes":19491539,"views":1832464080,"date_posted":"2009-10-25T06:57:33.000Z","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 Gonna Give You Up” was a global smash on its release in July 1987, topping the charts in 25 countries including Rick’s native UK and the US Billboard Hot 100.  It also won the Brit Award for Best single in 1988. Stock Aitken and Waterman wrote and produced the track which was the lead-off single and lead track from Rick’s debut LP “Whenever You Need Somebody”.  The album was itself a UK number one and would go on to sell over 15 million copies worldwide.\n\nThe legendary video was directed by Simon West – who later went on to make Hollywood blockbusters such as Con Air, Lara Croft – Tomb Raider and The Expendables 2.  The video passed the 1bn YouTube views milestone on 28 July 2021.\n\nSubscribe to the official Rick Astley YouTube channel: https://RickAstley.lnk.to/YTSubID\n\nFollow Rick Astley:\nFacebook: https://RickAstley.lnk.to/FBFollowID \nTwitter: https://RickAstley.lnk.to/TwitterID \nInstagram: https://RickAstley.lnk.to/InstagramID \nWebsite: https://RickAstley.lnk.to/storeID \nTikTok: https://RickAstley.lnk.to/TikTokID\n\nListen to Rick Astley:\nSpotify: https://RickAstley.lnk.to/SpotifyID \nApple Music: https://RickAstley.lnk.to/AppleMusicID \nAmazon Music: https://RickAstley.lnk.to/AmazonMusicID \nDeezer: https://RickAstley.lnk.to/DeezerID \n\nLyrics:\nWe’re no strangers to love\nYou know the rules and so do I\nA full commitment’s what I’m thinking of\nYou wouldn’t get this from any other guy\n\nI just wanna tell you how I’m feeling\nGotta make you understand\n\nNever gonna give you up\nNever gonna let you down\nNever gonna run around and desert you\nNever gonna make you cry\nNever gonna say goodbye\nNever gonna tell a lie and hurt you\n\nWe’ve known each other for so long\nYour heart’s been aching but you’re too shy to say it\nInside we both know what’s been going on\nWe know the game and we’re gonna play it\n\nAnd if you ask me how I’m feeling\nDon’t tell me you’re too blind to see\n\nNever gonna give you up\nNever gonna let you down\nNever gonna run around and desert you\nNever gonna make you cry\nNever gonna say goodbye\nNever gonna tell a lie and hurt you\n\n#RickAstley #NeverGonnaGiveYouUp #WheneverYouNeedSomebody #OfficialMusicVideo","subscribers":4550000,"music":{"song":"Never Gonna Give You Up (7\" Mix)","artist":"Rick Astley"},"video_id":"dQw4w9WgXcQ","channel_url":"https://www.youtube.com/@RickAstleyYT","preview_image":"https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/maxresdefault.webp","shortcode":"dQw4w9WgXcQ","verified":false,"handle_name":"Rick Astley","avatar_img_channel":"https://yt3.ggpht.com/_ShEGOdg-t5YGJse14Ooq6FYBZqX_QSlhaTNjG06miYusm5lWm1UroLyVxnYtahADfRTVLtuVQ=s48-c-k-c0x00ffffff-no-rj","is_sponsored":false,"related_videos":null,"license":null,"viewport_frames":"640x360 / -","current_optimal_res":"3840x2160@25 / 640x360@25","codecs":"avc1.42001E, mp4a.40.2 / mp4a.40.2","color":"bt709","quality":"hd2160","quality_label":"2160p","post_type":"post","youtuber_id":"UCuAXFkgsw1L7xaCfnd5JJOw","transcript":"[♪♪♪] ♪ We're no strangers to love ♪ ♪ You know the rules\nand so do I ♪ ♪ A full commitment's\nwhat I'm thinking of ♪ ♪ You wouldn't get this\nfrom any other guy ♪ ♪ I just wanna tell you\nhow I'm feeling ♪ ♪ Gotta make you understand ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around\nand desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie\nand hurt you ♪ ♪ We've known each other\nfor so long ♪ ♪ Your heart's been aching\nbut you're too shy to say it ♪ ♪ Inside we both know\nwhat's been going ♪ ♪ We know the game\nand we're gonna play it ♪ ♪ And if you ask me\nhow I'm feeling ♪ ♪ Don't tell me\nyou're too blind to see ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around\nand desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie\nand hurt you ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around\nand desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie\nand hurt you ♪ ♪ (Ooh, give you up) ♪ ♪ (Ooh, give you up) ♪ ♪ Never gonna give,\nnever gonna give ♪ ♪ (Give you up) ♪ ♪ Never gonna give,\nnever gonna give ♪ ♪ (Give you up) ♪ ♪ We've known each other\nfor so long ♪ ♪ Your heart's been aching\nbut you're too shy to say it ♪ ♪ Inside we both know\nwhat's been going ♪ ♪ We know the game\nand we're gonna play it ♪ ♪ I just wanna tell you\nhow I'm feeling ♪ ♪ Gotta make you understand ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around\nand desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie\nand hurt you ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around\nand desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie\nand hurt you ♪ ♪ Never gonna give you up ♪ ♪ Never gonna let you down ♪ ♪ Never gonna run around\nand desert you ♪ ♪ Never gonna make you cry ♪ ♪ Never gonna say goodbye ♪ ♪ Never gonna tell a lie\nand hurt you ♪","formatted_transcript":[{"start_time":1360,"end_time":3040,"duration":1680,"text":"[♪♪♪]"},{"start_time":18640,"end_time":21880,"duration":3240,"text":"♪ We're no strangers to love ♪"},{"start_time":22640,"end_time":26960,"duration":4320,"text":"♪ You know the rules\nand so do I ♪"},{"start_time":27040,"end_time":31040,"duration":4000,"text":"♪ A full commitment's\nwhat I'm thinking of ♪"},{"start_time":31120,"end_time":35080,"duration":3960,"text":"♪ You wouldn't get this\nfrom any other guy ♪"},{"start_time":35160,"end_time":39520,"duration":4360,"text":"♪ I just wanna tell you\nhow I'm feeling ♪"},{"start_time":40520,"end_time":42920,"duration":2400,"text":"♪ Gotta make you understand ♪"},{"start_time":43000,"end_time":45120,"duration":2120,"text":"♪ Never gonna give you up ♪"},{"start_time":45200,"end_time":47080,"duration":1880,"text":"♪ Never gonna let you down ♪"},{"start_time":47320,"end_time":51120,"duration":3800,"text":"♪ Never gonna run around\nand desert you ♪"},{"start_time":51480,"end_time":53480,"duration":2000,"text":"♪ Never gonna make you cry ♪"},{"start_time":53600,"end_time":55520,"duration":1920,"text":"♪ Never gonna say goodbye ♪"},{"start_time":55720,"end_time":59360,"duration":3640,"text":"♪ Never gonna tell a lie\nand hurt you ♪"},{"start_time":60800,"end_time":64800,"duration":4000,"text":"♪ We've known each other\nfor so long ♪"},{"start_time":64880,"end_time":69040,"duration":4160,"text":"♪ Your heart's been aching\nbut you're too shy to say it ♪"},{"start_time":69120,"end_time":72960,"duration":3840,"text":"♪ Inside we both know\nwhat's been going ♪"},{"start_time":73360,"end_time":77200,"duration":3840,"text":"♪ We know the game\nand we're gonna play it ♪"},{"start_time":77400,"end_time":82040,"duration":4640,"text":"♪ And if you ask me\nhow I'm feeling ♪"},{"start_time":82400,"end_time":85240,"duration":2840,"text":"♪ Don't tell me\nyou're too blind to see ♪"},{"start_time":85320,"end_time":87280,"duration":1960,"text":"♪ Never gonna give you up ♪"},{"start_time":87360,"end_time":89320,"duration":1960,"text":"♪ Never gonna let you down ♪"},{"start_time":89440,"end_time":93720,"duration":4280,"text":"♪ Never gonna run around\nand desert you ♪"},{"start_time":93800,"end_time":95600,"duration":1800,"text":"♪ Never gonna make you cry ♪"},{"start_time":95760,"end_time":98000,"duration":2240,"text":"♪ Never gonna say goodbye ♪"},{"start_time":98080,"end_time":102040,"duration":3960,"text":"♪ Never gonna tell a lie\nand hurt you ♪"},{"start_time":102200,"end_time":104120,"duration":1920,"text":"♪ Never gonna give you up ♪"},{"start_time":104280,"end_time":106360,"duration":2080,"text":"♪ Never gonna let you down ♪"},{"start_time":106480,"end_time":110080,"duration":3600}]}],"_note":"Response truncated for documentation purposes"}
Data of one video — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14619/video+and+channel+statistics+api/37580/data+of+one+video?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns subscribers, video count, description and public links of one channel from its URL. Accepts /@handle, a bare @handle, /channel/UC..., /c/... and /user/... channel URLs.
Endpoint ID: 37581
GET https://zylalabs.com/api/14619/video+and+channel+statistics+api/37581/data+of+one+channel
INPUT PARAMETERS

Data of one channel — Endpoint Features

Object Description
url Required Channel URL or handle (https://www.youtube.com/@mkbhd, @mkbhd, youtube.com/channel/UC...).
includeEmail Optional Also look for the public business contact of the channel.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

url
includeEmail
API EXAMPLE RESPONSE
JSON
{
    "success": false,
    "status": "running",
    "requestId": "01195d26-e13d-48fd-b2e6-4e9944c1804a",
    "items": [],
    "notices": [],
    "retryAfter": 5,
    "message": "Still running: send exactly the same request again in a few seconds to get the result. This call was not counted."
}
Data of one channel — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/14619/video+and+channel+statistics+api/37581/data+of+one+channel?url=https://www.youtube.com/@mkbhd&includeEmail=true' --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 Video and Channel Statistics 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. Free Trial includes up to 50 requests.

Starts at
$10,000/Year


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

Overview

Public statistics of online videos and channels from their URLs: views, likes, subscribers and links.

Video and Channel Statistics API FAQs

The "GET Data of one video" endpoint returns details such as title, views, likes, comments, duration, and publish date of a video. The "GET Data of one channel" endpoint provides information including subscribers, video count, channel description, and public links.

Key fields for the video endpoint include "title," "views," "likes," "comments," "duration," and "publish date." For the channel endpoint, key fields include "subscribers," "video count," "description," and "public links."

The response data is structured in JSON format. It includes a "success" status, "requestId," and an "items" array containing the requested data. If the request is still processing, a "status" of "running" is returned along with a "retryAfter" field.

The video endpoint provides metrics like views and likes, while the channel endpoint offers subscriber counts and video totals. Both endpoints return URLs for the respective video or channel, allowing users to access additional content.

Users can customize requests by providing specific video or channel URLs. The video endpoint accepts various formats, including watch links and short links, while the channel endpoint accepts different URL structures like /@handle or /channel/UC...

Typical use cases include analyzing video performance, tracking channel growth, and gathering insights for content strategy. Marketers and content creators can leverage this data to optimize their video and channel engagement.

Data accuracy is maintained through regular updates and checks against the source platforms. The API retrieves real-time statistics, ensuring that users receive the most current information available for videos and channels.

If users receive partial or empty results, they should check the "status" field. If it indicates "running," they can resend the request after the specified "retryAfter" time. This ensures they get the complete data once processing is finished.

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