timotheus / ebaysdk-python

eBay API SDK for Python
https://developer.ebay.com/tools/sdks
Other
808 stars 326 forks source link

child categories of the category #311

Closed Olimhon31 closed 4 years ago

Olimhon31 commented 4 years ago
response = api.execute('findItemsAdvanced', {'keywords':'nike',

                                                 'paginationInput': {
                                                     'entriesPerPage': '2',
                                                     "pageNumber": '1'
                                                 },

                                 'outputSelector': ['SellerInfo', 'CategoryHistogram'],

                                                 "categoryId": '15709',
                                                 }
                           )

I requested like this . But I couldnt get CategoryHistogram. I mean I should get sub-categories of 15709. If I remove categoryId it is working fine. Is there any solution for this?

fsmosca commented 4 years ago

@Olimhon31 categoryId 15709 is already a leaf category meaning it has no child. "LeafCategory": "true"

        "Category": [
            {
                "CategoryID": "15709",
                "CategoryLevel": "4",
                "CategoryName": "Athletic Shoes",
                "CategoryParentID": "93427",
                "CategoryNamePath": "Clothing, Shoes & Accessories:Men:Men's Shoes:Athletic Shoes",
                "CategoryIDPath": "11450:260012:93427:15709",
                "LeafCategory": "true"
            }
        ]