šŸ”“ Get Variety Score for a provided time period and an occasion (optional). ā±

(S) Limited amount of calls per second.

Ā 

This endpoint returns the information about the 'Variety Score' for a duration of time and occasion (if provided) based on the APIUser's food intake over that time.

Ā 

The 'Variety Score' is a method of intake analysis for a measurement of how varied a user's diet is. This score considers two main aspects of the user diet. First one is the variety element (e.g. how many different types of food groups the user diet has covered) and the second one is the nutritional scoring of dishes belonging to these food groups. The nutritional scoring is optional and only considered on user requests. The more varied the diet for certain user is, the higher this score will be. If the nutritional scoring is considered, it works as a weighing term for the variety of food groups consumed. The range of the value for the variety score is between 0-100 with 100 being the best score possible.

Ā 

For more information about the Nutri-Score visit this link

Ā 

Our customized 'Variety Score' is also inspired by the 'Dietary Variety Score' that was proposed and clinically tested in this scientific study: Drewnowski A, Renderson SA, Driscoll A, Rolls BJ. The Dietary Variety Score: assessing diet quality in healthy young and older adults. Journal of the American Dietetic Association. 1997 Mar 1;97(3):266-71.

Ā 

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
required

Start date of the period of time for which the user data needs to be considered for the score calculation, following the format "YYYY-MM-DD"

string
required

Finish date of the period of time for which the user data needs to be considered for the score calculation, following the format "YYYY-MM-DD"

string

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

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:
foodGroups
array of integers

Food group ids used for variety score calculation. If 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 found in 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