Skip to content

Check Vimeo connection status and import or sync videos via REST.

Vimeo REST API

Vimeo REST routes require Enable Vimeo Integration on MediaBlaster → General Settings, plus a connected OAuth token under Integrations.

Base path: /wp-json/mediablaster/v3/vimeo/

All Vimeo write routes require edit_posts.

Status

GET /vimeo/status

Returns whether credentials and an access token are configured.

Configured and connected:

{
  "configured": true,
  "authenticated": true
}

Not configured:

{
  "configured": false,
  "authenticated": false,
  "message": "Vimeo API credentials are not configured."
}

Use this before building import UIs so clients can show setup instructions.

Import from Vimeo URL

POST /vimeo/import

Creates a new content post from a Vimeo video and populates MediaBlaster meta from the Vimeo API.

Request body

FieldRequiredDescription
vimeo_urlYesFull Vimeo URL (e.g. https://vimeo.com/123456789)
typeYesmovies, videos, or episodes (not series)
statusNoDefault draft; publish requires publish capability

Example:

{
  "vimeo_url": "https://vimeo.com/123456789",
  "type": "movies",
  "status": "draft"
}

Create behavior

  • Fetches video metadata from Vimeo (/me/videos/{id}).
  • Creates a WordPress post of the requested type.
  • Sets rovidx_smart_tv_vm_pro_url from the Vimeo link.
  • Sets HLS URL, duration, format (HLS), quality, title/description when import options allow.
  • Attaches featured image from Vimeo thumbnails when available.
  • Imports Vimeo tags to post tags when present.

Response: full content object for the new post.

Sync existing post

POST /vimeo/sync/{post_id}

Refreshes an existing post from its stored Vimeo URL.

Requirements

  • Post must exist and be a supported content type.
  • Caller must be able to edit_post for that ID.
  • Post meta rovidx_smart_tv_vm_pro_url must contain a valid Vimeo URL.

Refresh behavior

  • Re-fetches Vimeo video data.
  • Updates rovidx_smarttv_URL, duration, format, quality, and optional title/description per Vimeo Settings import toggles.
  • Updates featured image when a thumbnail is available.

Response: full updated content object.

Errors:

CodeWhen
mediablaster_not_foundInvalid post
mediablaster_forbiddenCannot edit post
mediablaster_invalid_payloadMissing Vimeo URL on post
mediablaster_vimeo_not_configuredIntegration disabled
mediablaster_vimeo_sync_failedVimeo API or processing error

Admin alternatives

The same Vimeo logic is available in wp-admin without REST:

REST is intended for agents, headless tools, and automated pipelines.

Was this helpful?