Connect DB Thing to Data retrieved from API

Hi all,

I would like to retrieve data from an API (Soccer Players). As this data changes regularly, it doesn’t make sense to store it into the DB. Rather, I would like to retrieve the Data flexibly and display it into my application. (This step works already)

I would like my users to store the data type “Reports” to a specific player. As the player data is not stored in my DB, but pulled from the API instead, how would I go about this? The player data from the API doesn’t contain a UID, so I thought about connecting it to the “name” and save the player name to the report. However, this feels a bit inelegant. Any ideas?

Thanks in advance! :slight_smile:

Please share the API you’re using. I’ve worked with API-Football in the past. They use player ids.

I would highly recommend using an API that has ids built in. That way, you can simply GET a specific player’s data when needed. No storage required other than a player id.

1 Like

Hi there,

I use the APIFY Transfermarket Scraper and managed find the ID now for a player. The plan is to get the API Data, let the user create a report, save the ID to the report and retrieve the player data again by searching/filtering the API result. Seems to be working so far. :slight_smile:

1 Like

Where do reports come from the same API?

If these reports get updated regularly why would your users want to save them in a DB? Do you mind clarifying your UX?


Youtube: Best bubble developer
Patreon: Bestbubbledev
Twitter: @bestbubbledev
LinkedIn: Gio Kakhiani

I would be asking the API provider what the unique elements are.

Sure, let me clarify. I think I solved it for now as follows:

  1. I get data from a large DB via API → List of Soccer Players (with name, player_id) etc.
  2. Soccer players change clubs regularly etc. etc.
  3. Bubble User can create a Report by clicking on a button in the RG where the API Data is loaded
  4. Report has data field “player_id” + “text”
  5. User can now find the fresh player data every time he click on a report (API data is filtered by matching the player_id)
1 Like

Only thing I don’t understand is if Report comes with API. And API always gives you the fresh data, why do your users would even store in REPORT?

Ah sorry, maybe I wasn’t clear enough. The reports don’t come with the API.

The aim of the app is to be able store custom reports onto any player retrieved from the API. The user writes the report.

OK in this case only thing you can do is to use player name as an ID. You could concatenate First Name & Last Name so it’s more complex string and the chance of 2 players having the same full name is really low.


Youtube: Best bubble developer
Patreon: Bestbubbledev
Twitter: @bestbubbledev
LinkedIn: Gio Kakhiani

That’s also a cool idea, I haven’t thought about this yet! Thanks a lot :slight_smile: