headers:
- x-app-id
- x-app-key
- Content-Type: application/json
POST request body:
{
"query":"ran 3 miles",
GET https://trackapi.nutritionix.com/v2/search/item?nix_item_id=513fc9e73fe3ffd40300109f
HEADERS required:
Response body:
{
"foods": [
I hereby claim:
To claim this, I am signing this object:
NXQL allows developers to write more advanced queries against our data pool. Examples of what you can do with an advanced query:
All requests are POST
and require a valid JSON
object be sent to https://api.nutritionix.com/v1_1/search
You can paste any of the below JSON
examples into this curl request and they will retrieve results assuming you have added your appKey, and appId.
Verifying my Blockstack ID is secured with the address 1KYH9LSLa4SLDzVXDXHiLpYVg38Q9a3ghm https://explorer.blockstack.org/address/1KYH9LSLa4SLDzVXDXHiLpYVg38Q9a3ghm |
// returns items that are not restaurants and nf_serving_weight_grams is not null
// includes usda_fields in the results so items that contain those fields will return
// fields.usda_fields
{
"fields":["item_name","brand_name","keywords","usda_fields"],
"query":"celery",
POST
https://api.nutritionix.com/v1_1/asset?appId=YOUR_APP_ID&appKey=YOUR_APP_KEY
Required
appId
(string)appKey
(string)file
or url
(file overrides url if both are present)
url
(A URL that points to a public facing asset that you wish to be uploaded)file
(A file to be uploaded)