Search code examples
htmlvideoembedvimeo

Embed vimeo videos where token is required


I'd like to know whether there's a way to directly embed a vimeo video into a website or whether there's a way to get a stable link to the MP4 file. E.g. this page: http://www.landfunker.de/ktv/detail.php?rubric=93&nr=86411. The video is only launched when accessing it from that page. In the source code, I see links like

fpdl.vimeocdn.com/vimeo-prod-skyfire-std-us/01/3026/7/190133161/631209312.mp4?token=587a20e2_0xece9d9d127813f2b792edb30032d4d9b0a7c484f

However, the tokens expire, right. Any tips? Any workarounds.thx


Solution

  • Use the Vimeo iframe embed code to embed videos on your site:

    To get the MP4 links for video files, you'll need to be a Vimeo PRO or Business member. Video file links are returned in the individual video's response from the API.

    GET https://api.vimeo.com/videos/[video_id]
    

    You can use the API's JSON fields filter to only return the video file links:

    GET https://api.vimeo.com/videos/[video_id]?fields=files 
    

    Finally, note that you can only retrieve the video file links for videos on your own PRO or Business account. Vimeo does not provide a way to retrieve the video file links for videos on other user accounts.

    API documentation can be found here: https://developer.vimeo.com/api/start