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 | Mandatory | Description |
|---|---|---|---|
| sort | String | No | Sort field to use for the search results. |
| query | String | Yes | Search term to look up ingredients. |
| number | Integer | No | Number of results to return. Default: 10. Minimum: 1, maximum: 100. |
| offset | Integer | No | Zero-based offset into the result set. Minimum: 0, maximum: 900. |
| language | ENUM | No | Response language. Allowed values: en, de. |
| addChildren | Boolean | No | Whether to include child ingredients. |
| intolerances | String | No | Intolerance filter to apply. |
| maxFatPercent | Number | No | Maximum fat percentage filter. |
| minFatPercent | Number | No | Minimum fat percentage filter. |
| sortDirection | String | No | Sort direction. |
| maxCarbsPercent | Number | No | Maximum carbohydrate percentage filter. |
| metaInformation | Boolean | No | Whether to include meta information. |
| minCarbsPercent | Number | No | Minimum carbohydrate percentage filter. |
| maxProteinPercent | Number | No | Maximum protein percentage filter. |
| minProteinPercent | Number | No | 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 | Mandatory | Description |
|---|---|---|---|
| number | Integer | Yes | Number of results returned in this page. |
| offset | Integer | Yes | Offset used for this page. |
| results | Object Array | Yes | Array of ingredient result objects. Each item includes: - id integer- name string- image string |
| totalResults | Integer | Yes | Total number of matching results. |



