Search code examples
iosweb-servicesyelp

retrieve yelp categories and subcategories


I'm hooking into the yelp 2.0 Api and I'm wondering if there is a way to retrieve the list of categories and sub categories. I know that the list is available here http://www.yelp.com/developers/documentation/category_list but there doesn't seem to be a way to retrieve it. I'd like to have a source to retrieve it from so that it's not hard coded in my application and will stay up to date.


Solution

  • Here is a link to all of the categories in json format: https://raw.github.com/Yelp/yelp-api/master/category_lists/en/category.json

    You can programmaticaly download this. The good thing about page is that it gives the categories as they exist in the Yelp ontology.

    [Edit] Now you can get the json of all categories from all countries:

    https://www.yelp.com/developers/documentation/v2/all_category_list/categories.json

    bad news, it's not sorted by country, it's all of them