大規模な情報の取得(Large)

広告

「Large」は「Medium」に加えてレビューやリストマニア、ノード、関連情報などほぼ全ての商品情報を取得できるように設定されたグループです。実際に記述する場合は次のようにします。

ResponseGroup=Large

では実際に試してみます。

http://ecs.amazonaws.jp/onca/xml?
Service=AWSECommerceService
&AWSAccessKeyId=[AccessKey]
&Version=2009-07-01
&Operation=ItemSearch
&SearchIndex=Books
&Keywords=終の住処 磯崎 憲一郎
&ResponseGroup=Large

※必要に応じてURLエンコードして下さい。

上記のようなリクエストを送信した場合に取得できる情報は次の通りです。

<?xml version="1.0" ?>
<ItemSearchResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2009-07-01">
  <OperationRequest>
    <HTTPHeaders>
      <Header Name="UserAgent" Value="Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)" />
    </HTTPHeaders>
    <RequestId>55b1cac2-00f2-4bb8-b07e-30428cec25db</RequestId>
    <Arguments>
      <Argument Name="Operation" Value="ItemSearch" />
      <Argument Name="Service" Value="AWSECommerceService" />
      <Argument Name="AWSAccessKeyId" Value="(key)" />
      <Argument Name="Timestamp" Value="2009-07-24T16:13:02.000Z" />
      <Argument Name="Signature" Value="yGElledku/ls/9XLy2I/fcF3jIPaLt9oANomSKWpZSc=" />
      <Argument Name="ResponseGroup" Value="Large" />
      <Argument Name="SearchIndex" Value="Books" />
      <Argument Name="Version" Value="2009-07-01" />
      <Argument Name="Keywords" Value="終の住処 磯崎 憲一郎" />
    </Arguments>
    <RequestProcessingTime>0.0997580000000000</RequestProcessingTime>
  </OperationRequest>
  <Items>
    <Request>
      <IsValid>True</IsValid>
      <ItemSearchRequest>
        <Condition>New</Condition>
        <DeliveryMethod>Ship</DeliveryMethod>
        <Keywords>終の住処 磯崎 憲一郎</Keywords>
        <MerchantId>Amazon</MerchantId>
        <ResponseGroup>Large</ResponseGroup>
        <ReviewSort>-SubmissionDate</ReviewSort>
        <SearchIndex>Books</SearchIndex>
      </ItemSearchRequest>
    </Request>
    <TotalResults>1</TotalResults>
    <TotalPages>1</TotalPages>
    <Item>
      <ASIN>410317711X</ASIN>
      <DetailPageURL>http://www.amazon.co.jp/%E7%B5%82%E3%81%AE%E4%BD%8F%E5%87%A6-%E7%A3%AF%E5%B4%8E-%E6%86%B2%E4%B8%80%E9%83%8E/dp/410317711X%3FSubscriptionId%3D1SM7CKHWKSJKJFPKBA02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D410317711X</DetailPageURL>
      <ItemLinks>
        <ItemLink>
          <Description>Add To Wishlist</Description>
          <URL>http://www.amazon.co.jp/gp/registry/wishlist/add-item.html%3Fasin.0%3D410317711X%26SubscriptionId%3D1SM7CKHWKSJKJFPKBA02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3D410317711X</URL>
        </ItemLink>
        <ItemLink>
          <Description>Tell A Friend</Description>
          <URL>http://www.amazon.co.jp/gp/pdp/taf/410317711X%3FSubscriptionId%3D1SM7CKHWKSJKJFPKBA02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3D410317711X</URL>
        </ItemLink>
        <ItemLink>
          <Description>All Customer Reviews</Description>
          <URL>http://www.amazon.co.jp/review/product/410317711X%3FSubscriptionId%3D1SM7CKHWKSJKJFPKBA02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3D410317711X</URL>
        </ItemLink>
        <ItemLink>
          <Description>All Offers</Description>
          <URL>http://www.amazon.co.jp/gp/offer-listing/410317711X%3FSubscriptionId%3D1SM7CKHWKSJKJFPKBA02%26tag%3Dws%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3D410317711X</URL>
        </ItemLink>
      </ItemLinks>
      <SalesRank>50</SalesRank>
      <SmallImage>
        <URL>http://ecx.images-amazon.com/images/I/51%2B53Z66tiL._SL75_.jpg</URL>
        <Height Units="pixels">75</Height>
        <Width Units="pixels">51</Width>
      </SmallImage>
      <MediumImage>
        <URL>http://ecx.images-amazon.com/images/I/51%2B53Z66tiL._SL160_.jpg</URL>
        <Height Units="pixels">160</Height>
        <Width Units="pixels">108</Width>
      </MediumImage>
      <LargeImage>
        <URL>http://ecx.images-amazon.com/images/I/51%2B53Z66tiL.jpg</URL>
        <Height Units="pixels">500</Height>
        <Width Units="pixels">337</Width>
      </LargeImage>
      <ImageSets>
        <ImageSet Category="primary">
          <SwatchImage>
            <URL>http://ecx.images-amazon.com/images/I/51%2B53Z66tiL._SL30_.jpg</URL>
            <Height Units="pixels">30</Height>
            <Width Units="pixels">20</Width>
          </SwatchImage>
          <SmallImage>
            <URL>http://ecx.images-amazon.com/images/I/51%2B53Z66tiL._SL75_.jpg</URL>
            <Height Units="pixels">75</Height>
            <Width Units="pixels">51</Width>
          </SmallImage>
          <ThumbnailImage>
            <URL>http://ecx.images-amazon.com/images/I/51%2B53Z66tiL._SL75_.jpg</URL>
            <Height Units="pixels">75</Height>
            <Width Units="pixels">51</Width>
          </ThumbnailImage>
          <TinyImage>
            <URL>http://ecx.images-amazon.com/images/I/51%2B53Z66tiL._SL110_.jpg</URL>
            <Height Units="pixels">110</Height>
            <Width Units="pixels">74</Width>
          </TinyImage>
          <MediumImage>
            <URL>http://ecx.images-amazon.com/images/I/51%2B53Z66tiL._SL160_.jpg</URL>
            <Height Units="pixels">160</Height>
            <Width Units="pixels">108</Width>
          </MediumImage>
          <LargeImage>
            <URL>http://ecx.images-amazon.com/images/I/51%2B53Z66tiL.jpg</URL>
            <Height Units="pixels">500</Height>
            <Width Units="pixels">337</Width>
          </LargeImage>
        </ImageSet>
        <ImageSet Category="variant">
          <SwatchImage>
            <URL>http://ecx.images-amazon.com/images/I/51Pv8R6D3QL._SL30_.jpg</URL>
            <Height Units="pixels">30</Height>
            <Width Units="pixels">20</Width>
          </SwatchImage>
          <SmallImage>
            <URL>http://ecx.images-amazon.com/images/I/51Pv8R6D3QL._SL75_.jpg</URL>
            <Height Units="pixels">75</Height>
            <Width Units="pixels">50</Width>
          </SmallImage>
          <ThumbnailImage>
            <URL>http://ecx.images-amazon.com/images/I/51Pv8R6D3QL._SL75_.jpg</URL>
            <Height Units="pixels">75</Height>
            <Width Units="pixels">50</Width>
          </ThumbnailImage>
          <TinyImage>
            <URL>http://ecx.images-amazon.com/images/I/51Pv8R6D3QL._SL110_.jpg</URL>
            <Height Units="pixels">110</Height>
            <Width Units="pixels">73</Width>
          </TinyImage>
          <MediumImage>
            <URL>http://ecx.images-amazon.com/images/I/51Pv8R6D3QL._SL160_.jpg</URL>
            <Height Units="pixels">160</Height>
            <Width Units="pixels">107</Width>
          </MediumImage>
          <LargeImage>
            <URL>http://ecx.images-amazon.com/images/I/51Pv8R6D3QL.jpg</URL>
            <Height Units="pixels">500</Height>
            <Width Units="pixels">334</Width>
          </LargeImage>
        </ImageSet>
      </ImageSets>
      <ItemAttributes>
        <Author>磯崎 憲一郎</Author>
        <Binding>単行本</Binding>
        <EAN>9784103177111</EAN>
        <ISBN>410317711X</ISBN>
        <Label>新潮社</Label>
        <ListPrice>
          <Amount>1260</Amount>
          <CurrencyCode>JPY</CurrencyCode>
          <FormattedPrice>¥ 1,260</FormattedPrice>
        </ListPrice>
        <Manufacturer>新潮社</Manufacturer>
        <NumberOfPages>142</NumberOfPages>
        <PackageDimensions>
          <Height Units="hundredths-inches">79</Height>
          <Length Units="hundredths-inches">748</Length>
          <Weight Units="hundredths-pounds">57</Weight>
          <Width Units="hundredths-inches">496</Width>
        </PackageDimensions>
        <ProductGroup>Book</ProductGroup>
        <ProductTypeName>ABIS_BOOK</ProductTypeName>
        <PublicationDate>2009-07-24</PublicationDate>
        <Publisher>新潮社</Publisher>
        <Studio>新潮社</Studio>
        <Title>終の住処</Title>
      </ItemAttributes>
      <OfferSummary>
        <LowestNewPrice>
          <Amount>1260</Amount>
          <CurrencyCode>JPY</CurrencyCode>
          <FormattedPrice>¥ 1,260</FormattedPrice>
        </LowestNewPrice>
        <LowestUsedPrice>
          <Amount>1250</Amount>
          <CurrencyCode>JPY</CurrencyCode>
          <FormattedPrice>¥ 1,250</FormattedPrice>
        </LowestUsedPrice>
        <TotalNew>2</TotalNew>
        <TotalUsed>2</TotalUsed>
        <TotalCollectible>0</TotalCollectible>
        <TotalRefurbished>0</TotalRefurbished>
      </OfferSummary>
      <Offers>
        <TotalOffers>1</TotalOffers>
        <TotalOfferPages>1</TotalOfferPages>
        <Offer>
          <Merchant>
            <MerchantId>AN1VRQENFRJN5</MerchantId>
            <GlancePage>http://www.amazon.co.jp/gp/help/seller/home.html?seller=AN1VRQENFRJN5</GlancePage>
            <AverageFeedbackRating>0.0</AverageFeedbackRating>
            <TotalFeedback>0</TotalFeedback>
          </Merchant>
          <OfferAttributes>
            <Condition>New</Condition>
            <SubCondition>new</SubCondition>
          </OfferAttributes>
          <OfferListing>
            <OfferListingId>3eP8kGh7btZjbDDiVleU0irOd9dFUIeIG0dizkuzZJ0C8UT1u%2BuPQfPlczvjpYEqwvT%2Fe8aNIxktp8nYEfOHcJEfHY%2BpHn9w</OfferListingId>
            <Price>
              <Amount>1260</Amount>
              <CurrencyCode>JPY</CurrencyCode>
              <FormattedPrice>¥ 1,260</FormattedPrice>
            </Price>
            <Availability>在庫あり。</Availability>
            <AvailabilityAttributes>
              <AvailabilityType>now</AvailabilityType>
              <MinimumHours>0</MinimumHours>
              <MaximumHours>0</MaximumHours>
            </AvailabilityAttributes>
            <Quantity>-1</Quantity>
            <IsEligibleForSuperSaverShipping>1</IsEligibleForSuperSaverShipping>
          </OfferListing>
          <LoyaltyPoints>
            <Points>12</Points>
            <TypicalRedemptionValue>
              <Amount>12</Amount>
              <CurrencyCode>JPY</CurrencyCode>
              <FormattedPrice>¥ 12</FormattedPrice>
            </TypicalRedemptionValue>
          </LoyaltyPoints>
        </Offer>
      </Offers>
      <SimilarProducts>
        <SimilarProduct>
          <ASIN>4163280804</ASIN>
          <Title>鷺と雪</Title>
        </SimilarProduct>
        <SimilarProduct>
          <ASIN>4309019153</ASIN>
          <Title>世紀の発見</Title>
        </SimilarProduct>
        <SimilarProduct>
          <ASIN>4062155311</ASIN>
          <Title>骸骨ビルの庭(上)</Title>
        </SimilarProduct>
        <SimilarProduct>
          <ASIN>406215532X</ASIN>
          <Title>骸骨ビルの庭(下)</Title>
        </SimilarProduct>
        <SimilarProduct>
          <ASIN>410366813X</ASIN>
          <Title>学問</Title>
        </SimilarProduct>
      </SimilarProducts>
      <BrowseNodes>
        <BrowseNode>
          <BrowseNodeId>467250</BrowseNodeId>
          <Name>日本文学</Name>
          <Children>
            <BrowseNode>
              <BrowseNodeId>507138</BrowseNodeId>
              <Name>あ行の著者</Name>
            </BrowseNode>
            <BrowseNode>
              <BrowseNodeId>507140</BrowseNodeId>
              <Name>か行の著者</Name>
            </BrowseNode>
            <BrowseNode>
              <BrowseNodeId>507142</BrowseNodeId>
              <Name>さ行の著者</Name>
            </BrowseNode>
            <BrowseNode>
              <BrowseNodeId>507144</BrowseNodeId>
              <Name>た行の著者</Name>
            </BrowseNode>
            <BrowseNode>
              <BrowseNodeId>507146</BrowseNodeId>
              <Name>な行の著者</Name>
            </BrowseNode>
            <BrowseNode>
              <BrowseNodeId>507148</BrowseNodeId>
              <Name>は行の著者</Name>
            </BrowseNode>
            <BrowseNode>
              <BrowseNodeId>507150</BrowseNodeId>
              <Name>ま行の著者</Name>
            </BrowseNode>
            <BrowseNode>
              <BrowseNodeId>507152</BrowseNodeId>
              <Name>や・ら・わ行の著者</Name>
            </BrowseNode>
          </Children>
          <Ancestors>
            <BrowseNode>
              <BrowseNodeId>548206</BrowseNodeId>
              <Name>文芸作品</Name>
              <Ancestors>
                <BrowseNode>
                  <BrowseNodeId>466284</BrowseNodeId>
                  <Name>文学・評論</Name>
                  <Ancestors>
                    <BrowseNode>
                      <BrowseNodeId>465610</BrowseNodeId>
                      <Name>ジャンル別</Name>
                      <IsCategoryRoot>1</IsCategoryRoot>
                      <Ancestors>
                        <BrowseNode>
                          <BrowseNodeId>465392</BrowseNodeId>
                          <Name>本</Name>
                        </BrowseNode>
                      </Ancestors>
                    </BrowseNode>
                  </Ancestors>
                </BrowseNode>
              </Ancestors>
            </BrowseNode>
          </Ancestors>
        </BrowseNode>
        <BrowseNode>
          <BrowseNodeId>625258011</BrowseNodeId>
          <Name>ハードカバー</Name>
          <Ancestors>
            <BrowseNode>
              <BrowseNodeId>625256011</BrowseNodeId>
              <Name>Format (binding)</Name>
              <Ancestors>
                <BrowseNode>
                  <BrowseNodeId>625255011</BrowseNodeId>
                  <Name>Browse Refinements</Name>
                  <Ancestors>
                    <BrowseNode>
                      <BrowseNodeId>388316011</BrowseNodeId>
                      <Name>Refinements</Name>
                      <Ancestors>
                        <BrowseNode>
                          <BrowseNodeId>465392</BrowseNodeId>
                          <Name>本</Name>
                        </BrowseNode>
                      </Ancestors>
                    </BrowseNode>
                  </Ancestors>
                </BrowseNode>
              </Ancestors>
            </BrowseNode>
          </Ancestors>
        </BrowseNode>
        <BrowseNode>
          <BrowseNodeId>86137051</BrowseNodeId>
          <Name>単行本</Name>
          <Ancestors>
            <BrowseNode>
              <BrowseNodeId>625256011</BrowseNodeId>
              <Name>Format (binding)</Name>
              <Ancestors>
                <BrowseNode>
                  <BrowseNodeId>625255011</BrowseNodeId>
                  <Name>Browse Refinements</Name>
                  <Ancestors>
                    <BrowseNode>
                      <BrowseNodeId>388316011</BrowseNodeId>
                      <Name>Refinements</Name>
                      <Ancestors>
                        <BrowseNode>
                          <BrowseNodeId>465392</BrowseNodeId>
                          <Name>本</Name>
                        </BrowseNode>
                      </Ancestors>
                    </BrowseNode>
                  </Ancestors>
                </BrowseNode>
              </Ancestors>
            </BrowseNode>
          </Ancestors>
        </BrowseNode>
      </BrowseNodes>
    </Item>
  </Items>
</ItemSearchResponse>

ほとんどの情報は取得できますが、データ自体が大きくなりますので検索結果に多くの商品が含まれるような場合には注意して利用する必要があります。

( Written by Tatsuo Ikura )

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