Alex Krupka
Alex Krupka

Reputation: 730

eBay Finding API - findItemByKeyword search result returning attribute field as null

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

http://www.ebay.com/itm/Western-Digital-Caviar-Green-3-TB-Internal-5400-RPM-WD30EZRX-Hard-Drive-/300856751436?pt=US_Internal_Hard_Disk_Drives

Thanks!

Upvotes: 0

Views: 607

Answers (2)

Victor Basso
Victor Basso

Reputation: 5796

GetMultipleItems in Shopping API returns "attributes" for 20 items. You need to add "IncludeSelector=ItemSpecifics" and the list of item ids in the request.

Upvotes: 0

Srikanth Venugopalan
Srikanth Venugopalan

Reputation: 9049

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 per GetItem call. Here is the reference.

The

Upvotes: 2

Related Questions