I have a small Desktop application (Windows+Mac) that uses third-party API calls (RESTful) to collect some data and present results to users.
At this moment, the API calls (open and free APIs) are made directly from the client (approach #1). However, I am wondering if this is a bad practice.
As an alternative, I would make a single API call to our server and from there I would call all the third-party APIs (approach #2), then send the results to the client.
- Approach 1 has the advantage... that it is already up and running;
- Approach 2 is easier to react to API changes without needing to update the clients.