Questions tagged [youtube-data-api]

YouTube Data API used for getting details of YouTube contents like Playlist, Playlistitems and video's details! You need to generate a YouTube Data API Developer Key to access the content available on YouTube Data API.

YouTube Data API

The tag is generalized version of tag.

References

4420 questions
2775
votes
31 answers

How do I get a YouTube video thumbnail from the YouTube API?

If I have a YouTube video URL, is there any way to use PHP and cURL to get the associated thumbnail from the YouTube API?
CodeOverload
  • 47,274
  • 54
  • 131
  • 219
130
votes
20 answers

Google API: Not a valid origin for the client: url has not been whitelisted for client ID "ID"

I need help. I don't found an answer to my question. I tried googling and I tried asking on other sides but I never found an answer. I'm working with the google API (Youtube data API) and I use the example code from the google side the code it works…
DreamGamer
  • 1,577
  • 2
  • 8
  • 12
113
votes
7 answers

How do I get video durations with YouTube API version 3?

I'm using YouTube API v3 to search YouTube. https://developers.google.com/youtube/v3/docs/search As you can see, the response JSON doesn't contains video durations. Is there way to get video durations? Preferably not calling an API for each element…
Rukshan
  • 7,902
  • 6
  • 43
  • 61
91
votes
15 answers

java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/JsonFactory

I am working on YouTube broadcast sample examples. I have created a sample Java Project & added required jars. But, when I try to run the project it throws exception. Exception : Throwable:…
VVB
  • 7,363
  • 7
  • 49
  • 83
81
votes
9 answers

Retrieve all videos from youtube playlist using youtube v3 API

I'm retrieving videos of a playlist using youtube v3 API and getting 50 items without any problem with this link:- https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=PLB03EA9545DD188C3&key=MY_API_KEY But the…
amrinder007
  • 1,455
  • 1
  • 12
  • 13
77
votes
5 answers

Google OAUTH: The redirect URI in the request did not match a registered redirect URI

I am trying to make an upload to YouTube from my Java based web app, I spent a few days to understand what and where is the problem and I cannot get it, for now I am pulling my hair out off my head. I registered my web app in Google Console, so I…
70
votes
13 answers

Youtube api v3 Get list of user's videos

With Youtube api v2, there's easy way to get videos. Just send a query like this: http://gdata.youtube.com/feeds/mobile/videos?max-results=5&alt=rss&orderby=published&author=OneDirectionVEVO The Youtube api v2 also has an interactive demo page for…
vietstone
  • 8,784
  • 16
  • 52
  • 79
64
votes
3 answers

How can I calculate my YouTube API usage?

I'm building a pretty large app for a client that is going to aggregate feeds from various sources. My client estimates around 900 follow-able users will be in this system to start out, with more being added over time. He wants to update the feed…
Gordo
  • 778
  • 1
  • 6
  • 10
59
votes
8 answers

cURL error 60: SSL certificate prblm: unable to get local issuer certificate

I want to collect a list of videos uploaded on a specific channel using the YouTube data API. However, before implementing online I am trying to get my code running on an offline environment (WAMPserver, PHP 5.5.12, Apache 2.4.9). I am using the…
Sjors Hijgenaar
  • 1,232
  • 1
  • 16
  • 30
47
votes
2 answers

Youtube subscriber count with Youtube Data Api V3

So previously i was getting a youtube channel subscriber count with youtube data api v2. I used the following (I am using TED channel for demo purposes)…
kianmeng
  • 507
  • 1
  • 4
  • 7
45
votes
4 answers

How can I get the actual video URL of a YouTube live stream?

Is there a way to get the HLS URL for YouTube live streams like this one https://www.youtube.com/embed/WVZpCdHq3Qg I've tried the typical get_video_info methods but they don't seem to work with live streams.
45
votes
5 answers

How to get all comments on a YouTube video?

Since Google has deprecated the YouTube v2 API, I cannot find a way to get all the comments from a video. Is it possible to use a single, non-deprecated API (Google+, YT v3) to do that? I am not concerned about maintaining threading.
Paulie
  • 1,567
  • 4
  • 16
  • 21
38
votes
5 answers

YouTube maxresdefault thumbnails

I need to use the maxresdefault version of my YouTube video thumbnails for a website, however upon developing the code to achieve this I have found that not all of my videos have these thumbnails available, despite the videos all being 1080p. Is…
35
votes
5 answers

How to get the mp4 url for Youtube videos using Youtube v3 API

How do I get the full mp4 url to play the video from its actual location in my application using some other source except Youtube. The gdata/youtube API has been deprecated so I am having trouble. Any help will be appreciated. Thanks.
Lherbeur
  • 451
  • 1
  • 4
  • 7
35
votes
1 answer

How to only find videos that can be played on mobile?

Does YouTube data API still not support this feature? I have been trying to find a way for more than a few months already, and there doesn't seem to be a reliable way to retrieve a list of video that can be absolutely played without restrictions on…
Maximus S
  • 10,759
  • 19
  • 75
  • 154
1
2 3
99 100