The Shopping List API service offers you the ability to read and write your shopping list data.
Let's first understand the Shopping List object and its data structure before looking at its endpoints’ description.
Shopping List Object
A Shopping List object is a collection of arrays and child-objects that defines its data structure.
This is how the data structure of a shopping list looks in JSON format:
The combined_items array includes detailed information of each combined item that exists in the shopping list as a result of merging similar items. A combined item's data structure is identical to the data structure of its original item. However, the quantity attribute inside the item array stores a cumulative quantity of all merged items.
recipes
The recipes array contains details of each recipe that was used a source to add items to the shopping list.
It contains the shopping list name and identifier.
content
object
It contains details of the shopping list items and their related recipes.
Attribute
Type
Description
id
string
The unique shopping list identifier.
name
string
The name of the shopping list.
Attribute
Type
Description
items
array
A list of items added to the shopping list.
combined_items
array
A list of similar items combined to appear as a single item in the shopping list (if any).
recipes
array
A list of recipes that included the items added to the shopping list.
Attribute
Type
Description
id
string
The unique identifier of the list item.
item
object
It contains the item's reference and measurement details.
checked
boolean
It indicates if the item is checked or unchecked in the shopping list.
image_url
string
The URL of the item's image.
analysis
object
Additional reference details of the item.
recipe
object
It contains information on the source recipe that included the item as an ingredient.
combined
object
If the current item is merged with similar items in the shopping list, this array contains information on the resulted combined item in the shopping list.
created_time
string
Date and time in Unix format indicating the item's creation date.
updated_at
string
Date and time in Unix format indicating the time when the item was last updated.
Attribute
Type
Description
name
string
The item's name.
brand
array
The brand name if the item is of a specific brand.
comment
boolean
Additional information attached with the item.
quantity
number
The item's volume or count.
unit
array
The measurement unit of the item's quantity.
Attribute
Type
Description
product
object
It contains information on the canonical and original name of the item as stored in the Whisk database.
category
object
The name of the category to which the item belongs.
Attribute
Type
Description
recipe_id
string
The source recipe's identifier.
position
number
The item's position in the recipe's ingredient list.
Attribute
Type
Description
combined_item_id
string
The combined item's identifier.
quantity
number
The current item's volume or count added to the combined item quantity.