商品カテゴリーの指定(SearchIndex)

広告

商品カテゴリーは検索対象となる商品カテゴリーを指定します。書式は次の通りです。

SearchIndex=<商品カテゴリー>

パラメータ名として「SearchIndex」を使います。商品カテゴリーとはAmazon.co.jpをブラウザで見た時に表示される下記の部分のことで、例えば「本」や「ミュージック」などとなります。

商品カテゴリー(SearchIndex)

指定できる値は地域によって異なり日本の場合には次の通りです。

指定する値カテゴリー指定可能パラメータ
All全てKeywords
ApparelアパレルAuthor, Availability, Brand, BrowseNode, Condition, Count, DeliveryMethod, Format, ISPUPostalCode, ItemPage, Keywords, Magazines, Manufacturer, MerchantId, Performer, PostalCode, Sort, State, Title
Babyベビー&マタニティBrand, BrowseNode, Condition, ItemPage, Keywords, Manufacturer, MaximumPrice, MerchantId, MinimumPrice, Sort, State, Title
BeautyコスメBrand, BrowseNode, Condition, ItemPage, Keywords, Manufacturer, MaximumPrice, MerchantId, MinimumPrice, Sort, Title
Blended全てKeywords
Books本(和書)Author, BrowseNode, Condition, ItemPage, Keywords, MaximumPrice, MerchantId, MinimumPrice, Power, Publisher, Sort, Title
Classicalクラシック音楽Actor, Availability, BrowseNode, Composer, Conductor, Count, Format, ItemPage, Keywords, Magazines, MusicLabel, Orchestra, Performer, PostalCode, Sort, State, Title
DVDDVDActor, AudienceRating, Availability, BrowseNode, Count, Director, Format, ItemPage, Keywords, Magazines, Performer, PostalCode, Publisher, Sort, State, Title
ElectronicsエレクトロニクスBrowseNode, Condition, ItemPage, Keywords, MaximumPrice, MerchantId, MinimumPrice, Sort, Title
ForeignBooks洋書Author, BrowseNode, Condition, ItemPage, Keywords, MaximumPrice, MerchantId, MinimumPrice, Publisher, Sort, Title
Grocery食品Brand, BrowseNode, Condition, Count, ItemPage, Keywords, MaximumPrice, MinimumPrice, Manufacturer, MerchantId, Sort, Title
HealthPersonalCareヘルスケアBrowseNode, Condition, ItemPage, Keywords, Manufacturer, MaximumPrice, MerchantId, MinimumPrice, Sort, Title
HobbiesホビーBrowseNode, Condition, ItemPage, Keywords, Manufacturer, MaximumPrice, MerchantId, MinimumPrice, Sort, Title
JewelryジュエリーAvailability, BrowseNode, DeliveryMethod, Keywords, MerchantId, Sort, Title
Kitchenホーム&キッチンBrand, BrowseNode, Condition, ItemPage, Keywords, Manufacturer, MaximumPrice, MerchantId, MinimumPrice, Sort, Title
MusicミュージックArtist, Availability, BrowseNode, Count, Format, ItemPage, Keywords, Magazines, MusicLabel, Performer, PostalCode, Sort, State, Title
MusicTracks曲名Condition, ItemPage, Keywords, MaximumPrice, MerchantId, MinimumPrice, Sort
SoftwareソフトウェアBrand, BrowseNode, Condition, ItemPage, Keywords, MaximumPrice, MerchantId, MinimumPrice, Sort, Title
SportingGoodsスポーツ&アウトドアBrowseNode, Condition, ItemPage, Keywords, Manufacturer, MaximumPrice, MerchantId, MinimumPrice, Sort, Title
ToysおもちゃBrowseNode, Condition, ItemPage, Keywords, Manufacturer, MaximumPrice, MerchantId, MinimumPrice, Sort, Title
VHSVHSActor, AudienceRating, Availability, BrowseNode, Count, Director, Format, ItemPage, Keywords, Magazines, Performer, PostalCode, Publisher, Sort, State, Title
VideoビデオActor, AudienceRating, Availability, BrowseNode, Count, Director, Format, ItemPage, Keywords, Magazines, Performer, PostalCode, Publisher, Sort, State, Title
VideoGamesゲームBrand, BrowseNode, Condition, ItemPage, Keywords, Manufacturer, MaximumPrice, MerchantId, MinimumPrice, Sort, Title
Watches時計BrowseNode, Condition, ItemPage, Keywords, MerchantId, MinimumPrice, Sort, State, TextStream, Title

