Changed api to search through subcategories