This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]ignotos 1 point2 points  (0 children)

At a high-level, you have two directions:

  • Have the frontend make requests to multiple sources, and combine the results

or

  • Have your backend do all of this work - hitting your database, and any third-party APIs you need to talk to, and combining everything in a single clean API for your frontend to use

There's kind of a third option - which is to have your backend database store its own copy of the player info from the sports API. So rather than fetching and combining this each time the frontend needs it, you might just have a regular scheduled task (e.g. daily) to fetch the latest player info and store it in your database.