[ SPECIAL ]

Amazon Web Services

ItemLookup API で取得した内容のサンプル

2011/02/06 Tomohiro Kumagai

□ ItemLookup API で取得されたデータの例

PHP を用いて AWS から ASIN に該当する商品情報を取得する で記した方法で商品情報を取得した場合の、Services_Amazon ライブラリの ItemLook メソッドの戻り値として取得できた値の情報を、サンプルとして記しておこうと思います。

Array

(

[Request] => Array

(

[IsValid] => True

[ItemLookupRequest] => Array

(

[ItemId] => B000J3FE36

[ResponseGroup] => Array

(

[0] => RelatedItems

[1] => Large

)

[RelationshipType] => DigitalMusicLyricist

)

)

[Item] => Array

(

[0] => Array

(

[ASIN] => B000J3FE36

[DetailPageURL] => http://www.amazon.co.jp/%E5%B0%8F%E6%9D%BE%E6%9C%AA%E6%AD%A9%E3%83%99%E3%82%B9%E3%83%88~once-more~-%E5%B0%8F%E6%9D%BE%E6%9C%AA%E6%AD%A9/dp/B000J3FE36%3FSubscriptionId%3DAKIAJ5SD62FM23N6RXKQ%26tag%3Deznetstation-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB000J3FE36

[ItemLinks] => Array

(

)

[SalesRank] => 13932

[SmallImage] => Array

(

[URL] => http://ecx.images-amazon.com/images/I/510kd-rq0jL._SL75_.jpg

[Height] => Array

(

[Units] => pixels

[_content] => 75

)

[Width] => Array

(

[Units] => pixels

[_content] => 75

)

)

[MediumImage] => Array

(

[URL] => http://ecx.images-amazon.com/images/I/510kd-rq0jL._SL160_.jpg

[Height] => Array

(

[Units] => pixels

[_content] => 160

)

[Width] => Array

(

[Units] => pixels

[_content] => 160

)

)

[LargeImage] => Array

(

[URL] => http://ecx.images-amazon.com/images/I/510kd-rq0jL._SL500_.jpg

[Height] => Array

(

[Units] => pixels

[_content] => 500

)

[Width] => Array

(

[Units] => pixels

[_content] => 500

)

)

[ImageSets] => Array

(

[ImageSet] => Array

(

[Category] => primary

[SwatchImage] => Array

(

[URL] => http://ecx.images-amazon.com/images/I/510kd-rq0jL._SL30_.jpg

[Height] => Array

(

[Units] => pixels

[_content] => 30

)

[Width] => Array

(

[Units] => pixels

[_content] => 30

)

)

[SmallImage] => Array

(

[URL] => http://ecx.images-amazon.com/images/I/510kd-rq0jL._SL75_.jpg

[Height] => Array

(

[Units] => pixels

[_content] => 75

)

[Width] => Array

(

[Units] => pixels

[_content] => 75

)

)

[ThumbnailImage] => Array

(

[URL] => http://ecx.images-amazon.com/images/I/510kd-rq0jL._SL75_.jpg

[Height] => Array

(

[Units] => pixels

[_content] => 75

)

[Width] => Array

(

[Units] => pixels

[_content] => 75

)

)

[TinyImage] => Array

(

[URL] => http://ecx.images-amazon.com/images/I/510kd-rq0jL._SL110_.jpg

[Height] => Array

(

[Units] => pixels

[_content] => 110

)

[Width] => Array

(

[Units] => pixels

[_content] => 110

)

)

[MediumImage] => Array

(

[URL] => http://ecx.images-amazon.com/images/I/510kd-rq0jL._SL160_.jpg

[Height] => Array

(

[Units] => pixels

[_content] => 160

)

[Width] => Array

(

[Units] => pixels

[_content] => 160

)

)

[LargeImage] => Array

(

[URL] => http://ecx.images-amazon.com/images/I/510kd-rq0jL._SL500_.jpg

[Height] => Array

(

[Units] => pixels

[_content] => 500

)

[Width] => Array

(

[Units] => pixels

[_content] => 500

)

)

)

)

[ItemAttributes] => Array

(

[Artist] => 小松未歩

[Binding] => CD

[Creator] => Array

(

[0] => Array

(

[Role] => アーティスト

[_content] => 小松未歩

)

)

[EAN] => 4523949042703

[IsAdultProduct] => 0

[ItemDimensions] => Array

(

[Weight] => Array

(

[Units] => hundredths-pounds

[_content] => 30

)

)

[Label] => GIZA studio

[ListPrice] => Array

(

[Amount] => 3200

[CurrencyCode] => JPY

[FormattedPrice] => ¥ 3,200

)

[Manufacturer] => GIZA studio

[NumberOfDiscs] => 2

[PackageDimensions] => Array

(

[Height] => Array

(

[Units] => hundredths-inches

[_content] => 55

)

[Length] => Array

(

[Units] => hundredths-inches

[_content] => 567

)

[Weight] => Array

(

[Units] => hundredths-pounds

[_content] => 4

)

[Width] => Array

(

[Units] => hundredths-inches

[_content] => 535

)

)

[ProductGroup] => Music

[ProductTypeName] => ABIS_MUSIC

[Publisher] => GIZA studio

[ReleaseDate] => 2006-11-22

[RunningTime] => Array

(

[Units] => 分

[_content] => 119

)

[Studio] => GIZA studio

[Title] => 小松未歩ベスト~once more~

)

[OfferSummary] => Array

(

[LowestNewPrice] => Array

(

[Amount] => 795

[CurrencyCode] => JPY

[FormattedPrice] => ¥ 795

)

[LowestUsedPrice] => Array

(

[Amount] => 738

[CurrencyCode] => JPY

[FormattedPrice] => ¥ 738

)

[LowestCollectiblePrice] => Array

(

[Amount] => 779

[CurrencyCode] => JPY

[FormattedPrice] => ¥ 779

)

[TotalNew] => 19

[TotalUsed] => 21

[TotalCollectible] => 1

[TotalRefurbished] => 0

)

[Offers] => Array

(

[TotalOffers] => 1

[TotalOfferPages] => 1

[Offer] => Array

(

[Merchant] => Array

(

[MerchantId] => AN1VRQENFRJN5

[GlancePage] => http://www.amazon.co.jp/gp/help/seller/home.html?seller=AN1VRQENFRJN5

[AverageFeedbackRating] => 0.0

[TotalFeedback] => 0

)

[OfferAttributes] => Array

(

[Condition] => New

[SubCondition] => new

)

[OfferListing] => Array

(

[OfferListingId] => FAR9BnjBxR%2FVPL3M%2BOLvBO7i0t1eeb2zOmobio0SgyHfe2V5y%2FLAbJmAdHvdIYy89e7FAGfgZlchTtFAtBvV4sSCfuQNbIou

[Price] => Array

(

[Amount] => 2495

[CurrencyCode] => JPY

[FormattedPrice] => ¥ 2,495

)

[AmountSaved] => Array

(

[Amount] => 705

[CurrencyCode] => JPY

[FormattedPrice] => ¥ 705

)

[PercentageSaved] => 22

[Availability] => 在庫あり。

[AvailabilityAttributes] => Array

(

[AvailabilityType] => now

[MinimumHours] => 0

[MaximumHours] => 0

)

[Quantity] => -1

[IsEligibleForSuperSaverShipping] => 1

)

)

)

[SimilarProducts] => Array

(

[SimilarProduct] => Array

(

[0] => Array

(

[ASIN] => B000EQIQ74

[Title] => 小松未歩8~a piece of cake~

)

[1] => Array

(

[ASIN] => B0000ESL7U

[Title] => lyrics

)

[2] => Array

(

[ASIN] => B00005HV6J

[Title] => 小松未歩4〜A thousand feelings〜

)

[3] => Array

(

[ASIN] => B0006TPGUO

[Title] => 小松未歩 7~prime number~

)

[4] => Array

(

[ASIN] => B00005F5F8

[Title] => everywhere

)

)

)

[Tracks] => Array

(

[Disc] => Array

(

[0] => Array

(

[Number] => 1

[Track] => Array

(

[0] => Array

(

[Number] => 1

[_content] => 謎

)

[1] => Array

(

[Number] => 2

[_content] => 輝ける星

)

[2] => Array

(

[Number] => 3

[_content] => 願い事ひとつだけ

)

[3] => Array

(

[Number] => 4

[_content] => anybody’s game

)

[4] => Array

(

[Number] => 5

[_content] => チャンス

)

[5] => Array

(

[Number] => 6

[_content] => 氷の上に立つように

)

[6] => Array

(

[Number] => 7

[_content] => さよならのかけら

)

[7] => Array

(

[Number] => 8

[_content] => 最短距離で

)

[8] => Array

(

[Number] => 9

[_content] => 風がそよぐ場所

)

[9] => Array

(

[Number] => 10

[_content] => あなたがいるから

)

[10] => Array

(

[Number] => 11

[_content] => 君の瞳には映らない

)

[11] => Array

(

[Number] => 12

[_content] => Love gone

)

[12] => Array

(

[Number] => 13

[_content] => とどまることのない愛

)

[13] => Array

(

[Number] => 14

[_content] => さいごの砦

)

)

)

[1] => Array

(

[Number] => 2

[Track] => Array

(

[0] => Array

(

[Number] => 1

[_content] => 愛してる...

)

[1] => Array

(

[Number] => 2

[_content] => dance

)

[2] => Array

(

[Number] => 3

[_content] => mysterious love

)

[3] => Array

(

[Number] => 4

[_content] => ふたりの願い

)

[4] => Array

(

[Number] => 5

[_content] => 私さがし

)

[5] => Array

(

[Number] => 6

[_content] => 翼はなくても

)

[6] => Array

(

[Number] => 7

[_content] => 涙キラリ飛ばせ

)

[7] => Array

(

[Number] => 8

[_content] => 砂のしろ

)

[8] => Array

(

[Number] => 9

[_content] => I~誰か...

)

[9] => Array

(

[Number] => 10

[_content] => I just wanna hold you tight

)

[10] => Array

(

[Number] => 11

[_content] => あなた色

)

[11] => Array

(

[Number] => 12

[_content] => 恋になれ...

)

[12] => Array

(

[Number] => 13

[_content] => happy ending

)

)

)

)

)

[BrowseNodes] => Array

(

[BrowseNode] => Array

(

[0] => Array

(

[BrowseNodeId] => 88439051

[Name] => FemaleSolo1

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 575420

[Name] => 女性ソロ

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 569198

[Name] => ポップス

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 569170

[Name] => J-POP

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 562032

[Name] => ジャンル別

[IsCategoryRoot] => 1

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 561956

[Name] => ミュージック

)

)

)

)

)

)

)

)

)

)

)

