For full functionality of this site it is necessary to enable JavaScript.
Here are the instructions how to enable JavaScript in your web browser.

Knowledge base

Find the answer to your question

Advanced Search PView

Search terms
Search Type
Sort by

Getting a seller's item in a particular store category

  • Answer ID 1178
  • Published 10/30/2007 12:51 PM
  • Updated 10/20/2013 06:40 AM
  • Permalink
For a given seller, how can I get all the items in a particular store category? For example, how do I get just those items listed in "Other Items" as with the following url on the site:

Unlike the site, the API does not allow you to return a list of items in a particular store category.  You can use GetSellerList with a GranularityLevel of Coarse and get a list of all the items, including the store category for each of the items.  You can then filter on the client side and get items that are listed in a particular store category.

Detailed Description

Let's say we want to find all the items for the Sandbox user dts1 that are in the store categoryID 1.  We can make a call to GetSellerList with the end time filter set to a few seconds from the current time to 60 days in the future to get all the active items.  We also use the GranularityLevel of Coarse to get limited information as below:

<?xml version="1.0" encoding="utf-8"?>

<GetSellerListRequest xmlns="urn:ebay:apis:eBLBaseComponents">













Here is a sample response:

<?xml version="1.0" encoding="utf-8"?>

<GetSellerListResponse xmlns="urn:ebay:apis:eBLBaseComponents">




























      <Location>Staten Island, New York</Location>



        <CategoryName>Everything Else:Test Auctions:eBay Use Only</CategoryName>



















      <Title>test - do not bid</Title>














On the client side, we check for Item.Storefront.StoreCategoryID - if it is 1 then it is an item of interest, otherwise we ignore it.  If the HasMoreItems is true, then we increase the PageNumber by 1 and make the call again and do the filtering on the client side.  We continue making the call till there are no more items to retrieve, that is, when HasMoreItems is false.

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

Print Email This Page Delicious Digg Facebook Reddit StumbleUpon Twitter