Reputation: 296
I try to search some product details by eBay API, I meet a problem.
For some EAN, the product really exist in eBay' page, for example, a movie:
http://www.ebay.com/itm/The-Shawshank-Redemption-DVD-NEW-/281073136687?hash=item417143b42f:g:Kd0AAOSwq5lTq3wI
[By the Way, I got the movie's ebay page by google "site:ebay.com 9325336105405"]
When I use the eBay API to find the product
(e.g. click: http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsByProduct&SERVICE-VERSION=1.0.0&SECURITY-APPNAME=Your_App_ID_Goes_Here&RESPONSE-DATA-FORMAT=XML&REST-PAYLOAD&globalId=EBAY-AU&productId.@type=EAN&productId=9325336105405)
I got such xml response:
<findItemsByProductResponse xmlns="http://www.ebay.com/marketplace/search/v1/services">
<ack>Failure</ack>
<errorMessage>
<error>
<errorId>41</errorId>
<domain>Marketplace</domain>
<severity>Error</severity>
<category>Request</category>
<message>Invalid product ID value.</message>
<subdomain>Search</subdomain>
<parameter>9325336105405</parameter>
</error>
</errorMessage>
<version>1.13.0</version>
<timestamp>2016-03-12T08:10:35.039Z</timestamp>
</findItemsByProductResponse>
And when I type the EAN in the seachbox of eBay website, eBay says:
This listing (9325336105405) has been removed, or this item is not available.
Please check that you've entered the correct item number
Listings that have ended 90 or more days ago will not be available for viewing.
I am sure this is a correct EAN, and this product have not been ended, It still has a button 'Buy it now'.
Since the EAN starts with '932' meas that is a Australia product, so I try to search it on www.ebay.com.au, and get the same response.
Why the eBay API treat such EAN as invalid?
How could I fetch the details of this EAN by eBay API?
Thanks a looooooot!!!
Upvotes: 3
Views: 1337
Reputation: 842
Use the findItemsAdvanced call, and put the EAN in keywords and you will get a good response.
http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsAdvanced&SERVICE-VERSION=1.0.0&SECURITY-APPNAME=<Your AppID>&RESPONSE-DATA-FORMAT=XML&REST-PAYLOAD&globalId=EBAY-US&keywords=9325336105405
Upvotes: 4