I\'m playing now with the Youtube API and I began a small project (for fun).
The problem Is that I cant find the way to get Title of a video from the Id. (example: y
The answers of Robert Sim and cbaigorri were the best, that's the correct way to do it at this time with JS, do GET request to:
https://www.googleapis.com/youtube/v3/videos?part=snippet&id={YOUTUBE_VIDEO_ID}&fields=items(id,snippet)&key={YOUR_API_KEY}
A little specification about this: You can use comma separated youtube video IDs to get multiple videos info in one request.
To get 1 video, replace {YOUTUBE_VIDEO_ID}
with video ID (ex: 123456
)
To get more videos in one request, replace {YOUTUBE_VIDEO_ID}
with comma separated IDs (ex: 123456,234567,345678,456789
)
This will count as a single request in the Quotas, this way you can get a lot of video details with only 1 quota/request cost.