Improve API calls for categories