Skip to content

Instantly share code, notes, and snippets.

View mattsilv's full-sized avatar

silv.eth mattsilv

  • Washington, DC
  • 22:17 (UTC -04:00)
  • X @mattsilv
View GitHub Profile

Nutritionix Querying Language (NXQL)

NXQL allows developers to write more advanced queries against our data pool. Examples of what you can do with an advanced query:

  • Filter items by their type (show ONLY USDA items or ONLY CPG items)
  • Filter nutrient ranges (>100 calories AND <500 calories)

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.

Request Requirements