GET /mealplanner/{username}/templates/{id}

Get Meal Plan Template

Get information about a meal plan template.

Request Traces

Request Headers

GET https://api.spoonacular.com/mealplanner/{username}/templates/{id}
Accept: application/json

HTTP Response

HTTP 200

Success

{
   "days":    [
      {
         "day": "string",
         "items":          [
            {
               "id": 0,
               "position": 0,
               "slot": 0,
               "type": "string",
               "value":                {
                  "id": 0,
                  "imageType": "string",
                  "title": "string",
               },
            },
         ],
         "nutritionSummary":          {
            "nutrients":             [
               {
                  "amount": 0,
                  "name": "string",
                  "percentDailyNeeds": 0,
                  "unit": "string",
               },
            ],
         },
         "nutritionSummaryBreakfast":          {
            "nutrients":             [
               {
                  "amount": 0,
                  "name": "string",
                  "percentDailyNeeds": 0,
                  "unit": "string",
               },
            ],
         },
         "nutritionSummaryDinner":          {
            "nutrients":             [
               {
                  "amount": 0,
                  "name": "string",
                  "percentDailyNeeds": 0,
                  "unit": "string",
               },
            ],
         },
         "nutritionSummaryLunch":          {
            "nutrients":             [
               {
                  "amount": 0,
                  "name": "string",
                  "percentDailyNeeds": 0,
                  "unit": "string",
               },
            ],
         },
      },
   ],
   "id": 0,
   "name": "string",
}
HTTP 401

Unauthorized

HTTP 403

Forbidden

HTTP 404

Not Found