Group duplicate api calls.