Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does using the YouTube Data Api generate any cost?

I was wondering if the use of the YouTube Data API generate any costs (money which must be payed to Google).

I was only able to find the "unit-system" which is used by YouTube to limit the amount of requests?

like image 300
Jhon Smith Avatar asked Dec 01 '14 09:12

Jhon Smith


1 Answers

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
like image 66
rsp Avatar answered Oct 15 '22 18:10

rsp