I am using eBay’s Finding API (c#) to find items by keyword. I need to be able to see if the model number matches the item I am looking for.
I was under the impression that the MPN of a item is included in the Attributes
of the searchItems
that eBay returns, however every single one of the 100 search items returned for the keyword have their attributes set to null
. When I click on the link in the object that is the Listing URL I see the MPN clearly defined on the page.
Am I looking under the wrong rock?
Here is the link to the eBay page of a item being returned with Atrribute[] field = null
Thanks!
2
Answers
I would recommmend that you go through the API docs reference.
I wouldn’t be fooled by whats happening on Ebay site v/s what you are seeing. Your app and ebay.com may not be using the same services behind the scenes
Check out the raw response of the service. I believe this is the service URI that you would be interested in –
http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsByKeywords&SERVICE-VERSION=1.0.0&SECURITY-APPNAME=YourAppID&RESPONSE-DATA-FORMAT=XML&REST-PAYLOAD&keywords=harry%20potter%20phoenix
Check if the response contains
<MPN>
tags. I am unable to do so, because I dont have an app id with ebay.I don’t think this will have
<MPN>
tag – the API reference for findItemsByKeywords does not list the<MPN>
as part of its output.However, if you need
<MPN>
it is available as perGetItem
call. Here is the reference.The
GetMultipleItems in Shopping API returns “attributes” for 20 items. You need to add “IncludeSelector=ItemSpecifics” and the list of item ids in the request.