Skip to main content
Published: October 30 2007, 12:51:00 PMUpdated: November 28 2020, 1:28:52 PM

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