03-01-2023 12:05 AM
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
03-01-2023 08:46 AM
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.
03-10-2023 10:15 PM
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:
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).
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.
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.
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.
04-27-2023 05:27 AM
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
05-01-2023 04:40 PM
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.