the api_c2 is for api connector objects, which if the data you are receiving is from an external database connected to bubble app via an API, that is not a custom data type (ie: a data type created in the Bubble database), that is instead an api object.
When you initialize an api call in api connector, as you have likely done for the api to the external DB, you will specify what type of values those correspond to within your Bubble app, which can be option sets, basic types (text, number) or plugin data types (encompasses both api connector objects and plugin objects), but it is not possible to initialize those as a custom data type (we literally do not have our custom data types as options to choose from).
When you initialize the payload can have the values properly formatted to be null of the correct type of data.
And then choose from the right dropdown what type of data it is. That is how Bubble will know when a plugin fetches a list of that type of api connector object what type of data it is.
If your source is sending just an empty string, that I believe is where the fix needs to be, which is to say that you either send in the correct form of empty values for that type of data or just know when initializing the api call and to set the value to the right type during initialization.
Once you do that, then anytime in Bubble, anywhere you use an expression to reference that type of api connector object (ie: the values coming from the external db api call) and you want to feed it into your plugin (the one you need to know the type of data for), you do not need the plugin to do the heavy lifting of figuring out what type of data is it, and instead let Bubble do it via the dynamic expression and for some types of values you’d use ‘formatted as json safe’, but unfortunately, Bubble doesn’t provide that formatting option for numbers which is a pain as we are then forced to do ridiculous things like provide a ‘inline conditional’ to determine if it is empty or not so we can use the yes/no options inputs to format with ‘null’ or the actual number (formatted as json safe for numbers should exist so that if it is empty bubble sends ‘null’).
You are saying when you use your plugin to try and fetch the data, you get an error stating the value is not iterable as in it is not an array and can not be iterated on from one item to the next? If so, that might not be the issue of the type of data being known, it might be an issue with the plugin function and how it is attempting to fetch the data.