question

$$anonymous$$ avatar image
0 Likes"
$$anonymous$$ asked ·

How to get only apparel

Hi,

I am using ebay api Rest finding service 

I want to fetch only  Mens' wear Apparels

what keywords or filter should i use

now under Men's wear Apparel if user clicks on pants or shirts then how to get new response having

only Men's wear apparel >pants or shirts

 

some please provide code syntax.

 

Thousands of thanks in advance...,

aspnetcaspnet-mvcaspnetc
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
dstudeba avatar image
0 Likes"
dstudeba answered ·

In the finding service check out the categoryId property.  A quick and dirty way to find out the category Id is to hover over a link to that category on the eBay website.  You will see a number in the link.  Double check that this is the correct category by putting it in the URL below in a browser.  (make sure to substitute your ID)

 

http://open.api.ebay.com/Shopping?callname=GetCategoryInfo&appid=YourApp...

 

returned

 

<CategoryID>1059</CategoryID>

<CategoryLevel>2</CategoryLevel>

<CategoryName>Men's Clothing</CategoryName>

<CategoryParentID>11450</CategoryParentID>

<CategoryNamePath>Clothing, Shoes & Accessories:Men's Clothing</CategoryNamePath>

<CategoryIDPath>11450:1059</CategoryIDPath>

<LeafCategory>false</LeafCategory>

 

You can do that for the others you are interested in and get the children categories.

 

If you want to do a lot more categories you should really figure them out programmatically as explained here.

 

 

http://developer.ebay.com/DevZone/shopping/docs/CallRef/GetCategoryInfo.html

 

 

 

· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.