Description Usage Arguments Details Value See Also Examples
Return complete metadata records for selected HarvestChoice indicators.
1 |
q |
character array of pattern(s) to search against HarvestChoice indicator codes, labels, and categories. Will attempt a fuzzy match. |
version |
optional version filter |
as.class |
"data.table" (default) or "list" for a list of indicators grouped by category |
cartoCSS |
also include formatted CartoCSS rules |
# API call: metadata records for all indicators matching 'cassava' or 'population'
$ curl http://hcapi.harvestchoice.org/ocpu/library/hcapi3/R/indicator/json \
-d '{"q" : ["cassava", "population"]}' \
-X POST -H "Content-Type:application/json"
API call: metadata records for all indicators matching 'population' in a list
$ curl http://hcapi.harvestchoice.org/ocpu/library/hcapi3/R/indicator/json \
-d '{"q" : "population", "as.class" : "list"}' \
-X POST -H "Content-Type:application/json"
a data.table or hierarchical list of indicator metadata
category to view HarvestChoice indicator categories
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.