About this endpoint
What it does
Searches for food ingredients by a query string and returns a paginated JSON object containing the matching results plus paging metadata.
Query Parameter(s)
| Attribute | Type | Description |
|---|---|---|
| sort | String | Sort field to use for the search results. |
| query | String | Search term to look up ingredients. |
| number | Integer | Number of results to return. Default: 10. Minimum: 1, maximum: 100. |
| offset | Integer | Zero-based offset into the result set. Minimum: 0, maximum: 900. |
| language | ENUM | Response language. Allowed values: en, de. |
| addChildren | Boolean | Whether to include child ingredients. |
| intolerances | String | Intolerance filter to apply. |
| maxFatPercent | Number | Maximum fat percentage filter. |
| minFatPercent | Number | Minimum fat percentage filter. |
| sortDirection | String | Sort direction. |
| maxCarbsPercent | Number | Maximum carbohydrate percentage filter. |
| metaInformation | Boolean | Whether to include meta information. |
| minCarbsPercent | Number | Minimum carbohydrate percentage filter. |
| maxProteinPercent | Number | Maximum protein percentage filter. |
| minProteinPercent | Number | Minimum protein percentage filter. |
Response
Returns a JSON object with number and offset integer fields, a results array field, and a totalResults integer field. The results array contains objects with id integer, name string, and image string fields.
| Parameter | Type | Description |
|---|---|---|
| number | Integer | Number of results returned in this page. |
| offset | Integer | Offset used for this page. |
| results | Object Array | Array of ingredient result objects. Each item includes: - id integer- name string- image string |
| totalResults | Integer | Total number of matching results. |



