Here is the url to to get the video info where you have to put VIDEO-ID and API-KEY:
https://www.googleapis.com/youtube/v3/videos?part=snippet&id=VIDEO-ID-HERE&key=YOUR-API-KEY-HERE
How to get the title from it and save it as a variable in PHP?
Here is the url to to get the video info where you have to put VIDEO-ID and API-KEY:
https://www.googleapis.com/youtube/v3/videos?part=snippet&id=VIDEO-ID-HERE&key=YOUR-API-KEY-HERE
How to get the title from it and save it as a variable in PHP?
North
On
There are two PHP examples in google developers.
Also, you can try a test in the bottom of this page. Input the part(snippet) and id(select one youtube id) fields. It will demonstrate to you with GET request and JSON response.
Copyright © 2021 Jogjafile Inc.
Something along these lines will get you the information related to a specific video using the PHP client library:
One more solution with API Request