Write an API with the language & framework you prefer.
The first unique call to an API should fetch data from 2 different APIs, and merge the stored result in a DB.
2nd calls to that API should return data from the DB and not hit the APIs.
A counter should count the number of unique requests to this API.
Make sure to catch any errors in the API requests.