cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to retrieve path ID for eBay category with developer API?

I would like to retrieve the category path of any given leaf category. Previously, the GetCategoryInfo API call in the Shopping API returned this information, but this API call is now deprecated. I was looking into the trading API's GetCategories API call which returns a CategoryParentID. The documentation claims the API call can return all parent ID's of a category to the root, but it's only returning the direct parent for me.

An example response can be seen below. The leaf category has two ancestors, but GetCategories returns only one:

 

<?xml version="1.0" encoding="UTF-8"?>
<GetCategoriesResponse xmlns="urn:ebay:apis:eBLBaseComponents">
    <Timestamp>2024-01-31T22:28:50.073Z</Timestamp>
    <Ack>Success</Ack>
    <Version>1347</Version>
    <Build>E1347_CORE_APICATALOG_19146446_R1</Build>
    <CategoryArray>
        <Category>
            <BestOfferEnabled>true</BestOfferEnabled>
            <AutoPayEnabled>true</AutoPayEnabled>
            <CategoryID>169291</CategoryID>
            <CategoryLevel>3</CategoryLevel>
            <CategoryName>Women&apos;s Bags &amp; Handbags</CategoryName>
            <CategoryParentID>260010</CategoryParentID>
            <LeafCategory>true</LeafCategory>
        </Category>
    </CategoryArray>
    <CategoryCount>1</CategoryCount>
    <UpdateTime>2023-10-11T09:35:36.000Z</UpdateTime>
    <CategoryVersion>130</CategoryVersion>
    <ReservePriceAllowed>true</ReservePriceAllowed>
    <MinimumReservePrice>0.0</MinimumReservePrice>
</GetCategoriesResponse>

 

How can I retrieve the entire taxonomy path of a category with eBay's current API?

Message 1 of 3
latest reply
2 REPLIES 2

How to retrieve path ID for eBay category with developer API?

Hi @lev449 

 

Please note that the GetSuggestedCategories call of Trading API has been deprecated and will be decommissioned on July 1st, 2024. The alternative to this call is the getCategorySuggestions method of the Taxonomy API, which also returns suggested eBay categories based on keywords.

 

The Taxonomy API methods enable you to assist both buyers and sellers by:

  • Helping sellers to determine the best eBay category under which to offer each inventory item for sale in a selected eBay marketplace. It helps sellers to select the categories of items to include in a campaign or promotion. It also provides information about the aspects to include when defining an inventory item in a given category.
  • Helping buyers to determine the appropriate categories in which to browse or search for the items they're looking to purchase in a particular eBay marketplace. For more information, see the Buying Integration Guide.

Note: Refer to the Taxonomy API overview page for more information about how the Taxonomy API can be used for both buyers and sellers.

Best Regards,
eBay Developer Support
Message 2 of 3
latest reply

How to retrieve path ID for eBay category with developer API?

Hello!

 

Thank you for the response. How can I retrieve the the entire category path of a leaf category using the GetCategories API call I linked in the original post?

 

Thanks

Message 3 of 3
latest reply