# Data API calls from custom plugin do not call the endpoint

**URL:** <https://forum.bubble.io/t/data-api-calls-from-custom-plugin-do-not-call-the-endpoint/219158>\
**Category:** Plugins\
**Created:** [August 9, 2022, 9:03am UTC](https://forum.bubble.io/t/data-api-calls-from-custom-plugin-do-not-call-the-endpoint/219158 "2022-08-09T09:03:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aleksei](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@aleksei](https://forum.bubble.io/u/aleksei)\
**Post date:** [August 9, 2022, 9:03am UTC](https://forum.bubble.io/t/data-api-calls-from-custom-plugin-do-not-call-the-endpoint/219158/1 "2022-08-09T09:03:18Z")

</div>

I’m trying to add an API call to a custom plugin that’s meant to be used as data source (not action).  
When I initialise the call in the plugin editor, it’s retrieving the data correctly.  
but when I add an element to a page that’s meant to output the data, the API endpoint never gets called.

**Custom plugin config**

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/c/c/cceba6df4c5378f8feebbdcb57268cc25b9995a9.png)

**Data returned by the endpoint**

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/a/faa5846c3e2293becdd87f966b4ad8bc4c2085df.png)

If I setup the exact same call using the API connector plugin it works fine, but for custom plugin, it doesn’t.  
**API Connector call configuration**

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/0/0/0005e994e0e3dd91c8bc29ce331f6c7849698bad.png)

Is there some setting setting I’m missing?
