How to get a thumbnail or snapshot of a youtube vi

2020-07-05 06:26发布

I want to take a thumbnail image of a youtube video, let's say http://www.youtube.com/watch?v=ffaTjpA1scI at 30s or 120s. How can I do that with youtube API?

I do think this is possible, because when I watch a Youtube video, if I move my cursor to the timeline, I can immediately see snapshots at specific time. I just want to retrieve these snapshots programmatically.

I also tried http://img.youtube.com/vi//0.jpg, actually this can get the thumbnail of course, but it cannot get a snapshots at a specific time.

1条回答
我欲成王,谁敢阻挡
2楼-- · 2020-07-05 06:59

Those specific type thumbnails (used for the timeline snapshots) are not exposed via any sort of official URL scheme or API. I wouldn't recommend trying to reverse-engineer a solution, either.

查看更多
登录 后发表回答