created API calls for id and match history