リクエストURLの作成

sony とゆう検索ワードで検索したい場合のリクエストURL

http://auctions.yahooapis.jp/AuctionWebService/V2/search?appid=< あなたのアプリケーションID>&query=sony

< あなたのアプリケーションID>は各々ご自分のIDに変更してください。

レスポンスのXML

  1. <ResultSet xsi:schemaLocation="urn:yahoo:jp:auc:search http://auctions.yahooapis.jp/AuctionWebService/V2/search.xsd" totalResultsAvailable="5057" totalResultsReturned="50" firstResultPosition="1">  
  2. <Result>  
  3.  <UnitsWord>SONY VAIO</UnitsWord>  
  4.  <UnitsWord>VAIO UX</UnitsWord>  
  5.  <UnitsWord>VAIO typep</UnitsWord>  
  6.  <UnitsWord>VAIO tz</UnitsWord>  
  7.  <UnitsWord>VAIO ジャンク</UnitsWord>  
  8.  <Item>  
  9.   <AuctionID>g93428619</AuctionID>  
  10.  <Title>  
  11.  【新品即決】SONY『VAIO N』Core2Duo P8700(2.53G)/250G/4G/4570  
  12.  </Title>  
  13.  <Seller>  
  14.   <Id>hu10n2ka2</Id>  
  15.   <ItemListUrl>  
  16.    http://auctions.yahooapis.jp/AuctionWebService/V2/sellingList?sellerID=hu10n2ka2  
  17.   </ItemListUrl>  
  18.   <RatingUrl>  
  19.    http://auctions.yahooapis.jp/AuctionWebService/V1/ShowRating?id=hu10n2ka2  
  20.   </RatingUrl>  
  21.  </Seller>  
  22. ...............................................................  

0 件のコメント: