food
Search foods by text. Return maximum of 20 items
get/foods/search/v2/interactive
Query parameters
qstring required
context_langstring
context_user_idnumber
context_meal_namestring
context_food_namesstring
context_addon_ofstring
context_indexstring
context_semanticboolean
context_match_strategy'standard' | 'semantic' | 'hybrid'
context_preferred_nutrition_sourcestring
Response
successful operation
Example response
{
"matches": [
{
"custom_addons": [
{
"nutrient_overrides": {
"aa_patient": {
"ontology": {
"id": 42,
"levels": [
"food"
]
}
},
"bb_reviewer": {
"ontology": {
"id": 42,
"levels": [
"food"
]
}
},
"cc_external": {
"ontology": {
"id": 42,
"levels": [
"food"
]
}
},
"dd_estimate": {
"ontology": {
"id": 42,
"levels": [
"food"
]
}
},
"ee_validation": {
"ontology": {
"id": 42,
"levels": [
"food"
]
}
}
},
"serving_unit_amount": 1,
"serving_unit_label": "gram"
}
]
}
]
}Changes
No recorded changes to this endpoint across all 15 revisions of this API.