question

dasboods avatar image
0 Likes"
dasboods asked ·

Getting Category name from Category ID

I am doing a search with the Ebay API and getting category ID's for each listing returned. How can I get the name of these categories with the ID that I've been given?

I was planning on using the end point:

GET https://api.ebay.com/commerce/taxonomy/v1_beta/category_tree/0

and then loop through the response for the matching ID and get the name. But these response are huge and require gzip compression.


Is there a better way? Thank you


categoriestaxonomy apicategory api
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
sagar_developersupport avatar image
1 Like"
sagar_developersupport answered ·

Hi @dasboods,

You can also check GetCategoryInfo call of shopping API. This call is used to retrieve high-level data for a specified eBay category, including category Name, Category ID value, and full category path.

REF: https://developer.ebay.com/devzone/shopping/docs/CallRef/GetCategoryInfo.html

Best Regards ,
eBay Developer Support

· 1 · 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.

Thank you!

0 Likes 0 ·

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.