例えばAmazon全体を検索対象とする場合は「All」を、本だけを対象にする場合は「Books」を指定します。指定できる値は1つだけです。(API 2009-07-01から「All」が日本でも使用できるようになりました)。

記述例としては次のようになります。

SearchIndex=Books

実際に使用する場合は次のようになります。

http://ecs.amazonaws.jp/onca/xml?
Service=AWSECommerceService
&AWSAccessKeyId=[AccessKey]
&Version=2009-07-01
&Operation=ItemSearch
&SearchIndex=Books

「SearchIndex」プロパティに設定した値によって検索対象のカテゴリが決まりますが、カテゴリ毎にどんな値を調べることが出来るのかが異なります。例えばSearchIndexプロパティに「Music」を指定した場合は次のパラメータを追加で指定して検索を行えます。

Artist      Availability  BrowseNode  Count
Format      ItemPage      Keywords    Magazines
MusicLabel  Performer     PostalCode  Sort
State       Title

例えばアーティスト名を指定して検索するには次のようになります。

http://ecs.amazonaws.jp/onca/xml?
Service=AWSECommerceService
&AWSAccessKeyId=[AccessKey]
&Version=2009-07-01
&Operation=ItemSearch
&SearchIndex=Music
&Artist=xxxxxx

カテゴリ毎の指定可能パラメータ

カテゴリ毎の指定可能パラメータをまとめておきます。

All:All, App:Apparel, Bab:Baby, Bea:Beauty, Blen:Blended, Boo:Books, Cla:Classical, DVD:DVD, Ele:Electronics, For:ForeignBooks, Gro:Grocery, Hea:HealthPersonalCare

パラメータAllAppBabBeaBlenBooClaDVDEleForGroHea
Actor --------------------
Artist ------------------------
AudienceRating----------------------
Author ------------------
Availability ------------------
Brand ----------------
BrowseNode ----
Condition --------
Conductor ----------------------
Count ----------------
DeliveryMethod----------------------
Director ----------------------
Format ------------------
ISPUPostalCode----------------------
ItemPage ----
Keywords
Magazines ------------------
Manufacturer --------------
MaximumPrice ----------
MerchantId --------
MinimumPrice ----------
MusicLabel ----------------------
Orchestra ----------------------
Performer ------------------
PostalCode ------------------
Power ----------------------
Publisher ------------------
Sort ----
State ----------------
TextStream ------------------------
Title ----

Hob:Hobbies, Jew:Jewelry, Kit:Kitchen, Mus:Music, Tra:MusicTracks, Sof:Software, Spo:SportingGoods, Toy:Toys, VHS:VHS, Vid:Video, Gam:VideoGames, Wat:Watches

パラメータHobJewKitMusTraSofSpoToyVHSVidGamWat
Actor --------------------
Artist ----------------------
AudienceRating--------------------
Author ------------------------
Availability ------------------
Brand ----------------
BrowseNode --
Condition --------
Conductor ------------------------
Count ------------------
DeliveryMethod----------------------
Director --------------------
Format ------------------
ISPUPostalCode------------------------
ItemPage --
Keywords
Magazines ------------------
Manufacturer --------------
MaximumPrice ----------
MerchantId ------
MinimumPrice --------
MusicLabel ----------------------
Orchestra ------------------------
Performer ------------------
PostalCode ------------------
Power ------------------------
Publisher --------------------
Sort
State ----------------
TextStream ----------------------
Title --

( Written by Tatsuo Ikura )

関連記事 (一部広告含む)