Can I use an image received as a result of an API call in a Java script directly without displaying it

I send an image to Remove.bg through a POST api and receive the background removed image. Currently I am displaying it in an Image element through workflows. And then I want to use this Image element value (image) in a java script.

Can I directly use the output / result image from the API into the Javascript using workflows, instead of displaying it in an Image element and then use that Image element’s value in the javascript?

Yes you can do that. You can change the API type from Action to Data and use the Get data from external API operator in Bubble and add this accordingly at the right place in your JS code.

Alternatively, you can continue using the type as Action and refer to this Step’s result in the JS code.

Hope this helps :slight_smile: