List Analysis

POST
/v1beta/lists/analyze

This endpoint allows you to perform analysis on Shopping List or any generic set of items

Parameters

ATTRIBUTETYPEDESCRIPTION
itemsarray [string]

Text of items to analyze.

Example: ["1 tbsp olive oil", "2 large tomatoes"]

Sample Request

curl -X POST "https://graph.whisk.com/v1beta/lists/analyze" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "Authorization: Token <Access-Token>" \ -d '{ "items": [ "200g pack smoked salmon", "2 slices sharp cheddar cheese", "1 tbsp salt and olive oil to serve" ] }'

Sample Response

{ "analyzedItems": [ { "sourceText": "200g pack smoked salmon", "normalized": "200 g smoked salmon", "analysis": { "product": "smoked salmon", "quantity": 200, "unit": "g", "category": "MEATS AND SEAFOOD" } }, { "sourceText": "2 slices sharp cheddar cheese", "normalized": "2 slices sharp cheddar cheese", "analysis": { "product": "sharp cheddar cheese", "quantity": 2, "unit": "slices", "category": "DAIRY AND EGGS" } }, { "sourceText": "1 tbsp salt and olive oil to serve", "normalized": "1 tbsp salt", "analysis": { "product": "salt", "quantity": 1, "unit": "tbsp", "category": "HERBS AND SPICES" } }, { "sourceText": "1 tbsp salt and olive oil to serve", "normalized": "olive oil", "analysis": { "product": "olive oil", "category": "CONDIMENTS" } } ] }