ショッピングAPI ~商品検索API~
appid affiliate_type affiliate_id callback query type jan isbn image_size category_id product_id person_id brand_id store_id price_from price_to affiliate_from affiliate_to hits
offset sort module availability discount shipping payment license salestart_from salestart_to saleend_from saleend_from saleend_to exp_area exp_deadline_from exp_deadline_to same_day_area same_day_deadline_from same_day_deadline_to
/ResultSet /ResultSet/Result/Query /ResultSet/Result/Modules/PriceRanges/Price/Range/From /ResultSet/Result/Modules/PriceRanges/Price/Range/To /ResultSet/Result/Modules/PriceRanges/Price/Range/Hits /ResultSet/Result/Modules/Subcategories/Path/Category/Id /ResultSet/Result/Modules/Subcategories/Path/Category/Name /ResultSet/Result/Modules/Subcategories/Children/Child/Id /ResultSet/Result/Modules/Subcategories/Children/Child/Name /ResultSet/Result/Modules/Subcategories/Children/Child/Hits /ResultSet/Result/Hit /ResultSet/Result/Hit/Name /ResultSet/Result/Hit/Description /ResultSet/Result/Hit/Headline /ResultSet/Result/Hit/Url /ResultSet/Result/Hit/Availability /ResultSet/Result/Hit/Code /ResultSet/Result/Hit/PersonId /ResultSet/Result/Hit/ProductId /ResultSet/Result/Hit/Image/Id /ResultSet/Result/Hit/Image/Small /ResultSet/Result/Hit/Image/Medium /ResultSet/Result/Hit/ExImage/Url /ResultSet/Result/Hit/ExImage/Width /ResultSet/Result/Hit/ExImage/Height /ResultSet/Result/Hit/Review/Rate /ResultSet/Result/Hit/Review/Count /ResultSet/Result/Hit/Review/Url /ResultSet/Result/Hit/Affiliate/Rate /ResultSet/Result/Hit/Price /ResultSet/Result/Hit/PriceLabel /ResultSet/Result/Hit/PriceLabel/FixedPrice /ResultSet/Result/Hit/PriceLabel/DefaultPrice /ResultSet/Result/Hit/PriceLabel/SalePrice /ResultSet/Result/Hit/PriceLabel/PeriodStart /ResultSet/Result/Hit/PriceLabel/PeriodEnd /ResultSet/Result/Hit/Point/Amount /ResultSet/Result/Hit/Point/Times /ResultSet/Result/Hit/Shipping/Code /ResultSet/Result/Hit/Shipping/Name
/ResultSet/Result/Hit/Category/Current/Id /ResultSet/Result/Hit/Category/Current/Name /ResultSet/Result/Hit/CategoryIdPath/Category/Id /ResultSet/Result/Hit/Brands/Name /ResultSet/Result/Hit/Brands/Path/Brand/Id /ResultSet/Result/Hit/JanCode /ResultSet/Result/Hit/Model /ResultSet/Result/Hit/IsbnCode /ResultSet/Result/Hit/Store/Id /ResultSet/Result/Hit/Store/Name /ResultSet/Result/Hit/Store/Url /ResultSet/Result/Hit/Store/Payment/Method /ResultSet/Result/Hit/Store/Payment/Method/Code /ResultSet/Result/Hit/Store/Payment/Method/Name /ResultSet/Result/Hit/Store/IsBestStore /ResultSet/Result/Hit/Store/Ratings/Rate /ResultSet/Result/Hit/Store/Ratings/Count /ResultSet/Result/Hit/Store/Image/Id /ResultSet/Result/Hit/Store/Image/Medium /ResultSet/Result/Hit/Store/SameDayDelivery /ResultSet/Result/Hit/Store/SameDayDelivery/Areas/Area /ResultSet/Result/Hit/Store/SameDayDelivery/Areas/Area/Code /ResultSet/Result/Hit/Store/SameDayDelivery/Areas/Area/Name /ResultSet/Result/Hit/Store/SameDayDelivery/Areas/Area/Prefectures /ResultSet/Result/Hit/Store/SameDayDelivery/Areas/Area/Prefectures/Prefecture/Code /ResultSet/Result/Hit/Store/SameDayDelivery/Areas/Area/Prefectures/Prefecture/Name /ResultSet/Result/Hit/Store/SameDayDelivery/Deadline /ResultSet/Result/Hit/Store/SameDayDelivery/Conditions /ResultSet/Result/Hit/Store/ExpressDelivery /ResultSet/Result/Hit/Store/ExpressDelivery/Areas /ResultSet/Result/Hit/Store/ExpressDelivery/Areas/Area/Code /ResultSet/Result/Hit/Store/ExpressDelivery/Areas/Area/Name /ResultSet/Result/Hit/Store/ExpressDelivery/Areas/Area/Prefectures /ResultSet/Result/Hit/Store/ExpressDelivery/Areas/Area/Prefectures/Prefecture/Code /ResultSet/Result/Hit/Store/ExpressDelivery/Areas/Area/Prefectures/Prefecture/Name /ResultSet/Result/Hit/Store/ExpressDelivery/Deadline /ResultSet/Result/Hit/Store/ExpressDelivery/Conditions
38 77
ショッピングAPI ~すごくカンタンなほう~
• コンテンツマッチアイテムAPI • コンテンツマッチランキングAPI
www.sofmap.com
<RankingData rank="1" vector="stay" type="item"> <Name>CASIO EX-N10BK デジタルカメラ EXILIM EX-N10 ブラック</Name> ... <Rate>4.50</Rate> <Count>10</Count> ... <RankingData rank="2" vector="up" type="item"> <Name> 【在庫あり】富士フィルム チェキ用フィルム instax mini 5パック品 CN5(50枚入り)×2個セット [100枚入] </Name> ... <Rate>4.50</Rate> <Count>5</Count> ... <RankingData rank="3" vector="up" type="item"> <Name> 【あすつく】 ケンコー 水準器付三脚&カメラバッグ&クリーニングキットセット DVC-0302 </Name> ... <Rate>4.00</Rate> <Count>2</Count> ...
サービス創ったら、マネタイズ$
• Yahoo! アフィリエイト • Yahoo! JAPAN ID ですぐに始められる
• バリューコマースアフィリエイト
• 分析ツールなどが豊富
http://developer.yahoo.co.jp/appendix/shopping/affiliate.html
オークションの管理 オークションを探す
オークションの詳細
入札履歴API
すべての入札履歴API
Q&A取得API
評価API
出品リストAPI
商品リストAPI
カテゴリ情報API
検索API
ウォッチリストリマインダー解除API
ウォッチリストリマインダー設定API
ウォッチリスト・終了分API
ウォッチリスト・開催中API
ウォッチリスト削除
API
ウォッチリスト追加
API
マイ値下げ交渉削除API
マイ値下げ交渉表示API
マイ落札分削除
API
マイ落札分API
マイ入札中API
マイ出品終了分削除API
マイ落札者一覧
API
マイ出品終了分
API
マイ出品中API
オークションAPI一覧
http://developer.yahoo.co.jp/webapi/auctions/
商品詳細API
オークションAPIの使い方例
http://auctions.yahooapis.jp/AuctionWebService/V2/search? appid=xxxxxxxxx&query=liverpool %20fc
Query
API call
Response
API3分クッキング
JSONP
•HTML1行 JavaScript不要
•テンプレートエンジン内包 mustache.jsを利用してHTML作成
•MITライセンス https://github.com/ydnjp/bakusoku-jsonp
爆速JSONPを使う
HTML1行 <!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"/> <title>爆速JSONP</title> </head> <body> <script src="http://i.yimg.jp/images/yjdn/js/bakusoku-jsonp-v1.js" data-url="http://shopping.yahooapis.jp/ShoppingWebService/V1/json/itemSearch" data-p-appid="<YOUR_APPLICATION_ID>" data-p-query="vaio" > 1つ目の商品は「 {{ResultSet.0.Result.0.Name}} 」です!</script> </body> </html>
ここでは商品名だけを取得しています 空タグで全ての結果が得られます「~ ></script>」 詳しくはYahoo! JAPAN TechBlogでどうぞ()
わんもあしんぐ:爆速JSONPが使えない時
そんな貴方に
YQL 詳しくはYahoo! JAPAN TechBlogでどうぞ
「自分の使いたいAPIはJSONP非対応なんですけど・・・」
まとめ
•Yahoo! ショッピング 商品検索API / コンテンツマッチ / アフィリエイト
•ヤフオク! ヤフオク!とは / オークションAPI の使い方
•API3分クッキング 爆速JSONP
... の3本でお贈りいたしました
本日は