A New Home for the API Connector

After some real-world usage, I can say it’s definitely a notable improvement. Kudos to the Bubble engineers. :+1:

That said, I have a suggestion.

Move the “Use as” setting back where it belongs

I’m certain the Use as setting means "Use this call as either an Action or a Data source, because that dictates how you access the call in the editor - i.e. from which context the call can be invoked. (It also affects behavior, since data sources are cached and actions are not.)

I therefore think…

  • The “Data” menu item should be renamed to “Data source”. Data sources and actions are core Bubble concepts, and the nomenclature should be consistent.
  • The setting itself should be moved back near the name of the API call.

In fact, I’m so certain that was the original intent when the API Connector was created that I’d stake @fede.bubble’s life on it. (Hey, I’m just certain - not stupid. :smirking_face: :laughing:)

Agreed, it should be just like regular data types or option sets.

Nice update!

This is great, I love the new look for the API connector, but is this due to completely replace the API functionality of the Plugin?

I have a few apps that share an API in private plugins I have created, but as far as I can see there is no way to share these new API Collections between apps? If this is the case it would mean recreating these collections for each application, and I can’t see an easy way to share or export collections, or even capture the cURL fore each call.

I have been having issues with initiating the backend workflow to send emails through Sendgrid API. When initiated, sendgrid did not receive the API call eventhough I tried to manually reinitialise the API call on API Connector and it worked. The issues arise since this new UI is released. Would really appreciate someone support here.

Nice update! quick suggestions @nick.carroll :raising_hands:

  1. Map API response fields to Bubble Data Types (by ID)
    Let developers declare a response field as a Bubble Data Type so when the API returns an ID Bubble can automatically resolve it to the corresponding Thing. This would be explicit (dev-declared), consistent with API Workflows, and would remove the need for repeated “Do a search for…” steps.
  2. Typed in-memory objects
    Enable the creation of typed, non-persistent objects for data manipulation (e.g. a “Set a JSON Object” expression where you select a predefined type and map its fields).
    Today, common workarounds include creating temporary Things in the database just to shape data, or creating an API Workflow and calling it via the API Connector purely for data transformation. Both approaches feel indirect and add unnecessary complexity. Typed in-memory objects would solve this cleanly, without API calls or temporary database records.

yes please

Yeah this is greatly needed (I’ve never been sure why it’s not already an option).

That said, you don’t have to use a ‘do a search’ expression to retrieve a Bubble database object via its unique ID…

You can use the expression Element from the tool box plugin to retrieve them without doing a ‘Bubble search’ (i.e. with an individual data request instead) which is significantly less costly in WU.

Yeah… for me, the lack of native ability to use non-Bubble objects is the single biggest limitation of Bubble, and a truly bizarre feature omission for any no-code development system (and one that leaves Bubble trailing the competition)…

That said, the API connector (through the use of API Connector objects) is a valid and functional workaround (no matter how strange and annoying it is).

but it’s worth pointing out that, despite what many people seem to think, you DO NOT have to make API calls to your own backend (which is unnecessary slow and costly) in order to work with API Conector objects - you can create AND use these entirely on the fly, on both the client-side and on the server, using the toolbox plugin (once again, the toolbox plugin comes to the rescue to fill in the missing functional gaps of bubble).

But.., this really shouldn’t be the case - objects are about the most basic concept in programming , and EVERY other low-code or visual dev tool I’ve personally used has their use as a standard, integrated part of the system - so it’s truly bizarre that Bubble doesn’t, despite years of requests from users,

Here’s hoping…

Mmmm, in what sense? Do a search by unique ID maps to an individual data request rather than a search internally anyway (even though as an expression, it looks like a search).

You’re right (I just tested this) - It does… for a single item.

e.g.

Search for Things where Unique ID is ‘unique_id’; first item

This is done as an individual data request (with a WU cost of 0.02).

But, for multiple items Bubble performs a ‘search’.

e.g.

Search for Things where Unique ID is in ‘list of 4 unique ids’

The above performs a search (with a cost of 0.3 for the search and approx 0.02 for each item - so a total WU cost of approx 0.38)

Whereas, by using an expression element that outputs the list of items based on the unique IDs, Bubble just does a bunch of Individual Data requests (no search), the same as it would for related data of a custom datatype, costing approx 0.02 WU each - so a total of 0.08 WU (which is the same as it would be if Bubble could map the API response unique IDs to the Things directly).

So it costs more than 4x the WU to use ‘Do a search for’ 4 items based on Unique IDs than it does to use the expression element to output them directly.

So if each row of an API response has nested keys containing multiple Unique ID strings that map to Bubble database items, then it’s a lot more efficient (in WU cost, at least) to use the expression element to retrieve them, than it is to use searches (especially if there’s a search, for example, inside each RG cell that displays the data).

Of course, this difference is most pronounced with a smaller number of items - the more items being retrieved the smaller the gap gets.

Plus… WU is not the only consideration here - but in the majority of apps it IS a consideration nonetheless, and a difference of 4x in WU cost IS a significant one - but the overall amount of data will be a determining factor; with larger amounts of data, doing a ‘search’ WILL be more efficient, even if it costs more in WU.

Great news, but there is still no comment section, should not be so hard to add

Muito bom! Ficou excelente!

This is amazing! I’ve not even used it yet but at a glance I’m so much happier with what I can see, also just really great to see bubble implementing some of the long needed features that have been on the radar for a while now.

My one wish list item would be visibility on the full call, since I’ve spent many an hour trying to fix things that would have taken me 30 seconds had I been able to see what bubble was sending.

Is anyone else having any issues with sending dynamic data to the TP API? My API call just keeps sending the actual placeholders. I have reported the bug and they have confirmed they have been able to recreate the issue but heaven knows when it will be fixed if it is not considered a priority.

Really appreciate the detailed feedback everyone. We are internalizing and incorporating this into our upcoming roadmaps so please keep it coming.

Can you explain more?

Technically, this is a huge issue and should be fixed ASAP. But maybe you didn’t give all details that could explain this response? Can you give an example? Screenshot?

I will second experiencing this issue. No matter how many times I toggled between Data and Action, I was unable to use the type in a Data Source. I do this all the time for the Xano Connector plugin and I could only get it to show up by using the old plugin API Connector, toggling, then refreshing.

I gave all the details and sent a recording. I also gave them access which is how they were able to confirm they were experiencing the same issue. As of now the ticket is still not in progress.

Checking in on the status of this ticket