Shopping List
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 following attributes define the core of a shopping list:
Attribute | Type | Description |
| object | It contains the shopping list name and identifier. |
| object | It contains details of the shopping list items and their related recipes. |
list
list
The list
object contains the shopping list identification details.
Attribute | Type | Description |
| string | The unique shopping list identifier. |
| string | The name of the shopping list. |
content
content
The content
object contains details of all the shopping list items and their source recipes.
Attribute | Type | Description |
| array | A list of items added to the shopping list. |
| array | A list of similar items combined to appear as a single item in the shopping list (if any). |
| array | A list of recipes that included the items added to the shopping list. |
items
items
The items
array stores information on each item that your shopping list contains.
The data structure of each list item contains the following attributes:
Attribute | Type | Description |
| string | The unique identifier of the list item. |
| object | It contains the item's reference and measurement details. |
| boolean | It indicates if the item is checked or unchecked in the shopping list. |
| string | The URL of the item's image. |
| object | Additional reference details of the item. |
| object | It contains information on the source recipe that included the item as an ingredient. |
| 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. |
| string | Date and time in Unix format indicating the item's creation date. |
| string | Date and time in Unix format indicating the time when the item was last updated. |
item
The item
object contains attributes related to the item's credentials and required quantity.
Attribute | Type | Description |
| string | The item's name. |
| array | The brand name if the item is of a specific brand. |
| boolean | Additional information attached with the item. |
| number | The item's volume or count. |
| array | The measurement unit of the item's quantity. |
analysis
The analysis
object includes additional information on the item saved in the database.
Attribute | Type | Description |
| object | It contains information on the canonical and original name of the item as stored in the Whisk database. |
| object | The name of the category to which the item belongs. |
recipe
The recipe
object stores reference of the source recipe that included the item as an ingredient when it was added to the shopping list.
Attribute | Type | Description |
| string | The source recipe's identifier. |
| number | The item's position in the recipe's ingredient list. |
combined
The combined object includes reference of the combined item in which the current item has been merged.
Attribute | Type | Description |
| string | The combined item's identifier. |
| number | The current item's volume or count added to the combined item quantity. |
combined_items
combined_items
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
recipes
The recipes array contains details of each recipe that was used a source to add items to the shopping list.
The data structure of each recipe contains the following attributes:
Attribute | Type | Description |
| string | The recipe identifier. |
| string | The full name of the recipe. |
| array | It contains details of the recipe's images. |
| object | It contains details of the recipe origins. |
Each of these recipe attributes are covered in the detail in the Recipe API Service.
Endpoints
Last updated