Whisk API Reference 2.0 Shopping List 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:
User Access token with shopping_list:read
scope to to authorize the API usage. For more information, see Authentication.
Copy {
"list" : [
{
"id" : "string" ,
"name" : "string" ,
"primary" : true
}
],
"items" : [
{
"list" : {
"id" : "string" ,
"name" : "string" ,
"primary" : true
},
"item_count" : 0,
"grouped_item_count" : 0
}
]
}
Copy {
"error_code" : "REAL_CODES_ARE_IN_ENDPOINT_DESCRIPTION" ,
"message" : "Additional details about error are not static and can be changed"
}
Copy {
"code" : "auth.tokenNotFound"
}
Copy This is unexpected response, something is wrong on our side, please contact : [email protected]
Sample Request and Response
Curl Request Response
Copy curl -X GET "https://api.whisk.com/list/v2"
-H "Accept: application/json"
-H "Authorization: Bearer <YOUR-API-ACCESS-KEY>"
Whisk allows you to discover and understand its API capabilities on the Swagger interface with the ability to try out the API calls directly in your browser. You can call this endpoint here .
Copy {
"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
The list
array includes identification details of all your shopping lists.
The unique shopping list identifier.
The name of the shopping list.
Indicates if the list is primary.
items
The items
array includes the count of items in each shopping list.
The list identification details as explained above.
The total number of items in the shopping list without combining similar items.
The total number of items in the shopping list after combining similar items.