šŸ”“ Get dish recommendation for an APIUser. ā±ā­

Ā© Consumes your monthly credits. Limited amount of monthly calls, exceeding calls will be charged as extras.

(S) Limited amount of calls per second.

Ā 

This endpoint returns a list of dish ids as a recommendation after analysing the APIUser's intakes over the last days. The returned dishes belong to the LogMeal database, see endpoint '/v2/dataset/dishes'.

Ā 

The recommendation process first analyses the nutritional information of the APIUser's intakes over the last days and calculates a measurement named 'Variety Score'. For more information about this score, check endpoint '/v2/score/variety'. After this step, a list of food groups is calculated that should optimize this score and finally optimal dishes belonging to these food groups are recommended as the final output.

Ā 

Read the specification of the response body to see the available fields with their descriptions.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
enum
required

The nutritional scoring method that needs to be considered along with the food groups variety aspect for the final score. Currently available type is "Nutri-Score". if not provided, the final score will only consider the food group varieties. If choosing "None" then only the variety of the consumed dishes will be considered for generating recommendations.

Allowed:
string

Start date of the period of time for which the user data needs to be considered for the recommendation, following the format "YYYY-MM-DD". If this parameter is not provided, then a default value of 10 days to the past will be used.

string

Occasion for which the dishes need to be recommended. Possible values are "breakfast", "lunch", "dinner" or "snack". If not provided, all available occasions in the database are used.

foodGroups
array of integers

Food group ids used for variety score analysis for optimal recommendation. If this parameter is not provided, a pre fixed list of food groups for the given occasion is used. If occasion is not provided, all available food groups in the database are used. If 'occasion' is provided a subset of food groups usually consumed for the selected occasion will be used instead. Available food groups in the LogMeal database can be queried by the endpoint '/v2/dataset/foodgroups'.

foodGroups
Responses

401

Unauthorized, invalid token

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json