Connecting API to retrieve info

Hey there!

I want to build an app in which I upload a picture of a dress and it shows me similar clothes to the one I uploaded.

To do so, I found an API that does just that (ref: https://rapidapi.com/42575829/api/similar-clothes-ai/endpoints) and I connected it correctly to the API connector.

Now, I have created a picture uploader and started a workflow:

Schermata 2021-03-29 alle 18.54.28
and I placed a repeating group on the screen:

but then I got stuck as i’m not able to configure the Type of Content and the Data Source correctly.

I’m into bubble but i am kind of a newbie: I like to learn by doing, so whenever something challenges me I like to try it right away.

Could you please point me to the right direction so that I can perform this one function?

Thank you in advance!

Lorenzo

It looks right so far…

On the datasource you should see something like API Call Similar's Data although it depends how you’ve set up your call, and what data you saved when initializing it. The data needs to be a list.

If you can’t get it working, then share some screenshots of the possible options when you click in the datasource box, as well as your API setup and the returned data, so someone might be able to point you nit he right direction.

Continuing the discussion from Connecting API to retrieve info:

Thanks Adam!

Yep, I saw that earlier on Type of content, but then on data source i can’t find the right option:

Schermata 2021-03-29 alle 19.49.39

Because if i click on get data from an external api, it wont show me any API, and I can’t use the repeating group API and this is the error: Schermata 2021-03-29 alle 19.51.30

What’s the name of your API call? Have you got it set as a ‘data’ type call?

And what data was returned when you initialized it?

The API is Similar Clothes AI (https://rapidapi.com/42575829/api/similar-clothes-ai/endpoints)

Here are the settings:

To start with, if you want to access the API as data on your page (as opposed to using it in a workflow) you need to set the ‘Use as’ option to ‘Data’ instead of ‘Action’.

Then you’ll need to check the returned data (when you initialize the call) to see where the list of similar clothes is, and what the field is called. That will tell you what the content-type and data source needs to be for your RG.