Endpoint
Query Parameters
This endpoint does not accept any query parameters.Response
Indicates if the request was successful
Object containing all filter options
Categories organized by hierarchy level
Array of main category names (sorted alphabetically)Examples: “Frutas”, “Legumes”, “Cereais”, “Laticínios”
Array of subcategory names (level 2, sorted alphabetically)Examples: “Frutas Frescas”, “Frutas Secas”, “Legumes Verdes”
Array of sub-subcategory names (level 3, sorted alphabetically)Examples: “Frutas Tropicais”, “Frutas Cítricas”
Array of available data sources (sorted alphabetically)Possible values:
nutritional_table- Official nutritional data tablesuser_contributed- User-submitted dataai_generated- AI-generated nutritional estimates
Array of FODMAP level valuesAlways returns:
["free", "low", "medium", "high"]free- FODMAP-free foodslow- Low FODMAP (safe in recommended portions)medium- Moderate FODMAP (use with caution)high- High FODMAP (avoid during elimination phase)
Examples
Get all filter options
Response Example
Usage
This endpoint is ideal for:- Initializing search filters - Build complete filter UIs with all available options
- Cascading dropdowns - Create hierarchical category selectors (Level 1 → Level 2 → Level 3)
- Filter validation - Ensure user-provided filters are valid
- Auto-complete - Populate suggestions for category search
Example: Building cascading category filters
Example: Advanced search with multiple filters
Notes
- All arrays are sorted alphabetically for consistent UI rendering
- Empty values are filtered out - only categories/sources with actual data are returned
- Category lists represent the complete taxonomy available in the database
- FODMAP levels are always returned in the same order:
["free", "low", "medium", "high"] - Use these filter options with the
/foodssearch endpoint to build powerful search interfaces - The endpoint is optimized for fast response times and can be called frequently