Below you'll find tutorials for using the Vimeo OTT API to integrate your experiences with our video services. For more in depth information on all our available endpoints see the full API Reference.
If you haven't already you can get your API Key from the Vimeo OTT Dashboard here Get API Key
Upload and ingest video into the Vimeo OTT Dashboard. Vimeo OTT will automatically transcode into various renditions to ensure fast, reliable adaptive streaming across all devices.
Once you have your videos uploaded you'll need a way for customers to access your content. Content can be accessed by creating a product. Products allow you to specify what the access agreement is and what videos/collections are associated with that product. An access agreement can one of the following:
(a subscription)
(a rental)
(a purchase)
Products can be created via the Vimeo OTT Dashboard. You'll need a reference to the product you create in subsequent API calls: the product href can be retrieved for any product after creation in the dashboard. It follows a similar pattern to videos, https://api.vhx.tv/products/:id.
Once you have your videos and products ready to go you'll be ready to accept customers. To give access to your products you will need to create a customer. To create a customer with the API you must the customer name, email, and product you're granting them access to.
Note: When using our API, it is assumed your application will handle any necessary pay wall (we recommend Stripe) and user authentication. It is possible, though, to leverage the API to build your own custom web experience (using Stripe), and still use our branded apps platform which natively supports and handles Roku Billing, Apple IAP, and Android IAP on your behalf.
The final step is to grant a customer access to a specific video via authorizations and the Vimeo OTT HTML5 player. You can specify how long a particular session token lasts. Once a token expires, you will need to re-authenticate your customer and create a new authorization token. To create an authorization token for a customer with the API:
From our previous authorization call we'll get back an object with all that we need to include an authorized instance of your video. You can either include the Vimeo OTT Player yourself with the video and authorization token or simply output the player embed from the object embed property:
See our Vimeo OTT Player Guide for more details on using the Vimeo OTT Player and API.
We're always happy to help! Please submit any questions here.