> For the complete documentation index, see [llms.txt](https://blings.gitbook.io/blings-knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blings.gitbook.io/blings-knowledge-base/documentation/getting-started/how-to-connect-my-data-to-the-sdk/custom-api-integration.md).

# 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.

.

<figure><img src="https://2160648125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsAHOIWkjYudyFAaqnpQm%2Fuploads%2Fgit-blob-0c2dfba616949911bf1a4b3b62bae0abe9a0c1a1%2Fimage.png?alt=media" alt="" width="329"><figcaption><p>Custom API Diagram</p></figcaption></figure>

* 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.

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