Skip to main content
Published: November 01 2007, 4:15:00 PMUpdated: November 28 2020, 4:00:03 PM

FindHalfProducts does not return Items

Detailed Description  

   For GetHalfProducts API,  the Items properties are only returned if you want Product details and search by Product,  they are not returned if you are searching by QueryKeyWords.  

  As a result, you can start from QueryKeyWords searching and then make another GetHalfProducts calls accordingly by plugging the  ProductID.type, ProductID.Value returned to get Product details.

1.  Searching on QueryKeyWords

   http://open.api.ebay.com/shopping?callname=FindHalfProducts&appid=YOURAPPID&version=535&QueryKeywords=harry%20potter&MaxEntries=2

Here is the sample result :

  <?xml version="1.0" encoding="UTF-8" ?>
  <FindHalfProductsResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <Timestamp>2007-11-03T00:27:59.021Z</Timestamp>
  <Ack>Success</Ack>
  <Build>e537_core_Bundled_5585571_R1</Build>
  <Version>537</Version>
  <PageNumber>1</PageNumber>
  <ApproximatePages>383</ApproximatePages>
  <MoreResults>true</MoreResults>
  <TotalProducts>765</TotalProducts>
  <Products>
  <Product>
  <Title>Harry Potter and the Deathly Hallows by J. K. Rowling (2007)</Title>
  <DetailsURL>http://syicatalogs.ebay.com/ws/eBayISAPI.dll?PageSyiProductDetails&IncludeAttributes=1&ShowAttributesTable=1&ProductMementoString=88519:2:1055:1565202560:132789840:3a6f96b4f001b2c2f26f33b78f2ecf07:1:1:1:1378670148</DetailsURL>
  <StockPhotoURL>http://i20.ebayimg.com/05/c/000/77/3c/71fc_6.JPG</StockPhotoURL>
  <DisplayStockPhotos>true</DisplayStockPhotos>
  <ProductID type="Reference">59049480</ProductID>
  <ProductID type="ISBN">0545010225</ProductID>
  <ProductID type="ISBN">9780545010221</ProductID>
  <DomainName>Children's Books</DomainName>
  <ItemSpecifics>
   <NameValueList>
  <Name>Binding</Name>
  <Value>Hardcover</Value>
  </NameValueList>
 <NameValueList>
  <Name>Author</Name>
  <Value>J. K. Rowling</Value>
  </NameValueList>
  </ItemSpecifics>
  <ReviewCount>127</ReviewCount>
  </Product>
   <Product>
  <Title>Harry Potter and the Deathly Hallows by J. K. Rowling (2007)</Title>
  <DetailsURL>http://syicatalogs.ebay.com/ws/eBayISAPI.dll?PageSyiProductDetails&IncludeAttributes=1&ShowAttributesTable=1&ProductMementoString=88521:2:1055:2282533148:133230418:f923377cb1dc44002322d6c4cb3c2bf0:1:1:1:1379089738</DetailsURL>
  <StockPhotoURL>http://i15.ebayimg.com/06/c/000/77/3d/95bf_6.JPG</StockPhotoURL>
  <DisplayStockPhotos>true</DisplayStockPhotos>
  <ProductID type="Reference">59620038</ProductID>
  <ProductID type="ISBN">0739360388</ProductID>
  <ProductID type="ISBN">9780739360385</ProductID>
  <DomainName>Audiobooks</DomainName>
 <ItemSpecifics>
  <NameValueList>
  <Name>Title</Name>
  <Value>Harry Potter and the Deathly Hallows</Value>
  </NameValueList>
 <NameValueList>
  <Name>Author</Name>
  <Value>J. K. Rowling</Value>
  </NameValueList>
  </ItemSpecifics>
  <ReviewCount>25</ReviewCount>
  </Product>
  </Products>
  </FindHalfProductsResponse>

2. Looping through the <Products> array returned in the step 1 and make FindHalfProducts request on each Products.Product.ProductID ( you can use either ISBN-10 or ISBN-13) retuned to get product details: 

http://open.api.ebay.com/shopping?callname=FindHalfProducts&appid=YOURAPPID=535&ProductID.type=ISBN&ProductID.Value=9780545010221&IncludeSelector=Items

http://open.api.ebay.com/shopping?callname=FindHalfProducts&appid=YOURAPPID=535&ProductID.type=ISBN&ProductID.Value=9780739360385&IncludeSelector=Items


 

Version Info 

The code example above was based on the versions specified below:

API Schema Version 535

Additional Resources
 

How well did this answer your question?
Answers others found helpful