Search foods by name

Search foods the way a food-diary user types them. Results mix two catalogs: generic foods ("banana", "whole milk"), which are what a diary entry usually refers to, and packaged products from the Tuduu master catalog. Generic foods rank first. Each result already carries its macronutrients per 100 g and its portion, so listing a search result needs no follow-up call. Matching tolerates accents, singular/plural and extra modifiers: "caffè zuccherato" returns coffee rather than an empty list. Only foods with known calories are returned, and packaged results are restricted to edible categories. Italian only: this endpoint answers 406 for any other Accept-Language, because generic food names exist in Italian alone.

POST
/foods/search
Foods
Cost: 20 credits

Request

application/json
object

FoodSearchRequest

object

searchText

Free-text food name to search for, as a diary user would type it

string

page

Zero-based page number

integer<int32> | null

size?

Number of items per page

integer<int32>