4eat
4eat API is the Digital Nutritionist infrastructure for the internet. It provides you with an easy and advanced digital nutritionist that you can integrate into your service. We aim to add value to verticals related to nutrition services, so we can improve people's life through better health, which starts with better nutrition.
4eat endpoints
| Method | Endpoint | Description |
|---|---|---|
| Customer Setup | ||
| PUT |
post-setShow4eatRecipes /enable4eatRecipes |
This endpoint updates the state of 4eat recipes. We have several recipes optimized by countries that can be shown as alternatives to your users in their meals if you want to.… |
| DELETE |
get-recipe-recipeID /recipe/{recipeID} |
This endpoint will allow you to remove a recipe that you previously defined. This is useful if you want to remove a recipe from your offer or you no longer have it available. If… |
| PUT |
post-setHide4eatRecipes /disable4eatRecipes |
This endpoint updates the state of 4eat recipes, in the opposite direction than ```PUT /enable4eatRecipes```. With this endpoint you will hide our recipes so we do not show them… |
| POST |
post-addRecipe /recipe |
This endpoint allows you to create your own recipes catalog. This is a very important feature so whether you have a food delivery service where the restaurants give you their… |
| GET |
post-getCustomerSetup /setupData |
This endpoint is a generic function that provides all the relevant information for you as a customer to setup your environment. As a response, we provide the list of countries,… |
| GET |
post-getRecipes /recipes |
This endpoint will provide you a list with all the recipes that you have available as a customer. This includes our recipes, if enabled, and the recipes that you can create.… |
| User Setup | ||
| PUT |
put-user /user |
This endpoint allows you to edit any parameter for an user. Any change will be applied since then, so every meal selected from now on, or every week generated since then, will… |
| GET |
post-getDislikes /dislikes |
Displays the list of ingredients that the user can indicate as disliked. We'll remove these from his diet |
| GET |
get-user /user |
This endpoint provides you all the information of a specific user. This will be useful to present to the user specific information. To update any of those values, you need to use… |
| POST |
post-signupUser /user |
This endpoint will allow you to create a new user. You will need to define all the information to register them. This function is critical as it is needed to add a user that is… |
| GET |
post-getAllergies /allergies |
Displays the list of allergies and ingredients that the user can indicate as allergy. We'll remove these from his diet |
| User Diet Management | ||
| GET |
post-getWeek /week/{weekID} |
This method returns a previously generated week for a user. |
| GET |
get-recipeForMeal /recipeForMeal |
This method provides your users the list of available recipes for a meal. Available means that they meet the nutritional requirements for the user in that specific moment,… |
| GET |
post-getShoppingList /shoppingList |
This endpoint returns the list of ingredients and their quantities for a range of weeks, days or meals. You can select as many ranges as you need, to get the specific list of… |
| PUT |
post-changeMealsDistribution /mealsDistribution |
This method allows you to create the feature to update the meal distribution on a specific day of a selected week. This feature will only change the day selected, keeping the… |
| PUT |
post-toggleMealDone /toggleMealDone |
This endpoint allows the user to indicate if he has done this meal. By marking this, we will be able to better optimize its diet and ingredient quantities for the rest of the… |
| GET |
post-getRecipeImage /recipeImage/{recipeID}/{thumb} |
This endpoint provides you the image associated to the requested recipe from 4eat. As your recipes are defined by yourself, and only you have access to them, you will be in… |
| PUT |
post-skipMeal /skipMeal |
This method allow your users to keep blank a meal. This is relevant when you want to deselect a meal without changing the selection to other alternative. This will leave the meal… |
| POST |
post-newWeek /week |
This method generates a week for a user, a nutritional plan. This allows the user to generate a nutritional plan, empty for the manual case or filled for the automatic case,… |
| PUT |
post-setRecipeForMeal /recipeForMeal |
This endpoint allows you to select a recipe for a specific meal. Consider that you will be able to select only the meals that you have available for the meal requested, that are… |
| User Own Recipes | ||
| GET |
post-getCreateRecipeConstraints /userRecipe |
This endpoint returns the constraints for creating an user-specific recipe for a certain meal. |
| DELETE |
delete-userRecipe /userRecipe/{recipeID} |
This method allow your users to remove a recipe that they have created previously. Recipes created by your users are only available for themselves, so this will impact only their… |
| POST |
post-userRecipe /userRecipe |
This method allow your users to create their own healthy recipes and these recipes will only be available for them. This feature will allow your users to create their own recipes… |
4eat pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|