Youtube Search API

The YouTube Search API allows developers to search for videos on YouTube and retrieve information such as the video's title, description, thumbnail, and more.

About the API:

The YouTube Search API allows developers to search for videos on YouTube and retrieve information such as the video's title, thumbnail, and more. The API can be used to build applications that search for videos, retrieve video information, and display video content.

The API returns the search results in a structured format that includes the video's title, description, thumbnail, views, likes, and other relevant information. This allows developers to retrieve video information and display it in their own applications.

The API uses RESTful conventions, which means that it can be easily integrated with a wide variety of programming languages and frameworks.In conclusion, The YouTube Search API is a powerful tool for developers looking to build applications related to video content on YouTube. It provides an easy way to search for videos, retrieve video information and display it in their own application. The API is easy to integrate with a wide variety of programming languages and frameworks and is well-documented, making it accessible to developers of all skill levels.

What your API receives and what your API provides (input/output)?

It will receive a parameter and provide you with a JSON.

What are the most common uses cases of this API?

Video search engine: The API can be used to build a website or mobile application that allows users to search for videos on YouTube, retrieve video information, and display video content.

Video recommendation engine: The API can be used to create an application that provides personalized video recommendations based on user's preferences and the popularity of the videos.

Social Media Integration: The API can be integrated with social media platforms such as Twitter and Facebook to show video content and increase engagement with video-related posts.

Video Analytics: The API can be used to retrieve data on a video.

Are there any limitations to your plans?

Basic Plan: 15,000 API Calls.

Pro Plan: 50,000 API Calls.

Pro Plus Plan: 150,000 API Calls.

Elite Plan: 300,000 API Calls.

API Documentation

Endpoints


The "Fetch Youtube Videos" endpoint allows developers to search for and retrieve information on videos on YouTube. The endpoint can be used to search for videos based on keywords. By utilizing this endpoint, developers can access information such as the video's title, description, thumbnail, views, likes, and other relevant data.

 



                                                                            
GET https://zylalabs.com/api/948/youtube+search+api/769/fetch+youtube+videos
                                                                            
                                                                        

Fetch Youtube Videos - Endpoint Features

