This guide explains the process of transitioning from the deprecated GetCategoryFeatures call within the Trading API to the REST Metadata API methods. The Metadata API now offers access through six distinct methods within the marketplace resource, enabling users to retrieve detailed information on features supported by all leaf categories within a marketplace. Examples of these features include listing durations, shipping term requirements, and Best Offer support. Descriptions of the Metadata API methods are provided, including tables that map fields from the Trading API calls to their equivalent fields in the relevant Metadata API methods.
Note: The Metadata API methods only return metadata on leaf categories, so unlike the Trading API, there is no concept of site defaults. The six endpoints contained in this guide return metadata for all leaf categories by default, or you can specify up to 50 leaf categories.
getCategoryPolicies
This method returns eBay category policy metadata for all leaf categories on the specified marketplace. See getCategoryPolicies for details. Use this method to return metadata returned from the GetCategoryFeatures calls through the Metadata API methods.
The following table cross-references the GetCategoryFeatures fields returned in the Trading API, with the associated getCategoryPolicies field returned in the Metadata API.
Trading API call |
Trading API field |
getCategoryPolicies field |
---|---|---|
GetCategoryFeatures |
IntangibleEnabled |
|
getClassifiedAdPolicies
This method returns eBay classified ad policy metadata for all leaf categories on the specified marketplace. See getClassifiedAdPolicies for details.
Note: This method does not support classified ads for eBay US Motors categories (EBAY_MOTORS_US). For eBay Motors Pro users, use getMotorsListingPolicies.
The following table cross-references the GetCategoryFeatures category fields returned in the Trading API, with the associated getClassifiedAdPolicies field returned in the Metadata API.
GetCategoryFeatures field |
getClassifiedAdPolicies field |
---|---|
classifiedAdPolicies.classifiedAdStreetCount Note: Returned if classifiedAdContactByAddressEnabled filter is enabled. |
getListingTypePolicies
This method returns eBay listing type policy metadata for all leaf categories on the specified marketplace. See getListingTypePolicies for details. The following table cross-references the GetCategoryFeatures category fields returned in the Trading API, with the associated getListingTypePolicies field returned in the Metadata API.
GetCategoryFeatures field |
getListingTypePolicies field |
---|---|
getMotorsListingPolicies
This method returns eBay listing type policy metadata for all leaf categories on the specified marketplace. See getMotorsListingPolicies for details. The following table cross-references the GetCategoryFeatures category fields returned in the Trading API, with the associated getMotorsListingPolicies field returned in the Metadata API.
GetCategoryFeatures field |
getMotorsListingPolicies field |
---|---|
Access the REST equivalent for these three fields through its associated enumerated value in the distanceType field. |
|
getShippingPolicies
This method returns eBay shipping policy metadata for all leaf categories on the specified marketplace. See getShippingPolicies for details. The following table cross-references the GetCategoryFeatures fields returned in the Trading API, with the associated getShippingPolicies field returned in the Metadata API.
GetCategoryFeatures field |
getShippingPolicies field |
---|---|
getSiteVisibilityPolicies
This method returns eBay international site visibility policy metadata for all leaf categories on the specified marketplace. See getSiteVisibilityPolicies for details. The following table cross-references the GetCategoryFeatures fields returned in the Trading API, with the associated getSiteVisibilityPolicies field returned in the Metadata API.
GetCategoryFeatures field |
getSiteVisibilityPolicies field |
---|---|
Deprecated/non-migrated fields
The following table contains fields that were not migrated from GetCategoryFeatures to the Metadata API and the reason.
GetCategoryFeatures field not migrated | Reason |
---|---|
eBay APIs no longer return this data point, as only a limited amount of categories support free Gallery Plus, including Art, Antiques, Collectibles, and Pottery & Glass categories |
|
All non-motor vehicle categories offer Picture Pack free of charge, so this data point is no longer applicable |
|
A Return Policy Description field is only supported on a limited number of eBay marketplaces, and the supported marketplaces are Germany, Austria, France, Italy, and Spain. For these marketplaces, the field is supported across all categories, so the leaf category level metadata is no longer relevant |
|
This data point is no longer relevant since eBay controls all online payments, and sellers are always expected to use secure/safe payment methods for offline/local pickup transactions |
|
Deprecated feature (no longer applicable) |