In this article:
- Introduction to Dynamic Elements
- Get started with Dynamic Elements
- Linking your API to elements in your overlay
- Tips and Tricks for using dynamic elements
Introduction to Dynamic Elements
Dynamic Elements is a feature available in the Interactive overlay panel to pull content from any open API and integrate it into the overlay. Dynamic Elements can also be linked to click-through URLs in element actions.
All elements will allow users to add their own content and mix it with content/action from the API. You can drop in an open API endpoint and immediately assign values to different overlay elements within your overlay.
Some benefits of using Dynamic Elements are:
- Ingesting dynamic content into your overlays allows you to integrate deeper and connect more fully with your existing systems that manage your data, product, information, etc.
- Building a more connected video asset
- Always present your audience with the most accurate and up-to-date data and information available
- Plug in any real-time, relevant data from a range of sources to your overlays
- Scale up your interactive video production and save monumental amounts of time from manually updating your data and content
Get started with Dynamic Elements
To use Dynamic Elements, you’ll need two things:
- An open REST API returning JSON
- An Interactive video that uses overlays
Once you have those, navigate to the Overlay Editor. You can find the Dynamic Elements button at the top of the page.
Clicking this will open the API manager where you can add, edit, and delete APIs associated with your interactive video.
To add an API:
- Click the Dynamic Elements button. The following modal window will open:
- Give your API a name
- Enter the URL to your API into the API URL field
- Click the + Add API button to add the API to your video.
You can add multiple APIs to your video, or, if your API supports it, filter the API responses by adding filtered API URLs.
Linking your API to elements in your overlay
To connect an overlay element to dynamic data from your API:
- Add a new or select an existing element of your overlay design. In the example shown below, a text element has been selected.
- In the right-hand menu, under the "Dynamic element" section, toggle the switch that says Link to API to reveal the Dynamic Element settings for that element.
- Select the API you want to link your element with from the API dropdown menu.
- Once you have selected an API, click + Add dynamic data.
- This will open the “Select a response” modal window. Here you can see the full API response called from the URL you entered. Use the arrows to reveal values from each of the items.
- Select the response from the API output by clicking the required field directly in the response, then click Confirm.
- In the case of the Dynamic Element feature for text, you’ll see the code shortcut generated in the text container while in edit mode. Note: On elements that are linked to an API, you will see the dynamic elements' symbol displayed alongside the selection box.
- As soon as you exit editing mode for the text element the response will populate with the current data from the API value selected.
Tips and Tricks for using dynamic elements
- If you don’t have an API or you need an API for a specific task that your current API does not support, look at tools such as Sheetlabs that can turn any spreadsheet into an API.
- The Dynamic Element "custom params" feature is useful for customizing API queries. Currently, Dynamic Elements only support public APIs. For security reasons, please avoid using the custom params feature to append API Keys.