GET /food/products/upc/{upc}/comparable

Get Comparable Products

Find comparable products to the given one.

Request Traces

Request Headers

GET https://api.spoonacular.com/food/products/upc/{upc}/comparable
Accept: application/json

HTTP Response

HTTP 200

Success

{
   "comparableProducts":    {
      "calories":       [
         {
         },
      ],
      "likes":       [
         {
         },
      ],
      "price":       [
         {
         },
      ],
      "protein":       [
         {
            "difference": 0,
            "id": 0,
            "image": "string",
            "title": "string",
         },
      ],
      "spoonacularScore":       [
         {
            "difference": 0,
            "id": 0,
            "image": "string",
            "title": "string",
         },
      ],
      "sugar":       [
         {
         },
      ],
   },
}
HTTP 401

Unauthorized

HTTP 403

Forbidden

HTTP 404

Not Found