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

Testing search in API Explorer returns no items

I am new to ebay API. I have been using the API explorer to test the search feature. However, it returns 0 items for any search query. Here is a sample response when I search for "drone".

 

{
"href": "https://api.sandbox.ebay.com/buy/browse/v1/item_summary/search?q=drone&limit=3&offset=0",
"total": 0,
"limit": 3,
"offset": 0
}

 

Am I missing something?

thanks

Message 1 of 5
latest reply
4 REPLIES 4

Re: Testing search in API Explorer returns no items

The sandbox environment doesn't have much if anything as far as searching. Nothing wrong, while best to stay in sandbox for modifying and testing stuff, the results of that specific call would need to be run against production to see some results.

Message 2 of 5
latest reply

Re: Testing search in API Explorer returns no items

It's possible that you're not providing the necessary authentication or authorization credentials to access the eBay API. In order to use the eBay API, you need to register as an eBay developer and obtain an access token. You also need to make sure that you're using the correct endpoint for the eBay API you're trying to access (e.g. Sandbox vs Production).

Here are some steps you can take to troubleshoot your issue:

  1. Check your authentication and authorization credentials: Make sure you've registered as an eBay developer and obtained an access token. Also, double-check that you're using the correct endpoint for the eBay API you're trying to access (Sandbox vs Production).

  2. Check your search query: Make sure that your search query is valid and includes any necessary parameters. For example, if you're searching for a specific category of items, you need to include the category ID in your search query.

  3. Check the eBay API documentation: Make sure that you're using the correct API endpoint and parameters for the eBay API you're trying to access. The eBay API documentation can help you troubleshoot any issues you may be experiencing.

  4. Check your code: Make sure that your code is correctly formatted and that you're sending the correct parameters in your API request. You can also try using a different programming language or framework to see if that resolves your issue.

If you're still having issues after taking these steps, you may want to reach out to the eBay developer support team for further assistance.

Message 3 of 5
latest reply

Re: Testing search in API Explorer returns no items

I had the same problem using sandbox, switching to the production account returned results. I figure that there are no items to return in the sandbox

 

Message 4 of 5
latest reply

Re: Testing search in API Explorer returns no items

Thanks everyone. I switched to production env and got the expected results.  I was worried about using up test calls against the daily API call limit. 

Message 5 of 5
latest reply