GET /recipes/{id}/priceBreakdownWidget.json

Price Breakdown by ID

Get a recipe's price breakdown data.

Request Traces

Request Headers

GET https://api.spoonacular.com/recipes/{id}/priceBreakdownWidget.json
Accept: application/json

HTTP Response

HTTP 200

Success

{
   "ingredients":    [
      {
         "amount":          {
            "metric":             {
               "unit": "string",
               "value": 0,
            },
            "us":             {
               "unit": "string",
               "value": 0,
            },
         },
         "image": "string",
         "name": "string",
         "price": 0,
      },
   ],
   "totalCost": 0,
   "totalCostPerServing": 0,
}
HTTP 401

Unauthorized

HTTP 403

Forbidden

HTTP 404

Not Found