Recipe recommendations for SH
A method to fetch a set of recipes supporting a certain calorie goal
To provide diversity across recommended recipes result is shuffled for every request.
We return recipes with calories per serving matching the range from 85% to 120% from requested
Recommended integration flow is below. Let us know if it's not possible
Get Healthy Recipes
GET
https://samsung-health-api.whisk.com/health/recipe/v2/search?
Path Parameters
Name | Type | Description |
---|---|---|
meal_time* | string | Meal time for which to recommend recipes. One of |
calories* | number | Calorie target for selected meal, kcal |
language | string | ISO 639-1 two letter language code. We return certain text fields localized. We do not perform mapping country to language. Client should select and pass language explicitly. The list of supported languages will be communicated separately. Default |
country | string | ISO 3166-1 two letter country code. We may boost certain meals depending on user's country. The list of supported countries will be communicated separately. Default |
limit* | number | Number of recipes to be returned. Max 20 |
response_mask* | string[] | The list of recipe fields which should be returned. We return .explicitly requested fields only to save users' traffic. Possible values are |
https://api.whisk.com/spec/#/HealthyRecipeAPI/HealthyRecipeAPI_Search
Sample Request
The example below requests five Breakfast options around 400 kcal in English language. All fields are requested.
Response
Data returned in JSON. Empty strings, zero values, empty arrays and null values are not returned.
Json response example with the proper response_mask.paths specified
Core attributes
Name | Type | Description |
---|---|---|
recipes | array | top-level container object |
recipes.id | string | unique recipe identifier across Samsung Food |
recipes.title | string | recipe title |
recipes.nutrition | object | container object |
recipes.nutrition.nutrition | array | container array |
recipes.nutrition.nutrition.amount | number | amount for a certain nutrient per 1 recipe serving |
recipes.nutrition.nutrition.unit_name | string | nutrient unit name, depends on the nutrient. One of |
recipes.nutrition.nutrition.code | string | nutrient code. The following nutrients are supported: NUTRITION_CODE_ENERC_KCAL: Energy, NUTRITION_CODE_FAT: Total Fat, NUTRITION_CODE_FASAT: Saturated Fat, NUTRITION_CODE_CHOCDF: Carbohydrate Total, NUTRITION_CODE_SUGAR: Sugars, NUTRITION_CODE_PROCNT: Protein, NUTRITION_CODE_NA: Sodium, NUTRITION_CODE_FIBTG: Fiber, NUTRITION_CODE_FATRN: Trans Fat, NUTRITION_CODE_FAMS: Monounsaturated Fat, NUTRITION_CODE_FAPU: Polyunsaturated Fat, NUTRITION_CODE_FAT_UNSAT: Unsaturated Fat, NUTRITION_CODE_CHOLE: Cholesterol, NUTRITION_CODE_CA: Calcium, NUTRITION_CODE_MG: Magnesium, NUTRITION_CODE_K: Potassium, NUTRITION_CODE_FE: Iron, NUTRITION_CODE_ZN: Zinc, NUTRITION_CODE_P: Phosphorus, NUTRITION_CODE_VITA_RAE: Vitamin A, NUTRITION_CODE_VITC: Vitamin C, NUTRITION_CODE_THIA: Thiamin B1, NUTRITION_CODE_RIBF: Riboflavin B2, NUTRITION_CODE_NIA: Niacin B3, NUTRITION_CODE_VITB6A: Vitamin B6, NUTRITION_CODE_FOL: Folic Acid B9, NUTRITION_CODE_VITB12: Vitamin B12, NUTRITION_CODE_VITD: Vitamin D, NUTRITION_CODE_TOCPHA: Vitamin E, NUTRITION_CODE_VITK1: Vitamin K |
recipes.image | object | container object |
recipes.image.url | string | Image url leading to Samsung Food CDN |
recipes.recipe_link | array | A link to the recipe on Samsung Food |
recipes.number_of_servings | array | Default number of serving for the recipe |
Last updated