-
Notifications
You must be signed in to change notification settings - Fork 1
Home
AJ Hsu edited this page Nov 7, 2016
·
3 revisions
curl \
-H "User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1" \
"http://www.uniqlo.com/tw/spa-cms/content/tw/zh/global/template.json"
- 部分 API 似乎會判斷 User-agent string 必須要來自行動裝置才會回覆。
Item 178772, for example
- http://www.uniqlo.com/tw/spa-catalog/products/byslug/178772
- http://www.uniqlo.com/tw/store/ApiGetProductInfo.do?format=json&product=178772
- http://www.uniqlo.com/tw/spa-catalog/products?id%5B%5D=178772&order=asc&page=1&sort=default
庫存查詢
店舖列表
- http://store.fastretailing.com/api/tw/uniqlo/200/getStoreList.json?limit=10&r=storelocator&area1_code=1
- http://store.fastretailing.com/api/tw/uniqlo/200/getStoreList.json?limit=10&r=storelocator&area1_code=2
- http://store.fastretailing.com/api/tw/uniqlo/200/getStoreList.json?limit=10&r=storelocator&area1_code=3 ...
- http://store.fastretailing.com/api/tw/uniqlo/200/getStoreList.json?limit=10&r=storelocator&area1_code=22
Input -> Item Id (178772)
Output -> Organized by stores
[
{
store_id,
stock_status: {
xs: {
available_colors: []
},
s: {
available_colors: [black, navy]
},
m: {
available_colors: [navy]
},
l,
xl
}
}
]
- alssndro/uniqlo-stock-checker: 直接把庫存寫成可以打的 API
- nake12/uniqlostockchecker: 定期刷新固定單品的庫存,一但有庫存就會寄信通知