Endpoint
Query Parameters
Text search query to match food names (case-insensitive, partial matching supported)Constraints: 1-100 charactersExample:
search=alho matches “Alho”, “Alho-poró”, etc.Filter by FODMAP levelAllowed values:
free, low, medium, high, allExample: level=low returns only low-FODMAP foodsFilter by category level 1 (main category)Constraints: 1-100 charactersExample:
category=FrutasFilter by category level 2 (subcategory)Constraints: 1-200 charactersExample:
category2=Frutas FrescasFilter by category level 3 (sub-subcategory)Constraints: 1-200 charactersExample:
category3=Frutas TropicaisFilter by whether food has FODMAP informationAllowed values:
true, falseExample: hasFodmap=true returns only foods with FODMAP dataFilter by whether food has nutritional informationAllowed values:
true, falseExample: hasNutrition=true returns only foods with nutrition dataFilter by data sourceConstraints: 1-50 charactersAllowed values:
nutritional_table, user_contributed, ai_generatedField to sort results byAllowed values:
name, energy, protein, carbs, fatSort directionAllowed values:
asc, descPage number for paginationConstraints: Must be >= 1
Number of results per pageConstraints: 1-100Default: 50
Response
Indicates if the request was successful
Array of food objects matching the search criteria
Unique numeric food identifier
Food name
Data source:
nutritional_table, user_contributed, or ai_generatedMain category (e.g., “Frutas”, “Legumes”)
Subcategory (level 2)
Sub-subcategory (level 3)
URL to food image (if available)
FODMAP information (if available)
FODMAP level:
free, low, medium, or highPortion-specific notes (e.g., “1/2 cup”)
Additional FODMAP notes
Nutritional information (if available)
Energy in kilocalories
Energy in kilojoules
Reference portion (typically “100g”)
Macronutrient values
Protein in grams
Carbohydrates in grams
Fats (lipids) in grams
Fiber in grams
Sugars in grams
Salt in grams
Saturated fatty acids in grams
Cholesterol in milligrams
Vitamin content (key-value pairs)
Mineral content (key-value pairs)
Number of times this food has been searched
ISO 8601 timestamp when the food was created
ISO 8601 timestamp when the food was last updated
Examples
Search for low-FODMAP fruits
Search by name with nutrition filter
Get foods sorted by protein content
Advanced filtering
Response Example
Notes
- The search parameter uses case-insensitive partial matching (e.g., “alh” matches “alho”, “alface”)
- Multiple filters can be combined for precise queries
- Pagination limit is capped at 100 items per page
- Foods without FODMAP or nutrition data will have those fields as
null - Search count is incremented when foods are retrieved by ID (analytics)