It used to fetch it from /site.json, but /categories.json is the more appropriate one. This one also implements pagination, so we have to do one request per page.