{"status":"success","total":2151,"results":[{"id":888140,"sku":"888140","barcode":"9300633556150","name":"Woolworths Full Cream Milk 3L","slug":"woolworths-full-cream-milk","brand":"Woolworths","price":5.15,"discount_price":5.15,"unit_price":"$1.72 / 1L","is_on_special":false,"price_info":[{"price":5.15,"discount_price":5.15,"unit_price":"$1.72 / 1L"}],"unit":"Each","size":"3L","minimum_quantity":1,"stock_status":"InStock","is_available":true,"is_purchasable":true,"image":"https://cdn0.woolworths.media/content/wowproductimages/large/888140.jpg","images":["https://cdn0.woolworths.media/content/wowproductimages/large/888140.jpg"],"url":"https://www.woolworths.com.au/shop/productdetails/888140","source_url":"https://www.woolworths.com.au/shop/productdetails/888140","category_id":"1_6E4F4E4","description":"Woolworths Full Cream Milk 3L","specifications":{"ingredients":"Pasteurised and Homogenised Full Cream Milk.","allergens":null,"storage":null,"lifestyle":"Gluten Free,Low Salt,Source of Protein,Vegetarian"},"ingredients":"Pasteurised and Homogenised Full Cream Milk.","allergens":null,"nutrition":{"Name":"Nutritional Information","Attributes":[{"Id":702,"Name":"Calcium Quantity Per 100g - Total - NIP","Value":"117.0mg","Description":"Calcium Quantity Per 100g - Total - NIP","SortOrder":71},{"Id":47,"Name":"Calcium Quantity Per Serve - Total - NIP","Value":"292.0mg","Description":"Calcium Quantity Per Serve - Total - NIP","SortOrder":75},{"Id":705,"Name":"Carbohydrate Quantity Per 100g - Total - NIP","Value":"4.8g","Description":"Carbohydrate Quantity Per 100g - Total - NIP","SortOrder":83},{"Id":706,"Name":"Carbohydrate Quantity Per Serve - Total - NIP","Value":"12.0g","Description":"Carbohydrate Quantity Per Serve - Total - NIP","SortOrder":87},{"Id":125,"Name":"Cholesterol Quantity Per Serve - Total - NIP","Value":"25.03mg","Description":"Cholesterol Quantity Per Serve - Total - NIP","SortOrder":115},{"Id":759,"Name":"Energy kJ Quantity Per 100g - Total - NIP","Value":"264.0kJ","Description":"Energy kJ Quantity Per 100g - Total - NIP","SortOrder":239},{"Id":760,"Name":"Energy kJ Quantity Per Serve - Total - NIP","Value":"660.0kJ","Description":"Energy kJ Quantity Per Serve - Total - NIP","SortOrder":243},{"Id":253,"Name":"Fat Saturated Quantity Per 100g - Total - NIP","Value":"2.2g","Description":"Fat Saturated Quantity Per 100g - Total - NIP","SortOrder":251},{"Id":258,"Name":"Fat Saturated Quantity Per Serve - Total - NIP","Value":"5.5g","Description":"Fat Saturated Quantity Per Serve - Total - NIP","SortOrder":255},{"Id":764,"Name":"Fat Total Quantity Per 100g - Total - NIP","Value":"3.4g","Description":"Fat Total Quantity Per 100g - Total - NIP","SortOrder":263},{"Id":166,"Name":"Fat Total Quantity Per 100g - ValueWord - NIP","Value":"3.4","Description":"Fat Total Quantity Per 100g - ValueWord - NIP","SortOrder":264},{"Id":264,"Name":"Fat Total Quantity Per Serve - Total - NIP","Value":"8.5g","Description":"Fat Total Quantity Per Serve - Total - NIP","SortOrder":267},{"Id":834,"Name":"Monounsaturated Quantity Per Serve - Total - NIP","Value":"2.23g","Description":"Monounsaturated Quantity Per Serve - Total - NIP","SortOrder":483},{"Id":435,"Name":"Polyunsaturated Quantity Per Serve - Total - NIP","Value":"0.23g","Description":"Polyunsaturated Quantity Per Serve - Total - NIP","SortOrder":567},{"Id":493,"Name":"Potassium Quantity Per Serve - Total - NIP","Value":"347.98mg","Description":"Potassium Quantity Per Serve - Total - NIP","SortOrder":579},{"Id":878,"Name":"Protein Quantity Per 100g - Total - NIP","Value":"3.3g","Description":"Protein Quantity Per 100g - Total - NIP","SortOrder":587},{"Id":882,"Name":"Protein Quantity Per Serve - Total - NIP","Value":"8.2g","Description":"Protein Quantity Per Serve - Total - NIP","SortOrder":591},{"Id":477,"Name":"Serving Size - Total - NIP","Value":"250.0 ML","Description":"Serving Size - Total - NIP","SortOrder":607},{"Id":544,"Name":"Servings Per Pack - Total - NIP","Value":"12.0","Description":"Servings Per Pack - Total - NIP","SortOrder":611},{"Id":491,"Name":"Sodium Quantity Per 100g - Total - NIP","Value":"44.0mg","Description":"Sodium Quantity Per 100g - Total - NIP","SortOrder":623},{"Id":495,"Name":"Sodium Quantity Per Serve - Total - NIP","Value":"110.0mg","Description":"Sodium Quantity Per Serve - Total - NIP","SortOrder":627},{"Id":908,"Name":"Sugars Quantity Per 100g - SuffixUnits - NIP","Value":"g","Description":"Sugars Quantity Per 100g - SuffixUnits - NIP","SortOrder":646},{"Id":909,"Name":"Sugars Quantity Per 100g - Total - NIP","Value":"4.8g","Description":"Sugars Quantity Per 100g - Total - NIP","SortOrder":647},{"Id":910,"Name":"Sugars Quantity Per 100g - ValueWord - NIP","Value":"4.8","Description":"Sugars Quantity Per 100g - ValueWord - NIP","SortOrder":648},{"Id":911,"Name":"Sugars Quantity Per Serve - SuffixUnits - NIP","Value":"g","Description":"Sugars Quantity Per Serve - SuffixUnits - NIP","SortOrder":650},{"Id":912,"Name":"Sugars Quantity Per Serve - Total - NIP","Value":"12.0g","Description":"Sugars Quantity Per Serve - Total - NIP","SortOrder":651},{"Id":572,"Name":"Sugars Quantity Per Serve - ValueWord - NIP","Value":"12.0","Description":"Sugars Quantity Per Serve - ValueWord - NIP","SortOrder":652},{"Id":593,"Name":"Trans Quantity Per 100g - Total - NIP","Value":"1.0g","Description":"Trans Quantity Per 100g - Total - NIP","SortOrder":667},{"Id":510,"Name":"Trans Quantity Per Serve - Total - NIP","Value":"<1g","Description":"Trans Quantity Per Serve - Total - NIP","SortOrder":671}]}},{"id":888137,"sku":"888137","barcode":"9300633556143","name":"Woolworths Full Cream Milk 2L","slug":"woolworths-full-cream-milk","brand":"Woolworths","price":3.55,"discount_price":3.55,"unit_price":"$1.78 / 1L","is_on_special":false,"price_info":[{"price":3.55,"discount_price":3.55,"unit_price":"$1.78 / 1L"}],"unit":"Each","size":"2L","minimum_quantity":1,"stock_status":"InStock","is_available":true,"is_purchasable":true,"image":"https://cdn0.woolworths.media/content/wowproductimages/large/888137.jpg","images":["https://cdn0.woolworths.media/content/wowproductimages/large/888137.jpg"],"url":"https://www.woolworths.com.au/shop/productdetails/888137","source_url":"https://www.woolworths.com.au/shop/productdetails/888137","category_id":"1_6E4F4E4","description":"Woolworths Full Cream Milk 2L","specifications":{"ingredients":"Pasteurised and Homogenised Full Cream Milk.","allergens":null,"storage":null,"lifestyle":"Gluten Free,Low Salt,Source of Protein,Vegetarian"},"ingredients":"Pasteurised and Homogenised Full Cream Milk.","allergens":null,"nutrition":{"Name":"Nutritional Information","Attributes":[{"Id":702,"Name":"Calcium Quantity Per 100g - Total - NIP","Value":"117.0mg","Description":"Calcium Quantity Per 100g - Total - NIP","SortOrder":71},{"Id":47,"Name":"Calcium Quantity Per Serve - Total - NIP","Value":"292.0mg","Description":"Calcium Quantity Per Serve - Total - NIP","SortOrder":75},{"Id":705,"Name":"Carbohydrate Quantity Per 100g - Total - NIP","Value":"4.8g","Description":"Carbohydrate Quantity Per 100g - Total - NIP","SortOrder":83},{"Id":706,"Name":"Carbohydrate Quantity Per Serve - Total - NIP","Value":"12.0g","Description":"Carbohydrate Quantity Per Serve - Total - NIP","SortOrder":87},{"Id":125,"Name":"Cholesterol Quantity Per Serve - Total - NIP","Value":"25.03mg","Description":"Cholesterol Quantity Per Serve - Total - NIP","SortOrder":115},{"Id":759,"Name":"Energy kJ Quantity Per 100g - Total - NIP","Value":"264.0kJ","Description":"Energy kJ Quantity Per 100g - Total - NIP","SortOrder":239},{"Id":760,"Name":"Energy kJ Quantity Per Serve - Total - NIP","Value":"660.0kJ","Description":"Energy kJ Quantity Per Serve - Total - NIP","SortOrder":243},{"Id":253,"Name":"Fat Saturated Quantity Per 100g - Total - NIP","Value":"2.2g","Description":"Fat Saturated Quantity Per 100g - Total - NIP","SortOrder":251},{"Id":258,"Name":"Fat Saturated Quantity Per Serve - Total - NIP","Value":"5.5g","Description":"Fat Saturated Quantity Per Serve - Total - NIP","SortOrder":255},{"Id":764,"Name":"Fat Total Quantity Per 100g - Total - NIP","Value":"3.4g","Description":"Fat Total Quantity Per 100g - Total - NIP","SortOrder":263},{"Id":166,"Name":"Fat Total Quantity Per 100g - ValueWord - NIP","Value":"3.4","Description":"Fat Total Quantity Per 100g - ValueWord - NIP","SortOrder":264},{"Id":264,"Name":"Fat Total Quantity Per Serve - Total - NIP","Value":"8.5g","Description":"Fat Total Quantity Per Serve - Total - NIP","SortOrder":267},{"Id":834,"Name":"Monounsaturated Quantity Per Serve - Total - NIP","Value":"2.23g","Description":"Monounsaturated Quantity Per Serve - Total - NIP","SortOrder":483},{"Id":435,"Name":"Polyunsaturated Quantity Per Serve - Total - NIP","Value":"0.23g","Description":"Polyunsaturated Quantity Per Serve - Total - NIP","SortOrder":567},{"Id":493,"Name":"Potassium Quantity Per Serve - Total - NIP","Value":"347.98mg","Description":"Potassium Quantity Per Serve - Total - NIP","SortOrder":579},{"Id":878,"Name":"Protein Quantity Per 100g - Total - NIP","Value":"3.3g","Description":"Protein Quantity Per 100g - Total - NIP","SortOrder":587},{"Id":882,"Name":"Protein Quantity Per Serve - Total - NIP","Value":"8.2g","Description":"Protein Quantity Per Serve - Total - NIP","SortOrder":591},{"Id":477,"Name":"Serving Size - Total - NIP","Value":"250.0 ML","Description":"Serving Size - Total - NIP","SortOrder":607},{"Id":544,"Name":"Servings Per Pack - Total - NIP","Value":"8.0","Description":"Servings Per Pack - Total - NIP","SortOrder":611},{"Id":491,"Name":"Sodium Quantity Per 100g - Total - NIP","Value":"44.0mg","Description":"Sodium Quantity Per 100g - Total - NIP","SortOrder":623},{"Id":495,"Name":"Sodium Quantity Per Serve - Total - NIP","Value":"110.0mg","Description":"Sodium Quantity Per Serve - Total - NIP","SortOrder":627},{"Id":908,"Name":"Sugars Quantity Per 100g - SuffixUnits - NIP","Value":"g"}]}}],"_note":"Response truncated for documentation purposes"}
curl --location --request GET 'https://zylalabs.com/api/12458/woolworths+grocery+api/23601/search+woolworths+products?query=milk&page=1' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 沃尔沃斯超市 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
每个终点都返回与Woolworths产品相关的结构化数据 终点“列出类别”提供类别的分类 “搜索产品”根据关键字返回产品列表 “获取产品详情”提供产品的详细信息 “探索类别”列出特定类别内的产品
关键字段根据端点而异 对于“查找产品”,预期字段包括产品名称 价格和可用性 “获取产品详情”包括字段如产品ID 描述 营养信息和过敏原 每个端点的响应结构旨在简化集成
参数根据端点而有所不同 对于“搜索产品”可以使用关键字来细化搜索 “浏览分类”可以接受类别ID来过滤结果 每个端点的文档提供了特定的参数选项以有效地自定义请求
响应数据以JSON格式组织,具有清晰的层次结构。例如“获取产品细节”返回一个包含产品属性的主对象,而“列出类别”提供一个类别列表,每个类别都有一个ID和一个名称,便于导航和使用
数据直接从沃尔沃斯的库存和产品数据库中获取,确保反映实时的可用性和产品的准确细节 定期更新保持数据的完整性和相关性,使开发者能够向用户提供最新的信息
典型的用例包括创建超市购物应用程序、餐饮计划工具和价格比较平台 开发人员可以利用API通过无缝集成产品搜索、类别导航和详细产品信息来改善用户体验
用户可以在分析JSON响应时使用返回的数据在他们的应用程序中显示产品信息例如可以创建动态产品列表按类别过滤或显示详细的产品页面提高用户参与度和决策能力
在处理部分或空结果时检查响应状态和数据字段 实施恢复机制例如在未找到结果时显示消息或建议替代搜索 这确保了即使数据有限也能提供流畅的用户体验