Additional Request Parameters
Learn the details of additional essential request parameters for some of the endpoints of the Spoonacular API.
We'll cover the following
The pagination request parameters are as follows:
Pagination Parameters
Parameter | Type | Category | Description |
| Number | Optional | The number of results to skip in the API response. Possible values: |
| Number | Optional | The number of results to include in the API response. Possible values: |
The nutrients request parameters are as follows:
Nutrients Parameters for Recipe Searches
Parameter | Type | Category | Description |
| Number | Optional | The minimum number of carbohydrates that the recipes we’re fetching should have in grams. |
| Number | Optional | The maximum number of carbohydrates that the recipes we’re fetching should have in grams. |
| Number | Optional | The minimum number of calories that the recipes we’re fetching should have. |
| Number | Optional | The maximum number of calories that the recipes we’re fetching should have. |
| Number | Optional | The minimum amount of protein that the recipes we’re fetching should have in grams. |
| Number | Optional | The maximum amount of protein that the recipes we’re fetching should have in grams. |
| Number | Optional | The minimum amount of cholesterol that the recipes we’re fetching should have in milligrams. |
| Number | Optional | The maximum amount of cholesterol that the recipes we’re fetching should have in milligrams. |
| Number | Optional | The minimum amount of fat that the recipes we’re fetching should have in grams. |
| Number | Optional | The maximum amount of fat that the recipes we’re fetching should have in grams. |
| Number | Optional | The minimum amount of alcohol that the recipes we’re fetching should have in grams. |
| Number | Optional | The minimum amount of alcohol that the recipes we’re fetching should have in grams. |
| Number | Optional | The minimum amount of caffeine that the recipes we’re fetching should have in milligrams. |
| Number | Optional | The maximum amount of caffeine that the recipes we’re fetching should have in milligrams. |
| Number | Optional | The minimum amount of saturated fat that the recipes we’re fetching should have in grams. |
| Number | Optional | The minimum amount of saturated fat that the recipes we’re fetching should have in grams. |
For nutrients, you can refer to Spoonacular’s official documentation for the recipe search and recipe search nutrients endpoints.
Additional complex parameters for the recipe search endpoint
The additional complex request parameters are as follows:
Additional Complex Parameters for the recipe search Endpoint
Parameter | Type | Category | Description |
| Boolean | Optional | The option, if set to |
| Boolean | Optional | The option, if set to |
| Boolean | Optional | The option, if set to |
| Boolean | Optional | The option, if set to |
| String | Optional | The username of the recipe’s author on Spoonacular. |
| String | Optional | The custom tags we can use to match the search results. We also need to provide the |
| Number | Optional | The identifier for the recipe box on Spoonacular, to which we want to restrict the search results. |
| String | Optional | The custom string that we can use to match against the recipe titles of the search results. We also need to provide the author parameter to use this parameter. |
| Number | Optional | The maximum time that the queried recipes should take to cook in minutes. |
| Boolean | Optional | The option, if set to |
| String | Optional | The sorting option that sorts the ingredients. |
| String | Optional | The direction in which to sort the results. To sort in ascending order, we use |