Endpoint
Query Parameters
This endpoint does not accept any query parameters.Response
Indicates if the request was successful
Array of category names (strings) sorted alphabeticallyCategories represent the top-level classification of foods such as:
- Frutas (Fruits)
- Legumes (Vegetables)
- Cereais (Grains)
- Laticínios (Dairy)
- Carnes (Meats)
- Peixes (Fish)
- And more…
Examples
Get all categories
Response Example
Usage
This endpoint is commonly used to:- Populate category dropdowns in search interfaces
- Build filter menus for food browsing
- Validate category input before making search requests
- Display category statistics in dashboards
Example: Building a category filter
Notes
- Categories are returned in alphabetical order (Portuguese locale)
- The list includes only categories that have at least one food item
- Category names are in Portuguese
- Use the
categoryquery parameter in the/foodsendpoint to filter by these categories - For more granular filtering, use
category2andcategory3parameters in the search endpoint