====== Ecosystem categories ====== This method is mostly useful in combination with the [[:api:eco:search|Ecosystem Search method]], for filtering purposes, since that method requires you to supply a category's ID if you intend to narrow you search to one category. You can retrieves all the available categories, each with its own data: - ''id'' attribute: the category's ID number - node text: the category's name ===== Formats ===== XML or JSON (default is XML). In XML, nodetexts have their content encapsulated in a CDATA section.\\ In JSON, these nodes use escaped Unicode codes for special characters. =====Sample URLs ===== - http://api.eco.netvibes.com/categories - http://api.eco.netvibes.com/categories?format=xml (same result as above) - http://api.eco.netvibes.com/categories?format=json ===== Sample outputs ===== Below sample outputs are not definitive! Categories might evolve with time (name, id, number, etc.). Relying on /categories is the safest way to stay up to date with their evolution. ==== XML output ==== Current result in XML (as of this writing - results may vary): ==== JSON output ==== Current result in JSON (as of this writing - results may vary): {"categories":[ {"id":"1","label":"News"}, {"id":"2","label":"Business"}, {"id":"3","label":"Sport"}, {"id":"4","label":"Music"}, {"id":"5","label":"Art & Entertainment"}, {"id":"6","label":"Technology"}, {"id":"7","label":"Games"}, {"id":"8","label":"Lifestyle"}, {"id":"9","label":"Tools & Services"}, {"id":"10","label":"Shopping"}, {"id":"11","label":"Science"}, {"id":"12","label":"Education"}, {"id":"13","label":"Travel"}, {"id":"14","label":"Organizations"} ]}