Skip to main content
Published: May 13 2008, 1:51:00 PMUpdated: August 05 2022, 3:42:59 PM

I am making the following GetSellerList call:

<?xml version="1.0" encoding="utf-8"?>
<GetSellerListRequest xmlns="urn:ebay:apis:eBLBaseComponents"> 
  <OutputSelector>ItemID,StartTime,EndTime,ListingDuration</OutputSelector>
  <EndTimeFrom>2008-05-13T20:27:38.949Z</EndTimeFrom>
  <EndTimeTo>2008-08-13T20:27:38.949Z</EndTimeTo>
  <RequesterCredentials>
    <eBayAuthToken>*****</eBayAuthToken>
  </RequesterCredentials>
</GetSellerListRequest>

In the response, I get back the ItemID, StartTime and EndTime, but not the ListingDuration.  What am I missing?

Detailed Description

In order to get back the fields that you asked for, you need to check for the following:

  • If it is returned by the call
  • At what DetailLevel / GranularityLevel the field is returned

The input / output reference guide gives information on what field is returned and at what Detail Level it is returned.  You need to set the DetailLevel in your request. 

In our example, the minimum level at which ListingDuration is returned, is at the GranularityLevel of Coarse.  If we add that in the request, the response will return the ListingDuration.  Here is the modified request:

<?xml version="1.0" encoding="utf-8"?>
<GetSellerListRequest xmlns="urn:ebay:apis:eBLBaseComponents"> 
  <GranularityLevel>Coarse</GranularityLevel
  <OutputSelector>ItemID,StartTime,EndTime,ListingDuration</OutputSelector>
  <EndTimeFrom>2008-05-13T20:27:38.949Z</EndTimeFrom>
  <EndTimeTo>2008-08-13T20:27:38.949Z</EndTimeTo>
  <RequesterCredentials>
    <eBayAuthToken>*****</eBayAuthToken>
  </RequesterCredentials>
</GetSellerListRequest>

Best Practice: use the lowest detail level in the call request, at which the required information would be returned.  This will reduce the response time, decrease network traffic and increase the efficiency of your application.


 Additional Info
    

Configuring Output for Retrieving Data 

 

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