09-21-2023 06:46 AM
I'm trying the ebay search api for the first time, and I'm getting strange results using the sandbox, where certain searches are returning 0 results.
These are returning 0 results: 'legos', 'polo shirt', 'usb conrtroller'
'toys' returned 1 result.
'shirts' returned 10 results.
Obviously on eBay there are thousands of results for these searches in 'Used'. Does this have to do with the Sandbox? Is it not returning everything?
api = Connection(domain='svcs.sandbox.ebay.com', config_file='ebay.yaml')
response = api.execute('findItemsAdvanced', {
'keywords': 'shirts',
'itemFilter': [
{'name':'Condition','value': 3000},
],
'paginationInput': {
'entriesPerPage': 100,
'pageNumber': 1
},
}
)
print(response.dict())
09-21-2023 09:46 AM
The sandbox has limited items, so don't expect a returned value for all of your searches. You might change the condition from 3000 (used) to 1000 (new) and see if you get different results.
If you are successfully returning a few items without any errors, then try using the production domain instead of the sandbox domain.