[1] => Array

(

[BrowseNodeId] => 13900951

[Name] => 全般

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 569170

[Name] => J-POP

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 562032

[Name] => ジャンル別

[IsCategoryRoot] => 1

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 561956

[Name] => ミュージック

)

)

)

)

)

)

)

[2] => Array

(

[BrowseNodeId] => 773000

[Name] => コ

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 772966

[Name] => カ行

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 569434

[Name] => タイトル別

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 569432

[Name] => アニメ

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 562060

[Name] => アニメ・ゲーム

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 562032

[Name] => ジャンル別

[IsCategoryRoot] => 1

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 561956

[Name] => ミュージック

)

)

)

)

)

)

)

)

)

)

)

)

)

[3] => Array

(

[BrowseNodeId] => 88903051

[Name] => Main Albums

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 88902051

[Name] => Artist Pages Filter Nodes

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 88901051

[Name] => Regular Stores

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 562038

[Name] => Stores

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 561956

[Name] => ミュージック

)

)

)

)

)

)

)

)

)

[4] => Array

(

[BrowseNodeId] => 584194

[Name] => 小松未歩

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 584148

[Name] => こ

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 584038

[Name] => か行

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 569194

[Name] => アーティスト別

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 2119059051

[Name] => J-POP Deprecated Nodes

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 161291011

[Name] => archive

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 561956

[Name] => ミュージック

)

)

)

)

)

)

)

)

)

)

)

)

)

[5] => Array

(

[BrowseNodeId] => 81874051

[Name] => CDアルバム

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 81873051

[Name] => CD

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 81872051

[Name] => Format

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 2114496051

[Name] => Browse Refinements

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 388320011

[Name] => Refinements

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 561956

[Name] => ミュージック

)

)

)

)

)

)

)

)

)

)

)

[6] => Array

(

[BrowseNodeId] => 85750051

[Name] => 国内盤

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 85748051

[Name] => Source Country

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 2114496051

[Name] => Browse Refinements

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 388320011

[Name] => Refinements

[Ancestors] => Array

(

[BrowseNode] => Array

(

[BrowseNodeId] => 561956

[Name] => ミュージック

)

)

)

)

)

)

)

)

)

)

)

)

)

)

この内容は、戻り値として得られた多次元配列を print_r 関数で表示したものです。

この構造を参考にすれば、プログラミングも組みやすくなると思います。

 


 

カスタム検索

copyright © Tomohiro Kumagai @ EasyStyle G.K.
contact me: please from mail-form page.