Hi everyone, I'm trying to retrieve the ebay categories by using the GetCategories call and it doesn't return all the subcategories that are on the site. For instance the Squash Equipment has Rackets, Clothing, Shoes etc. subcategories but the call only returns the Squash (62166) category. I've searched the nodes by name, and by the parent id of Squash (62166) and i couldn't find anything.
https://www.ebay.co.uk/b/Squash-Equipment/62166 What's more strange some of our listings get automatically assigned to these subcategories, so my question is are these real ebay subcategories or is it some sort of internal ebay category subclassification? I'm currently downloading only specific parent nodes, but i tried getting all the nodes and it didn't help.
Hi @sweatband, Thanks for your post. GetCategories does return the subcategories. Please use the tag ViewAllNodes and set it to true. This flag controls whether all eBay categories (that satisfy input filters) are returned, or only leaf categories (you can only list items in leaf categories) are returned. The default value is 'true', so if this field is omitted, all eBay categories will be returned. If you only want to retrieve leaf categories, include this flag and set it to 'false'. The actual data returned will vary depending on how you configure other fields in the request. By Default the flag is set to false. Please refer to the documentation
https://developer.ebay.com/Devzone/XML/docs/Reference/eBay/GetCategories.html for more information. Thanks, eBay Developer Support