My api/xml is working fine with returning auctions ending from present until 10 days but is not working for listings ending after 10 days:
Here is how I am downloading results:
public string DownLoad(string url)
{
// used to build entire input
StringBuilder sb = new StringBuilder();
// used on each read operation
byte[] buf = new byte[32768];
try
{
// prepare the web page we will be asking for
HttpWebRequest request = (HttpWebRequest)
WebRequest.Create(url);
// execute the request
HttpWebResponse response = (HttpWebResponse)
request.GetResponse();
// we will read data via the response stream
Stream resStream = response.GetResponseStream();
string tempString = null;
int count = 0;
do
{
// fill the buffer with data
count = resStream.Read(buf, 0, buf.Length);
// make sure we read some data
if (count != 0)
{
// translate from bytes to ASCII text
tempString = Encoding.ASCII.GetString(buf, 0, count);
// continue building the string
sb.Append(tempString);
}
}
while (count > 0); // any more data to read?
}
catch (Exception)
{
timer1.Enabled = false;
progressBar1.Visible = false;
msg.ForeColor = Color.Red;
msg.Text = "Please try after some time !!!";
msg.Visible = true;
}
// print out page source
// MessageBox.Show(sb.ToString());
return sb.ToString();
}
2
Answers
According to the eBay DevZone Finding API Call Reference ItemFilterType documentation for EndTimeTo, there is no stated/published limit on EndTimeTo:
Can you publish your C# code creating this URL?
Your first URL params are: Year 11, Month 8, Date 10
Your second URL params are: Year 11, Month 20, Date 10
I am not really sure what is your problem, I tried the same API with the time difference less than 10 days and more than 10 days.
Less than 10 days
More than 10 days
Try it out, it should work.
PS: For me. both of your statements don’t work, I get this:
Update:
eBay does not allow any auctions to last more than 10 days. So, if you try to find an auction from: 8/24 to 8/30, where current date us: 8/08, you will not find anything. Because if an auction is listed today, at max, a seller can put it up for sale is till 08/18.
Replace
AuctionWithBIN
withStoreInventory
to get results from stores which has listings more than 10 days.