---
title: "Generate Shopping List"
method: POST
path: "/mealplanner/{username}/shopping-list/{start-date}/{end-date}"
tags: ["meal planning"]
---

# Generate Shopping List

`POST /mealplanner/{username}/shopping-list/{start-date}/{end-date}`

## Request

- Base URL: `https://api.spoonacular.com`
- URL: `https://api.spoonacular.com/mealplanner/{username}/shopping-list/{start-date}/{end-date}`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/spoonacular/apis/spoonacular-api/docs/mealplanner/:username/shopping-list/:start-date/:end-date/post.ts> (a function with typed inputs; its response is checked against the schema)

Generate the shopping list for a user from the meal planner in a given time frame.

## Path parameters

- `username` string, required
- `start-date` string, required
- `end-date` string, required

## Query parameters

- `hash` string, required

## Request body ``

- object
  - `username` string, required: The username.
  - `start-date` string, required: The start date in the format yyyy-mm-dd.
  - `end-date` string, required: The end date in the format yyyy-mm-dd.
  - `hash` string, required: The private hash for the username.

## Response `200`

Success

- object
  - `aisles` object[], required
    - `aisle` string, required
    - `items` object[]
      - `id` integer, required
      - `name` string, required
      - `measures` object
        - `original` object, required
          - `amount` number, required
          - `unit` string, required
        - `metric` object, required
          - `amount` number, required
          - `unit` string, required
        - `us` object, required
          - `amount` number, required
          - `unit` string, required
      - `pantryItem` boolean, required
      - `aisle` string, required
      - `cost` number, required
      - `ingredientId` integer, required
  - `cost` number, required
  - `startDate` number, required
  - `endDate` number, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

## Changes

- **2026-07-13** `bc2fbe4e8981`: 5 info
  - api tag `meal planning` added
  - added the required property `aisles` to the response with the `200` status
  - added the required property `cost` to the response with the `200` status
  - added the required property `endDate` to the response with the `200` status
  - …1 more

[Operation history](https://skmtc.dev/spoonacular/apis/spoonacular-api/changes/mealplanner/:username/shopping-list/:start-date/:end-date/post.md)

---

[API](https://skmtc.dev/spoonacular/apis/spoonacular-api.md) - [All operations](https://skmtc.dev/spoonacular/apis/spoonacular-api/llms.txt) - [OpenAPI document](https://skmtc.dev/spoonacular/apis/spoonacular-api/revisions/bc2fbe4e8981?raw)
