In YouTube Data API v3, you can get video's thumbnails with the videos->list function.
From snippet.thumbnails.(key), you can pick the default, medium or high resolution thumbnail, and get it'sits width, height and URL.
You can also update thumbnails with the thumbnails->set functionality.
For examples, you can check out the YouTube API Samples project. (PHP ones.)