Skip to main content
Published: August 19 2009, 4:20:00 PMUpdated: November 28 2020, 7:43:25 PM

How can I get a list of all my active items and items that ended?

Detailed Description

Getting a list of active items:

Trading API:  GetSellerList
This option is recommended if the seller has a small volume of items.

Make a call to GetSellerList with the EndTime filter starting from current time plus a sec to month out in the future.  

Here is a sample request where the current time is 2009-08-19T18:10:37.204Z:

<?xml version="1.0" encoding="utf-8"?>
<GetSellerListRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <EndTimeFrom>2009-08-19T18:10:38.204Z</EndTimeFrom>
  <EndTimeTo>2009-09-19T18:10:38.204Z</EndTimeTo>
  <Pagination>
    <PageNumber>1</PageNumber>
    <EntriesPerPage>200</EntriesPerPage>
  </Pagination>
  <RequesterCredentials>
    <eBayAuthToken>*****</eBayAuthToken>
  </RequesterCredentials>
</GetSellerListRequest>

If there are more than 200 items, then the HasMoreEntries in the response is true.  In that case, increase the PageNumber by 1 and continue making the call till HasMoreEntries is false.

Note:   The current eBay time can be obtained using GeteBayOfficialTime.

LMS:  ActiveInventoryReport
This option is recommended for sellers with a large inventory on eBay and it is much more efficient.

Sample startDownloadJob request:

<?xml version="1.0" encoding="utf-8"?>
<startDownloadJobRequest xmlns="http://www.ebay.com/marketplace/services">
<downloadJobType>ActiveInventoryReport</downloadJobType>
<UUID>693DB78D-1485-13A6-56444B43785A5C17</UUID> 
</startDownloadJobRequest> 

Getting a list of ended items:

Make the call to GetSellerList everyday (or weekly or whatever frequency is appropriate), with the EndTime filter starting with required frequency days from current time, to current time.  Here is a sample request for a call that is made every day:

<?xml version="1.0" encoding="utf-8"?>
<GetSellerListRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <EndTimeFrom>2009-08-18T18:10:37.204Z</EndTimeFrom>
  <EndTimeTo>2009-08-19T18:10:37.204Z</EndTimeTo>
  <Pagination>
    <PageNumber>1</PageNumber>
    <EntriesPerPage>200</EntriesPerPage>
  </Pagination>
  <RequesterCredentials>
    <eBayAuthToken>*****</eBayAuthToken>
  </RequesterCredentials>
</GetSellerListRequest>


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