Webflow sync, pageviews & more.
NEW

How can I connect to the Vimeo API in my Webflow CMS template to display embedded videos?

TL;DR
  • Store Vimeo video IDs or URLs in a Webflow CMS field and use a dynamic Embed element with the Vimeo iframe format to display videos.
  • For advanced metadata, use automation tools like Zapier or Make to call the Vimeo API and update Webflow CMS via its API.

To connect to the Vimeo API and dynamically display embedded videos in a Webflow CMS template, you’ll need to combine Webflow’s CMS with custom embed code and potentially use a third-party automation tool or custom JavaScript.

1. Get Vimeo Video URLs or IDs into Webflow CMS

  • Create a CMS Collection (e.g., “Videos”) with a Plain Text field for storing either the Vimeo video ID or full video URL.
  • Example video ID: 805833397 (from the full URL https://vimeo.com/805833397).

2. Use Vimeo’s Embed Format

  • Vimeo’s standard embed format is:
    https://player.vimeo.com/video/VIDEO_ID
  • You can format this in Webflow using a CMS Embed component.

3. Insert the Embed Code in a CMS Template

  • In your CMS Collection Page, add an Embed element.

  • Use this embed format, replacing VIDEO_ID dynamically:
    ```html

    \`\`\`
  • Inside the embed code, use Webflow’s dynamic field selector to insert the video ID or construct the URL.

4. (Optional) Use Vimeo API for Advanced Data

If you want to pull additional video metadata (e.g., title, thumbnail, duration), you can't do this natively with Webflow. Instead:

  • Use Make (Integromat) or Zapier to:
  • Trigger whenever a CMS item is created or updated.
  • Call Vimeo’s API with the video ID.
  • Extract video metadata and update Webflow CMS fields accordingly via Webflow’s API.

5. Vimeo API Authentication (for Automation Tools)

  • Create a Vimeo app to get an Access Token at developer.vimeo.com.
  • Use this token in your third-party tool to fetch video details.
  • Vimeo’s endpoint for video details:
    https://api.vimeo.com/videos/VIDEO_ID

Summary

To show Vimeo videos in your Webflow CMS templates, store the Vimeo Video ID or URL in a CMS field and use a dynamic Embed element with the Vimeo iframe format. For advanced usage like pulling video titles or metadata, use tools like Zapier or Make to call the Vimeo API and sync data into your CMS.

Rate this answer

Other Webflow Questions