Description Usage Arguments Details Value See Also Examples
Return a compact list of indicator categories, codes and labels
1 |
q |
character array of pattern(s) to search for. If omitted will return all available indicators. |
as.class |
"data.table" or "list" of indicator codes grouped by category |
# API call: list all HarvestChoice indicators matching category 'demographics'
$ curl http://hcapi.harvestchoice.org/ocpu/library/hcapi3/R/category/json \
-d '{"q" : "demographics'
\
-X POST -H "Content-Type:application/json"
# API call: list all HarvestChoice indicators matching 'cassava' in a hierarchical list $ curl http://hcapi.harvestchoice.org/ocpu/library/hcapi3/R/category/json \ -d '"q" :" cassava", "as.class" : "list" \ -X POST -H "Content-Type:application/json"
# To return a complete list of published indicators omit 'q' $ curl http://hcapi.harvestchoice.org/ocpu/library/hcapi3/R/category/json \ -X POST -H "Content-Type:application/json"
a data.table showing the number of indicators in each category, or a list of indicators grouped by category
indicator to view complete indicator metadata records
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.