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?
What Asaph said is right. However, not every YouTube video contains all nine thumbnails. Also, the thumbnails' image sizes depends on the video (the numbers below are based on one). There are some thumbnails guaranteed to exist:
Width | Height | URL
------|--------|----
120 | 90 | https://i.ytimg.com/vi/
Additionally, the some other thumbnails may or may not exist. Their presence is probably based on whether the video is high-quality.
Width | Height | URL
------|--------|----
640 | 480 | https://i.ytimg.com/vi//sd1.jpg
640 | 480 | https://i.ytimg.com/vi//sd2.jpg
640 | 480 | https://i.ytimg.com/vi//sd3.jpg
640 | 480 | https://i.ytimg.com/vi//sddefault.jpg
1280 | 720 | https://i.ytimg.com/vi//hq720.jpg
1920 | 1080 | https://i.ytimg.com/vi//maxresdefault.jpg
You can find JavaScript and PHP scripts to retrieve thumbnails and other YouTube information in:
You can also use the YouTube Video Information Generator tool to get all the information about a YouTube video by submitting a URL or video id.