How do I use the Youtube API to check if a video is embeddable?

后端 未结 5 598
栀梦
栀梦 2020-12-15 12:28

Does anyone know how to check if a Youtube video is embeddable using the Youtube API? I\'ve tried using this URL:

http://gdata.youtube.com/feeds/api/videos/4         


        
5条回答
  •  攒了一身酷
    2020-12-15 13:03

    In YouTube V3 API, to return only videos that are embeddable, add videoEmbeddable=true parameter. You must also use type=video for this to work.

提交回复
热议问题