GET /food/products/upc/{upc}

Search Grocery Products by UPC

Get information about a packaged food using its UPC.

Request Traces

Request Headers

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

HTTP Response

HTTP 200

Success

{
   "badges":    [
      {
      },
   ],
   "breadcrumbs":    [
      {
      },
   ],
   "generatedText": "string",
   "id": 0,
   "imageType": "string",
   "importantBadges":    [
      {
      },
   ],
   "ingredientCount": 0,
   "ingredientList": "string",
   "ingredients":    [
      {
         "description": ,
         "name": "string",
         "safety_level": ,
      },
   ],
   "likes": 0,
   "nutrition":    {
      "caloricBreakdown":       {
         "percentCarbs": 0,
         "percentFat": 0,
         "percentProtein": 0,
      },
      "nutrients":       [
         {
            "amount": 0,
            "name": "string",
            "percentOfDailyNeeds": 0,
            "unit": "string",
         },
      ],
   },
   "price": 0,
   "servings":    {
      "number": 0,
      "size": 0,
      "unit": "string",
   },
   "spoonacularScore": 0,
   "title": "string",
}
HTTP 401

Unauthorized

HTTP 403

Forbidden

HTTP 404

Not Found