08-20-2023 10:56 AM
https://developer.ebay.com/api-docs/buy/static/ref-buy-browse-filters.html
This web page has a filter called lastSoldDate. I'm trying to use it but getting an error about the date being in an invalid format even when I copy/paste the example or update the example to start and end dates within the last 3 months.
filter=lastSoldDate:[2018-08-30T00:00:00Z..2018-09-17T00:00:00Z]
filter=lastSoldDate:[2023-05-30T00:00:00Z..2023-08-17T00:00:00Z]
I tried URL encoding the lastSoldDate value with the same results.
Any ideas or recommendations?
Thanks!
08-20-2023 11:54 AM
Did the encoding look like this?
&filter=lastSoldDate%3A%5B2018-08-30T00%3A00%3A00Z..2018-09-17T00%3A00%3A00Z%5D
08-20-2023 01:25 PM
It did, but I tried again copy/pasting what you put and the search worked this time. I've compared the string and it's the same, so I'm not sure why it's working now.
The search results are showing unexpected results.
Here is the actual request: https://api.ebay.com/buy/browse/v1/item_summary/search?q=ravenloft+children+of+the+night+appendix&li...
Instead of only listing items that were sold within the period specified, the results are for all items currently available for purchase. Any idea why?
08-20-2023 02:43 PM
I am not sure how that call is supposed to work.
When I used your keywords directly on the site, there was only one item that sold on 28 July 2023.
Also, there are only 4 active listings matching the keywords - was your query returning more than four? I see it is supposed to be limited to only 3.
I'm not sure what the "lastSoldDate" means in the context of the Browse API. eBay removed ended items from the Finding API a few years ago and has directed developers to use the Marketplace Insights API for historical data up to 90 days old. So, either the "lastSoldDate" is erroneously available to the Browse API or else it has a different meaning, such as finding a multi-quantity item that is still active, but that had a recent sale.
08-20-2023 09:44 PM
The Marketplace Insights API requires permission, right?
08-21-2023 07:38 AM
Yes, it's hard to get approved and is not the place to start with the developer program.