Upload
brook-yang
View
1.824
Download
14
Tags:
Embed Size (px)
DESCRIPTION
for 2013 Taiwan open hackday
Citation preview
Ta iwan Ecommerce Open API
P R E S E N T E D B Y B r o o k Y a n g D e c 1 2 , 2 0 1 4⎪
Who am I?
Lead Engineer 7 years at Yahoo! Ecommerce Central Search
3 Yahoo Confidential & Proprietary
Mobile Applications powered by Open APIs
4 Yahoo Confidential & Proprietary
5 Yahoo Confidential & Proprietary
Agenda
YQL EC Recommendation API EC Search API
YQLYahoo Query Language
YQL
Expressive SQL-like language Query/filter and join data across web services JSON/XML YQL console
http: / /developer.yahoo.com/yql /console/
Recommendat ion API
提供最相關的商品推薦發現你不曾想像的關係
13 Yahoo Confidential & Proprietary
14 Yahoo Confidential & Proprietary
15 Yahoo Confidential & Proprietary
16 Yahoo Confidential & Proprietary
LYRE = Light Yahoo R12n Engine
18 Yahoo Confidential & Proprietary
19 Yahoo Confidential & Proprietary
"property": "shopping", "id": "4530097", "priceTag": "13900", "title": "HTC One mini 4.3 吋 雙核心 極致輕巧 智慧機 ", "desc": "BoomSound 前置雙喇叭 <br>1.4GHz 雙核心處理器 <br>UltraPixel 感光元件 BSI 相機 <br> Video Highlight", "link": "http://tw.buy.yahoo.com/gdsale/gdsale.asp?gdid=4530097", "soldout": "false", "imageLinks": { "large": "http://tw.m.yimg.com/res/gdsale/st_pic/4530/st-4530097-s400.jpg", "medium": "http://tw.m.yimg.com/res/gdsale/st_pic/4530/st-4530097-s200.jpg", "small": "http://tw.m.yimg.com/res/gdsale/st_pic/4530/st-4530097-s60.jpg" }, "imageLinksInfo": { "large": { "url": "http://tw.m.yimg.com/res/gdsale/st_pic/4530/st-4530097-s400.jpg", "width": "400", "height": "400" }, "extension": { "catchPhrase": " 搶購 ", "pricePhrase": "<span class=\"shpdollar\">$</span><span class=\"shpprice\">13900</span><span class=\"shpdollarunit\"> 元 </span>", "zone": "4", "sub": "430", "cat": "6850", "gddelv": [ "1", "2" ], "productid": "11309886", "producttype": "General", "domain": [ "0", "1", "2" ], "adult": "false" }
21 Yahoo Confidential & Proprietary
Parameters for Lyre-item
SELECT * FROM yahoo.taiwan.lyre-item WHERE prop="shopping" AND cid="3459176" AND model="vv”
prop = [shopping | store | auction ] cid = content ID = product ID model = [ vv | bb | vb ]
22 Yahoo Confidential & Proprietary
Content ID
Shopping› http://tw.buy.yahoo.com/gdsale/gdsale.asp?gdid=2701035
Store› http://tw.page.mall.yahoo.com/item/p078625196595
Auction› http://tw.page.bid.yahoo.com/tw/auction/f56053034
23 Yahoo Confidential & Proprietary
Model Type
• vv = viewed also viewed
• 相似性高
• bb = bought also bought
• 互補性高 , 配件
• vb = bought after viewed
• 相關性高
EC Search API
25 Yahoo Confidential & Proprietary
Request ParametersParam Name Required Description Values
keyword Y words to search for any text
minprice N the minimum price for the returned items any number
maxprice N the max price for the returned items any number
sortBy N sorting order "curprice" ( 目前出價 ) , "buyprice"( 直購價 ),
"bidcnt"( 出價次, auction only) ,
"starttime"( 刊登時間 ),
"endtime" ( 結束時間 )
sortOrder N sorting criteria descending, if not specified"asc" for ascending
property N restrict the search on particular properties "auction", "store", "splus", "shopping". default: search all properties
Response Data
Response Data
EC Property• 2 - From Service Plus ( 服務家 )
• 3 - From Super Mall ( 超級商城 )
• 4 - From Auction ( 拍賣 )
• 5 - From Shopping ( 購物中心 )
Response Data EC Options
• c2cpayment 付款方式 : 輕鬆付• c2ccreditcard 輕鬆付可刷卡• c2cfamiport family mart port 超商付
款• c2cfamicvs 付款方式 : 全家取貨• c2c711cvs 付款方式 : 7-11 取貨• shippingoversea 跨國寄送• fixprice 固定價• premiumseller 人氣賣家商品• storeitem 賣家有加入拍賣商店• newitem 全新商品• onecentitem 一元起商品
• shippingface2face 面交• freeshipping 免運費• installment 分期付款• verifyuser 安心賣家 / 優良商店
Q & A
http: / /www.sl ideshare.net/brookyang/
Thank Youb r o o k @ y a h o o - i n c . c o m