Most of Googles APIs are free to use, but you are given a small quota limit. You can then request additional quota at a later date if you need more. Depending upon how much you ask for you may be charged for the additional quota.
This is not something i have ever heard of with regard to the YouTube api. I suspect your confusion is related to the fact that the YouTube API is cost based. However the cost is not in money the cost is in points against your quota allotment. Say you have 10000 quota points to use for the api, and you make a request against videos.list the cost of this request is 1 quota points. that means you now have 9999 quota points remaining. While video.insert costs 1600.
Its not a cost in money its a cost in quota points. I have a video that may help you understand this a bit better. YouTube API and cost based quota demystified
You may also want to review the Quota cost calculator which will give you an idea of how many points each request costs.
Answer from Linda Lawton - DaImTo on Stack OverflowVideos
What is the YouTube Data API pricing?
What is the cost of using the YouTube API?
Is the YouTube API free for developers?
I've currently got 100k quota (received an increase). But I can't really scale it at the moment because costs are high for quota (e.g posting a comment is 50 unitsx20 comments day = 100 users). I'd like to know if anyone has received any quota beyond this, thanks!
https://developers.google.com/youtube/v3/determine_quota_cost
In addition to the answer by DaImTo I can add that if you don't need all of the YouTube API functionality (e.g. you only need to get video titles and thumbnails or something like that) then you don't need to be worried about the API restrictions at all, and you don't even need to use an API key.
I add this because a lot of people only need to get some basic data and get confused by all of the crazy API limits restrictions that keep changing all the time to make things worse, when you can get the same data without using the YouTube API directly.
You can get oEmbed data from YouTube:
http://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ
Or you can access it via Noembed:
https://noembed.com/embed?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ
which (unlike YouTube) also supports JSONP:
https://noembed.com/embed?callback=example&url=https://www.youtube.com/watch?v=dQw4w9WgXcQ
so that you can use it on the client-side with no need for server-side proxies.
See also those answers for more info:
- Youtube Video title with API v3 without API key?
- Get Youtube information via JSON for single video (not feed) in Javascript
- Response for JSONp request to youtube oembed call giving "invalid label" error
The YouTube Data API uses a quota to ensure that developers use the service as intended and do not create applications that unfairly reduce service quality or limit access for others. All API requests, including invalid requests, incur at least a one-point quota cost.
The cost they are referring to is the cost against your quota.
- 1,000,000 read operations that each retrieve two resource parts.
- 50,000 write operations and 450,000 additional read operations that each retrieve two resource parts.
- 2000 video uploads, 7000 write operations, and 200,000 read operations that each retrieve three resource parts.
There are a limited number of requests you are allowed to make against the API each day. This is free for you to use it does not cost you any money to use this. Some of the Google APIs may allow you to extend this quota but will charge you for the extension but this depends upon the API.
Info from the Youtube API Quota documentation
I've been playing with YT API for a few hours, and mainly practicing searching for videos..
and for each video I'm checking the snippet data (status and stuff)
I left the search params mostly default so I'm getting around 10 results per page only therefore I assume for every time I run my code I hit the API with 11 requests
Again, 1 for listing of videos (search)
$apiUrl = "https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults={$maxResults}&q=" . urlencode($searchTerm) . "&key={$apiKey}&isVideoEmbeddable=true";
and 10 for checking each video's status
$apiUrl = "https://www.googleapis.com/youtube/v3/videos?part=status&id={$videoId}&key={$apiKey}";
Now I estimate I've run my code definitely less than 100x so I'm baffled why I hit the 10K requests per day limit!
confused
Yes, using the YouTube API does not incur any monetary cost for the entity calling the API. If you go over your quota an 403 Error will be returned by the API.
Links:
YouTube API Quota Details
YouTube Quota Calculator
Google already provides a Python client for all of its APIs, including YouTube, which handles authentication, forming and making the API request as well as some datatype translation (i.e. JSON to dictionary, etc.). (link)
Yes it is, but some restrictions like limit you can use only 100000 units per day. and 3000 per second per 100 user per day. For more quotas you have to apply for it. You can apply key or oauth id at HERE. Hope it will help you.
Does anyone know how much google charges for their youtube v3 api? Im using their youtube v3 api key on 2 different websites however i keep maxing out their daily allowed quota and i can seem to find how their pricing model anywhere. I tried searching for it but i keep getting redirected to their YouTube Data API Overview page but it mentions nothing about pricing.