API for retrieving categories and category_ids