cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Some sandbox queries returning 0 results

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())
Message 1 of 2
latest reply
1 REPLY 1

Some sandbox queries returning 0 results

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.

 

 

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 2 of 2
latest reply