Custom API Integration

Custom API integration gives you full control over the data used in the video. It’s a flexible, secure option that allows you to power personalization using real-time data from your own servers.

.

Custom API Diagram
  • Enables fully custom logic and business rules

  • Data is fetched directly from your backend and never exposed to Blings

  • Supports advanced personalization while keeping the integration lightweight

Fetch Data via Custom Code

Use your own code to fetch data from an API, then pass it into the Blings player during initialization.

fetch('https://my-api.example.com/user-data/123')
  .then(response => response.json())
  .then(userData => {
    BlingsPlayer.create({
      // project: {...},
      // settings: {...},
      data: userData
    });
  });

Last updated