Get your Shopping Lists
This endpoint offers you the ability to read reference details of all your shopping lists that exist in your Whisk account.
Get Shopping Lists
GET https://api.studio.whisk.com/list/v2
You can use just the base URL and the authentication header to retrieve basic information of all shopping list stored in your Whisk account:
Headers
Authentication
string
User Access token with shopping_list:read scope to to authorize the API usage. For more information, see Authentication.
{
"list": [
{
"id": "string",
"name": "string",
"primary": true
}
],
"items": [
{
"list": {
"id": "string",
"name": "string",
"primary": true
},
"item_count": 0,
"grouped_item_count": 0
}
]
}{
"error_code": "REAL_CODES_ARE_IN_ENDPOINT_DESCRIPTION",
"message": "Additional details about error are not static and can be changed"
}{
"code": "auth.tokenNotFound"
}This is unexpected response, something is wrong on our side, please contact: [email protected]Sample Request and Response
curl -X GET "https://api.whisk.com/list/v2"
-H "Accept: application/json"
-H "Authorization: Bearer <YOUR-API-ACCESS-KEY>"{
"list": [
{
"id": "106e1fa4cbb7c844458be372c3e0f7bfa94",
"name": "My Secondary Shopping List"
},
{
"id": "106f9105f1d05d24ad2b833f5d2a966be77",
"name": "My Shopping List",
"primary": true
}
],
"items": [
{
"list": {
"id": "106e1fa4cbb7c844458be372c3e0f7bfa94",
"name": "My Secondary Shopping List"
},
"item_count": 21,
"grouped_item_count": 20
},
{
"list": {
"id": "106f9105f1d05d24ad2b833f5d2a966be77",
"name": "My Shopping List",
"primary": true
},
"item_count": 2,
"grouped_item_count": 2
}
]
}As shown in this example, the information that gets retrieved is generally grouped into list and items arrays.
list
listThe list array includes identification details of all your shopping lists.
Attribute
Type
Description
id
string
The unique shopping list identifier.
name
string
The name of the shopping list.
primary
boolean
Indicates if the list is primary.
items
itemsThe items array includes the count of items in each shopping list.
Attribute
Type
Description
list
array
The list identification details as explained above.
item_count
number
The total number of items in the shopping list without combining similar items.
grouped_item_count
number
The total number of items in the shopping list after combining similar items.
Last updated
Was this helpful?