oEmbed

Home / Solutions / oEmbed

oEmbed

oEmbed is an open format for embedding videos into a website without having to parse the embedding code directly. More details at view the spec.

Endpoint

https://zimovi.com/oembed.json (or .xml)

URL schemes

https://zimovi.com/channel/*/video/*
https://www.zimovi.com/channel/*/video/*

Parameters

url
The ZiMovi page URL for a video.
autoplay
optional
Automatically start playback of the video. Defaults to false.

Example Request

https://zimovi.com/oembed.xml?url=http%3A%2F%2Fzimovi.com%2Fchannel%2Fstaff%2Fvideo%2F8ef80cb7874b34ab

Example Result

{
   "type":"video",
   "version":"1.0",
   "provider_name":"ZiMovi",
   "provider_url":"https:\/\/zimovi.com\/",
   "title":"ZiMovi",
   "html":"<iframe src=\"https:\/\/zimovi.com\/channel\/staff\/player\/video\/8ef80cb7874b34ab\" width=\"1280\" height=\"720\" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe>",
   "width":1280,
   "height":720,
   "duration":"133.44",
   "video_id":"8ef80cb7874b34ab",
   "thumbnail_url":"https:\/\/d1teylh2i3wa1w.cloudfront.net\/videos\/c6b4c01a4d3a3e266cca3eb9457e6c09eb8cc6aa_6401.jpg",
   "thumbnail_width":640,
   "thumbnail_height":360,
   "author_name":"ZiMovi Staff",
   "author_url":"https:\/\/zimovi.com\/channel\/staff"
}


WordPress Integration Example

Register ZiMovi’s oEmbed provider for ZiMovi URLs using a regex URL format:

<?php wp_oembed_add_provider( '#https?://(www\.)?zimovi\.com/.+?/video/.*#i', 'https://zimovi.com/oembed.{format}', true ); ?>


Example Result (and Yes, this page is powered by wordpress)

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt