I’ve got a 3rd party API that I’m trying to pull from via the REST API plugin. The issue I’m having is that this API sends an actual .png image, not a URL to the image. So when I try to make a request in WeWeb, I don’t get a response.
I have this connected in Bubble just fine but I noticed that the Data type is set to “Image”. Is there a way to receive image files via the REST API plugin or will I need to try and run this call through Xano and transform things there?
My first thought is: you’ll probably need to use Xano to store the image because the image element in WeWeb needs a URL to display an image.
That said, I wasn’t able to find a lot of documentation on Keepa aside from this YouTube tutorial that doesn’t really use their API. I’m curious: what happens when you make the call in a tool like Postman? What does the response look like?
That’s what I ended up doing! I haven’t actually tested it in Postman but what I ended up doing was creating an API endpoint in Xano that:
Makes a request to Keepa using the provided details of the product.
Saves the image to Xano using a uniquely generated URL.
Sends that new image URL back to Xano to use as the image.
Since this will be happening hundreds of times a day with users, I’ll then create a recurring Xano task that mass deletes the images since they won’t be relevant after about 90 minutes.