GET /mealplanner/{username}/week/{start-date}

Get Meal Plan Week

Retrieve a meal planned week for the given user. The username must be a spoonacular user and the hash must the the user's hash that can be found in his/her account.

Request Traces

Request Headers

GET https://api.spoonacular.com/mealplanner/{username}/week/{start-date}
Accept: application/json

HTTP Response

HTTP 200

Success

{
   "days":    [
      {
         "date": 0,
         "day": "string",
         "items":          [
            {
               "id": 0,
               "position": 0,
               "slot": 0,
               "type": "string",
               "value":                {
                  "id": 0,
                  "imageType": "string",
                  "servings": 0,
                  "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",
               },
            ],
         },
      },
   ],
}
HTTP 401

Unauthorized

HTTP 403

Forbidden

HTTP 404

Not Found