Skip to main content
Published: September 20 2012, 10:38:00 AMUpdated: November 28 2020, 2:00:02 PM

  Description

  You can make Product API findProducts call to find out if a category is catalog-enabled:

  URL format - HTTP GET

 http://svcs.ebay.com/services/marketplacecatalog/ProductService/v1?OPERATION-NAME=findProducts&SERVICE-VERSION=1.3.0&SECURITY-APPNAME=YOUR APPID&GLOBAL-ID=EBAY-US&RESPONSE-DATA-FORMAT=XML&productSearch.invocationId=1234567890&productSearch.categoryId=176984&productSearch.keywords=test&productSearch.dataset=DisplayableSearchResults

 

 XML format - HTTP POST

<findProductsRequest xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services">
  <productSearch>
      <invocationId>0987654321</invocationId>
      <categoryId>176984</categoryId>
      <dataset>DisplayableSearchResults</dataset>
        <keywords>test</keywords>
      <paginationInput>
         <entriesPerPage>25</entriesPerPage>
         <pageNumber>1</pageNumber>
      </paginationInput>
   </productSearch>

</findProductsRequest>

If the category specified  is catalog-enabled, the call returns the product list as below:

 <findProductsResponse xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services">
   <ack>Success</ack>
   <version>1.3.1</version>
   <timestamp>2012-09-20T22:56:49.819Z</timestamp>
  <productSearchResult>
      <products>
         <productIdentifier>
            <ePID>3202179</ePID>
            <productId>117171:2:1052:849403289:456677519:7ad0b9699957591ae473df7e142e7785:1:1:1:1817551</productId>
         </productIdentifier>
         <stockPhotoURL>
            <thumbnail>
               <value>http://i.ebayimg.com/17/!!eC8!GwCWM~$(KGrHqV,!iME0HSf4BdyBNR8RmLWm!~~_0.JPG?set_id=89040003C1</value>
            </thumbnail>
            <standard>
               <value>http://i.ebayimg.com/17/!!eC8!GwCWM~$(KGrHqV,!iME0HSf4BdyBNR8RmLWm!~~_7.JPG?set_id=89040003C1</value>
            </standard>
         </stockPhotoURL>
         <productDetails>
            <propertyName>Ebay Title</propertyName>
            <value>
               <text>
                  <value>Test for Echo by Rush (CD, Aug-1996, Atlantic)</value>
               </text>
            </value>
         </productDetails>
         <productStatus>
            <excludeForeBaySelling>false</excludeForeBaySelling>
            <excludeForeBayReviews>false</excludeForeBayReviews>
            <excludeForHalfSelling>false</excludeForHalfSelling>
         </productStatus>
         <type>Head</type>
      </products>
      <products>
         <productIdentifier>
            <ePID>3085936</ePID>
            <productId>117171:2:1052:2384717746:399119006:227479908433166007702f1b076cf010:1:1:1:1716122</productId>
         </productIdentifier>
         <productDetails>
            <propertyName>Ebay Title</propertyName>
            <value>
               <text>
                  <value>God Shuffled His Feet by Crash Test Dummies (CD, Oct-1993, Arista)</value>
               </text>
            </value>
         </productDetails>
         <productStatus>
            <excludeForeBaySelling>false</excludeForeBaySelling>
            <excludeForeBayReviews>false</excludeForeBayReviews>
            <excludeForHalfSelling>false</excludeForHalfSelling>
         </productStatus>
         <type>Head</type>
      </products>

....

     <paginationOutput>
         <pageNumber>1</pageNumber>
         <entriesPerPage>25</entriesPerPage>
         <totalPages>16</totalPages>
         <totalEntries>387</totalEntries>
      </paginationOutput>
      <invocationId>0987654321</invocationId>
   </productSearchResult>
</findProductsResponse>

Otherwise, you will get the Product data is not enabled error. Here is the sample findProducts response  for the CategoryID 19027 (Toys & Hobbies:Classic Toys:Other):

 <findProductsResponse xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services">
   <ack>Failure</ack>
   <errorMessage>
      <error>
         <errorId>29</errorId>
         <domain>Marketplace</domain>
         <severity>Error</severity>
         <category>System</category>
         <message>Product data is not enabled for category ID 19027.</message>
         <subdomain>MarketplaceCatalog</subdomain>
         <parameter>19027</parameter>
      </error>
   </errorMessage>
   <version>1.3.1</version>
   <timestamp>2012-09-20T22:54:19.583Z</timestamp>
</findProductsResponse>

 

 

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