question

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

Remove duplucate item ids when using findItemsByCategory

 

I am using findItemsByCategory to list the first 100 items for a particular category, however there seems to be many duplicated item ids in the search results. For example, if I search in the T-Shirts category i get a list like follows:

 

Item ID: 251107678387 Category ID:63869
Item ID: 150859491532 Category ID:63869
Item ID: 300744889291 Category ID:63869
Item ID: 290614660261 Category ID:63869
Item ID: 130569560521 Category ID:63869
Item ID: 130569560521 Category ID:63869
Item ID: 130569560521 Category ID:63869
Item ID: 130569560521 Category ID:63869
Item ID: 360315983004 Category ID:63869
Item ID: 360315983004 Category ID:63869
Item ID: 360315983004 Category ID:63869
Item ID: 360315983004 Category ID:63869
Item ID: 320819352568 Category ID:63869
Item ID: 320819352568 Category ID:63869
Item ID: 320819352568 Category ID:63869
Item ID: 320819352568 Category ID:63869
Item ID: 320819352568 Category ID:63869
Item ID: 320819352568 Category ID:63869
Item ID: 320819352568 Category ID:63869
Item ID: 320819352568 Category ID:63869
Item ID: 320819352568 Category ID:63869
Item ID: 320819352568 Category ID:63869
Item ID: 320819352568 Category ID:63869
...etc

 

Regarding the item #320819352568, there are actually 36 occurrences of this. If I view the actual item page I see that it is for a T-Shirt which is available in 9 colors and 4 sizes, so I'm guessing there's one for each combination of these. Is there a way of removing these duplicates so that I end up with 100 unique item ids?

 

Thanks in advance,

 

Lee

 

findingapi
10 |600

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
$$anonymous$$ avatar image
0 Likes"
$$anonymous$$ Suspended answered

HideDuplicateItems will handle some variations

 

http://developer.ebay.com/DevZone/finding/CallRef/types/ItemFilterType.html

 

Get to know the item filters. Some useful stuff in there.

10 |600

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.