Nutrition

Glycemic analysis of a meal photo

Send a base64-encoded photo of a meal and get back its estimated ingredients with a glycemic index per ingredient, a glycemic load computed from the matched catalog carbohydrate and fiber figures, a meal-level load and category, and concrete advice for lowering the glycemic impact. Ingredient swaps in the advice are re-costed against the catalog so the projected meal load is grounded in the same data. Pro plan and above, and the key must have accepted the glycemic data waiver (POST /foods/glycemic/waiver) or the endpoint returns 403 glycemic_waiver_required. Uses your nutrition analysis quota.

post/foods/glycemic/photo

Request

  • Base URL: https://exercise-api.ymove.app/api/v2
  • URL: https://exercise-api.ymove.app/api/v2/foods/glycemic/photo
  • Auth: one of:
    • API key in header X-API-Key
    • API key in query parameter api_key

Request body

imagestring required

Base64-encoded image of a meal (JPEG/PNG)

media_type'image/jpeg' | 'image/png' | 'image/webp' | 'image/gif'

Response

Ingredients with glycemic index and load, meal totals, and advice

Changes

No recorded changes to this operation across all 1 revision of this API.