Object Description
q [Required] The search query that is encoded in the URL format. For example: Taylor Swift
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"originalQuery":"Taylor Swift","correctedQuery":"Taylor Swift","results":40272018,"activeFilters":[{"name":"Relevance","active":true,"url":null,"description":"Sort by relevance"}],"refinements":[],"items":[{"type":"channel","name":"Taylor Swift","channelID":"UCqECaJ8Gagnn7YCbPEzWH6g","url":"https:\/\/www.youtube.com\/@TaylorSwift","bestAvatar":{"url":"https:\/\/yt3.googleusercontent.com\/8IG_vczSZLUYnDvfHFusOMdIFRpPP8xoKX6z2BLoyALI2hep-PrlLjKEp8qnrnOjTDbAF2w4kQ=s176-c-k-c0x00ffffff-no-rj-mo","width":176,"height":176},"avatars":[{"url":"https:\/\/yt3.googleusercontent.com\/8IG_vczSZLUYnDvfHFusOMdIFRpPP8xoKX6z2BLoyALI2hep-PrlLjKEp8qnrnOjTDbAF2w4kQ=s176-c-k-c0x00ffffff-no-rj-mo","width":176,"height":176},{"url":"https:\/\/yt3.googleusercontent.com\/8IG_vczSZLUYnDvfHFusOMdIFRpPP8xoKX6z2BLoyALI2hep-PrlLjKEp8qnrnOjTDbAF2w4kQ=s88-c-k-c0x00ffffff-no-rj-mo","width":88,"height":88}],"verified":true,"subscribers":"@TaylorSwift","descriptionShort":"I'm the problem, it's me.","videos":506},{"type":"shelf","title":"Latest from Taylor Swift","items":[{"type":"video","title":"Taylor Swift - All Too Well: The Short Film (Behind The Scenes)","id":"M0Ku_op-LXI","url":"https:\/\/www.youtube.com\/watch?v=M0Ku_op-LXI","bestThumbnail":{"url":"https:\/\/i.ytimg.com\/vi\/M0Ku_op-LXI\/hq720.jpg?sqp=-oaymwEXCNAFEJQDSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLC7mUBG4ovaL-8VeoPLc3rOGCX0Zg","width":720,"height":404},"thumbnails":[{"url":"https:\/\/i.ytimg.com\/vi\/M0Ku_op-LXI\/hq720.jpg?sqp=-oaymwEXCNAFEJQDSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLC7mUBG4ovaL-8VeoPLc3rOGCX0Zg","width":720,"height":404},{"url":"https:\/\/i.ytimg.com\/vi\/M0Ku_op-LXI\/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLBWi6Rnj_2E5AMcpN5b_g7dH1no_w","width":360,"height":202}],"isUpcoming":false,"upcoming":null,"isLive":false,"badges":[],"author":{"name":"Taylor Swift","channelID":"UCqECaJ8Gagnn7YCbPEzWH6g","url":"https:\/\/www.youtube.com\/channel\/UCqECaJ8Gagnn7YCbPEzWH6g","bestAvatar":{"url":"https:\/\/yt3.ggpht.com\/8IG_vczSZLUYnDvfHFusOMdIFRpPP8xoKX6z2BLoyALI2hep-PrlLjKEp8qnrnOjTDbAF2w4kQ=s88-c-k-c0x00ffffff-no-rj","width":68,"height":68},"avatars":[{"url":"https:\/\/yt3.ggpht.com\/8IG_vczSZLUYnDvfHFusOMdIFRpPP8xoKX6z2BLoyALI2hep-PrlLjKEp8qnrnOjTDbAF2w4kQ=s88-c-k-c0x00ffffff-no-rj","width":68,"height":68}],"ownerBadges":["Official Artist Channel"],"verified":true},"description":null,"views":3548907,"duration":"6:57","uploadedAt":"1 month ago"},{"type":"video","title":"Taylor Swift - Anti-Hero (ILLENIUM Remix)","id":"nF4Jc9sPPug","url":"https:\/\/www.youtube.com\/watch?v=nF4Jc9sPPug","bestThumbnail":{"url":"https:\/\/i.ytimg.com\/vi\/nF4Jc9sPPug\/hq720.jpg?sqp=-oaymwExCNAFEJQDSFryq4qpAyMIARUAAIhCGAHwAQH4Af4JgALQBYoCDAgAEAEYRiBSKGUwDw==&rs=AOn4CLDZ53GuFXCX3_tQNPWVedaH0b7v-Q","width":720,"height":404},"thumbnails":[{"url":"https:\/\/i.ytimg.com\/vi\/nF4Jc9sPPug\/hq720.jpg?sqp=-oaymwExCNAFEJQDSFryq4qpAyMIARUAAIhCGAHwAQH4Af4JgALQBYoCDAgAEAEYRiBSKGUwDw==&rs=AOn4CLDZ53GuFXCX3_tQNPWVedaH0b7v-Q","width":720,"height":404},{"url":"https:\/\/i.ytimg.com\/vi\/nF4Jc9sPPug\/hq720.jpg?sqp=-oaymwE9COgCEMoBSFryq4qpAy8IARUAAAAAGAElAADIQj0AgKJDeAHwAQH4Af4JgALQBYoCDAgAEAEYRiBSKGUwDw==&rs=AOn4CLDzGOFjOhGDKU0yqKe4Qatg9I-XRA","width":360,"height":202}],"isUpcoming":false,"upcoming":null,"isLive":false,"badges":[],"author":{"name":"Taylor Swift","channelID":"UCqECaJ8Gagnn7YCbPEzWH6g","url":"https:\/\/www.youtube.com\/channel\/UCqECaJ8Gagnn7YCbPEzWH6g","bestAvatar":{"url":"https:\/\/yt3.ggpht.com\/8IG_vczSZLUYnDvfHFusOMdIFRpPP8xoKX6z2BLoyALI2hep-PrlLjKEp8qnrnOjTDbAF2w4kQ=s88-c-k-c0x00ffffff-no-rj","width":68,"height":68},"avatars":[{"url":"https:\/\/yt3.ggpht.com\/8IG_vczSZLUYnDvfHFusOMdIFRpPP8xoKX6z2BLoyALI2hep-PrlLjKEp8qnrnOjTDbAF2w4kQ=s88-c-k-c0x00ffffff-no-rj","width":68,"height":68}],"ownerBadges":["Official Artist Channel"],"verified":true},"description":null,"views":1110170,"duration":"4:32","uploadedAt":"1 month ago"},{"type":"video","title":"Taylor Swift - Anti-Hero (Roosevelt Remix)","id":"eSLO-HpSWD0","url":"https:\/\/www.youtube.com\/watch?v=eSLO-HpSWD0","bestThumbnail":{"url":"https:\/\/i.ytimg.com\/vi\/eSLO-HpSWD0\/hq720.jpg?sqp=-oaymwExCNAFEJQDSFryq4qpAyMIARUAAIhCGAHwAQH4Af4JgALQBYoCDAgAEAEYRyBSKGUwDw==&rs=AOn4CLCtCqge4amzmXVj1oUBBRgoEl5LWg","width":720,"height":404},"thumbnails":[{"url":"https:\/\/i.ytimg.com\/vi\/eSLO-HpSWD0\/hq720.jpg?sqp=-oaymwExCNAFEJQDSFryq4qpAyMIARUAAIhCGAHwAQH4Af4JgALQBYoCDAgAEAEYRyBSKGUwDw==&rs=AOn4CLCtCqge4amzmXVj1oUBBRgoEl5LWg","width":720,"height":404},{"url":"https:\/\/i.ytimg.com\/vi\/eSLO-HpSWD0\/hq720.jpg?sqp=-oaymwE9COgCEMoBSFryq4qpAy8IARUAAAAAGAElAADIQj0AgKJDeAHwAQH4Af4JgALQBYoCDAgAEAEYRyBSKGUwDw==&rs=AOn4CLAd6bCUxOKTQhTczd4ZVl2FAQZY9A","width":360,"height":202}],"isUpcoming":false,"upcoming":null,"isLive":false,"badges":[],"author":{"name":"Taylor Swift","channelID":"UCqECaJ8Gagnn7YCbPEzWH6g","url":"https:\/\/www.youtube.com\/channel\/UCqECaJ8Gagnn7YCbPEzWH6g","bestAvatar":{"url":"https:\/\/yt3.ggpht.com\/8IG_vczSZLUYnDvfHFusOMdIFRpPP8xoKX6z2BLoyALI2hep-PrlLjKEp8qnrnOjTDbAF2w4kQ=s88-c-k-c0x00ffffff-no-rj","width":68,"height":68},"avatars":[{"url":"https:\/\/yt3.ggpht.com\/8IG_vczSZLUYnDvfHFusOMdIFRpPP8xoKX6z2BLoyALI2hep-PrlLjKEp8qnrnOjTDbAF2w4kQ=s88-c-k-c0x00ffffff-no-rj","width":68,"height":68}],"ownerBadges":["Official Artist Channel"],"verified":true},"description":null,"views":460544,"duration":"5:04","uploadedAt":"2 months ago"},{"type":"video","title":"Taylor Swift - Anti-Hero (Kungs Remix)","id":"uybMJ8cSWtA","url":"https:\/\/www.youtube.com\/watch?v=uybMJ8cSWtA","bestThumbnail":{"url":"https:\/\/i.ytimg.com\/vi\/uybMJ8cSWtA\/hq720.jpg?sqp=-oaymwExCNAFEJQDSFryq4qpAyMIARUAAIhCGAHwAQH4Af4JgALQBYoCDAgAEAEYRyBSKGUwDw==&rs=AOn4CLBGmBqbF9gYB4920B58U2_SlMmkrA","width":720,"height":404},"thumbnails":[{"url":"https:\/\/i.ytimg.com\/vi\/uybMJ8cSWtA\/hq720.jpg?sqp=-oaymwExCNAFEJQDSFryq4qpAyMIARUAAIhCGAHwAQH4Af4JgALQBYoCDAgAEAEYRyBSKGUwDw==&rs=AOn4CLBGmBqbF9gYB4920B58U2_SlMmkrA","width":720,"height":404},{"url":"https:\/\/i.ytimg.com\/vi\/uybMJ8cSWtA\/hq720.jpg?sqp=-oaymwE9COgCEMoBSFryq4qpAy8IARUAAAAAGAElAADIQj0AgKJDeAHwAQH4Af4JgALQBYoCDAgAEAEYRyBSKGUwDw==&rs=AOn4CLAjq9K2IEEGfy5H9NmCQccHzGOGLg","width":360,"height":202}],"isUpcoming":false,"upcoming":null,"isLive":false,"badges":[],"author":{"name":"Taylor Swift","channelID":"UCqECaJ8Gagnn7YCbPEzWH6g","url":"https:\/\/www.youtube.com\/channel\/UCqECaJ8Gagnn7YCbPEzWH6g","bestAvatar":{"url":"https:\/\/yt3.ggpht.com\/8IG_vczSZLUYnDvfHFusOMdIFRpPP8xoKX6z2BLoyALI2hep-PrlLjKEp8qnrnOjTDbAF2w4kQ=s88-c-k-c0x00ffffff-no-rj","width":68,"height":68},"avatars":[{"url":"https:\/\/yt3.ggpht.com\/8IG_vczSZLUYnDvfHFusOMdIFRpPP8xoKX6z2BLoyALI2hep-PrlLjKEp8qnrnOjTDbAF2w4kQ=s88-c-k-c0x00ffffff-no-rj","width":68,"height":68}],"ownerBadges":["Official Artist Channel"],"verified":true},"description":null,"views":449649,"duration":"3:19","uploadedAt":"2 months ago"},{"type":"video","title":"Taylor Swift - Anti-Hero (Jayda G Remix)","id":"Cd3v_pRgOp8","url":"https:\/\/www.youtube.com\/watch?v=Cd3v_pRgOp8","bestThumbnail":{"url":"https:\/\/i.ytimg.com\/vi\/Cd3v_pRgOp8\/hq720.jpg?sqp=-oaymwEXCNAFEJQDSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLDGomBzDIyYKmurLMSlOQEm047haw","width":720,"height":404},"thumbnails":[{"url":"https:\/\/i.ytimg.com\/vi\/Cd3v_pRgOp8\/hq720.jpg?sqp=-oaymwEXCNAFEJQDSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLDGomBzDIyYKmurLMSlOQEm047haw","width":720,"height":404},{"url":"https:\/\/i.ytimg.com\/vi\/Cd3v_pRgOp8\/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLBjvH5FRauNaxfVAFb2AObvSBAPpQ","width":360,"height":202}],"isUpcoming":false,"upcoming":null,"isLive":false,"badges":[],"author":{"name":"Taylor Swift","channelID":"UCqECaJ8Gagnn7YCbPEzWH6g","url":"https:\/\/www.youtube.com\/channel\/UCqECaJ8Gagnn7YCbPEzWH6g","bestAvatar":{"url":"https:\/\/yt3.ggpht.com\/8IG_vczSZLUYnDvfHFusOMdIFRpPP8xoKX6z2BLoyALI2hep-PrlLjKEp8qnrnOjTDbAF2w4kQ=s88-c-k-c0x00ffffff-no-rj","width":68,"height":68},"avatars":[{"url":"https:\/\/yt3.ggpht.com\/8IG_vczSZLUYnDvfHFusOMdIFRpPP8xoKX6z2BLoyALI2hep-PrlLjKEp8qnrnOjTDbAF2w4kQ=s88-c-k-c0x00ffffff-no-rj","width":68,"height":68}],"ownerBadges":["Official Artist Channel"],"verified":true},"description":null,"views":423620,"duration":"3:36","uploadedAt":"2 months ago"},{"type":"video","title":"Taylor Swift - Anti-Hero (feat. Bleachers)","id":"T1d9PiRAJNM","url":"https:\/\/www.youtube.com\/watch?v=T1d9PiRAJNM","bestThumbnail":{"url":"https:\/\/i.ytimg.com\/vi\/T1d9PiRAJNM\/hq720.jpg?sqp=-oaymwExCNAFEJQDSFryq4qpAyMIARUAAIhCGAHwAQH4Af4JgALQBYoCDAgAEAEYRiBSKGUwDw==&rs=AOn4CLDsKcYg7tTW14YIgmzTavYsp4tUmA","width":720,"height":404},"thumbnails":[{"url":"https:\/\/i.ytimg.com\/vi\/T1d9PiRAJNM\/hq720.jpg?sqp=-oaymwExCNAFEJQDSFryq4qpAyMIARUAAIhCGAHwAQH4Af4JgALQBYoCDAgAEAEYRiBSKGUwDw==&rs=AOn4CLDsKcYg7tTW14YIgmzTavYsp4tUmA","width":720,"height":404},{"url":"https:\/\/i.ytimg.com\/vi\/T1d9PiRAJNM\/hq720.jpg?sqp=-oaymwE9COgCEMoBSFryq4qpAy8IARUAAAAAGAElAADIQj0AgKJDeAHwAQH4Af4JgALQBYoCDAgAEAEYRiBSKGUwDw==&rs=AOn4CLAvKxxP1lysBAONrzj9HyVPKgma4w","width":360,"height":202}],"isUpcoming":false,"upcoming":null,"isLive":false,"badges":[],"author":{"name":"Taylor Swift","channelID":"UCqECaJ8Gagnn7YCbPEzWH6g","url":"https:\/\/www.youtube.com\/channel\/UCqECaJ8Gagnn7YCbPEzWH6g","bestAvatar":{"url":"https:\/\/yt3.ggpht.com\/8IG_vczSZLUYnDvfHFusOMdIFRpPP8xoKX6z2BLoyALI2hep-PrlLjKEp8qnrnOjTDbAF2w4kQ=s88-c-k-c0x00ffffff-no-rj","width":68,"height":68},"avatars":[{"url":"https:\/\/yt3.ggpht.com\/8IG_vczSZLUYnDvfHFusOMdIFRpPP8xoKX6z2BLoyALI2hep-PrlLjKEp8qnrnOjTDbAF2w4kQ=s88-c-k-c0x00ffffff-no-rj","width":68,"height":68}],"ownerBadges":["Official Artist Channel"],"verified":true},"description":null,"views":1459315,"duration":"3:52","uploadedAt":"2 months ago"},{"type":"video","title":"Taylor Swift - Bejeweled (Official Music Video)","id":"b7QlX3yR2xs","url":"https:\/\/www.youtube.com\/watch?v=b7QlX3yR2xs","bestThumbnail":{"url":"https:\/\/i.ytimg.com\/vi\/b7QlX3yR2xs\/hq720.jpg?sqp=...
                                                                                                                                                                                                                    
                                                                                                    

Fetch Youtube Videos - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/948/youtube+search+api/769/fetch+youtube+videos?q=Taylor Swift' --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 Search API REST 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.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🚀 Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

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, look at the ‘X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the ‘X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

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 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

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]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

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 trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
1,099ms

Category:


Related APIs