GET /food/images/analyze

Image Analysis by URL

Analyze a food image. The API tries to classify the image, guess the nutrition, and find a matching recipes.

Request Traces

Request Headers

GET https://api.spoonacular.com/food/images/analyze
Accept: application/json

HTTP Response

HTTP 200

Success

{
   "category":    {
      "name": "string",
      "probability": 0,
   },
   "nutrition":    {
      "calories":       {
         "confidenceRange95Percent":          {
            "max": 0,
            "min": 0,
         },
         "standardDeviation": 0,
         "unit": "string",
         "value": 0,
      },
      "carbs":       {
         "confidenceRange95Percent":          {
            "max": 0,
            "min": 0,
         },
         "standardDeviation": 0,
         "unit": "string",
         "value": 0,
      },
      "fat":       {
         "confidenceRange95Percent":          {
            "max": 0,
            "min": 0,
         },
         "standardDeviation": 0,
         "unit": "string",
         "value": 0,
      },
      "protein":       {
         "confidenceRange95Percent":          {
            "max": 0,
            "min": 0,
         },
         "standardDeviation": 0,
         "unit": "string",
         "value": 0,
      },
      "recipesUsed": 0,
   },
   "recipes":    [
      {
         "id": 0,
         "imageType": "string",
         "title": "string",
         "url": "string",
      },
   ],
}
HTTP 401

Unauthorized

HTTP 403

Forbidden

HTTP 404

Not Found