Resolve a food name to a NutrientsDB record and read its nutrient profile
A 2-step recipe with NutrientsDB. We can help you get access.
Recipe · 2 steps
Resolve a food name to a NutrientsDB record and read its nutrient profile
with NutrientsDB
Search the sample by food name, then retrieve the selected food by public_id.
- Search the public 1,000-food sample by name fragment.
- Retrieve the selected food by its exact public_id. q and id are mutually exclusive, so this step sends only id.
What you'll need to have ready
- query: Food name fragment, case-insensitive substring match.
- limit: Maximum search results. Values above 20 are capped at 20.
For your developer
Arazzo workflow nutrientsdb:search-then-lookup-food, 2 operations: findFoods → findFoods. Specs on APIs.io.