How to scrape info from youtube link?

Trying to figure out how to pull information from a youtube link. Users submit youtube links to my site and I want to be able to pull the title of the video and the date it is published. What is the best way to go about doing that?

You have to pull that info from Youtube’s Data API. I guess your site lets users submit video links for which you would need the Videos endpoint of this API. Spend some time with the docs and you’ll get all you want to know.

This topic was automatically closed after 70 days. New replies are no longer allowed.