Skip to main content

GET/similar_items

This method retrieves items that are similar to the specified item.

Items are considered similar if they can serve as a replacement or alternative for the specified item. Similar items from a catalog are associated with the same product. For items not associated with a product, similarity is determined by keywords in the title and attribute value matches.

The item for which to retrieve similar items is specified by its item_id value, input as a required query parameter. A successful call returns a list of items similar to the specified item, as well as details about each item. This includes the current price and shipping costs are returned for each item, as well as basic information about the listing, such as its item ID, price, shipping cost, and time left on the listing.

Input

Resource URI

GET https://api.ebay.com/buy/marketing/v1/similar_items?

This method is not supported in Sandbox environment.

URI parameters

ParameterTypeDescription
excluded_category_idsarray of stringThis query parameter can be used to specify categories to exclude from the result set.

Because the list of eBay category IDs is not published and category IDs are not the same across all eBay marketplaces, category IDs may be determined by:
  • Visiting the Category Changes page
  • Using the Taxonomy API. Refer to Get Categories for Buy APIs for complete information.
  • Issuing the following call to retrieve the dominantCategoryId for an item:
    /buy/browse/v1/item_summary/search?q= keyword&fieldgroups=ASPECT_REFINEMENTS

Up to three categories to be excluded can be specified through this parameter.

Occurrence: Optional

buying_optionstringThis query parameter can be used to filter the result set based on the item's buying option type.

Valid Values:
  • FIXED_PRICE
  • AUCTION
  • BEST_OFFER
  • CLASSIFIED_AD

Occurrence: Optional

filterarray of FilterFieldAn array of field filters that can be used to limit/customize the result set.

Currently, only itemEndDate is supported. This filter limits the result set to include only items scheduled to end before the specified date and time. For example,
filter=itemEndDate:[..2025-12-14T07:47:48Z]

Occurrence: Optional

max_resultsintegerThis query parameter can be used to specify the max number of items to display from the result set.

Default: 20

Max value: 50

Occurrence: Optional

item_idstringThis query parameter specifies the unique RESTful identifier of the item for which to retrieve similar items.

RESTful Item ID Format: v1|#|#

For a single SKU listing, pass in the item ID:
v1|2**********2|0
For a multi-SKU listing, pass in the identifier of the variation:
v1|1**********2|4**********2

For more information about item IDs for RESTful APIs, refer to Item ID legacy API compatibility overview in the Buying Integration Guide.

Occurrence: Required

HTTP request headers

All requests made to eBay REST operations require you to provide the Authorization HTTP header for authentication authorization.

The table below shows additional HTTP request headers that are either required, conditionally required, or strongly recommended for this method. Other standard HTTP request headers- opens rest request components page (not in this table) can also be used, but they are optional.

HeaderTypeDescription
X-EBAY-C-MARKETPLACE-IDstringThis header identifies the seller's eBay marketplace. It is required for all marketplaces outside of the US.

Note: If the marketplace ID value is invalid or missing, the default value of EBAY_US is used.
See MarketplaceIdEnum for a list of supported marketplaces.

Default: EBAY_US

Occurrence: Strongly Recommended

X-EBAY-C-ENDUSERCTXstringThis header can be used to pass in affiliate credentials to return item affiliate information. For more information, see Header for affiliate information.

Occurrence: Optional

Accept-LanguagestringThis header is used to indicate the natural language and locale preferred by the user for the response.

This header is required when targeting a specific locale of a marketplace that supports multiple locales. For example:
  • When targeting the French locale of the Belgium marketplace, it is required to pass in fr-BE to specify this. If this locale is not specified, the language will default to Dutch.
  • When targeting the French locale of the Canadian marketplace, it is required to pass in fr-CA to specify this. If this locale is not specified, the language will default to English.

Occurrence: Conditional

OAuth scope

This request requires an access token created with the client credentials grant flow, using one or more scopes from the following list (please check your Application Keys page for a list of OAuth scopes available to your application):

https://api.ebay.com/oauth/api_scope/buy.marketing.similaritems

See OAuth access tokens for more information.

Request payload

This call has no payload.

Request fields

This call has no field definitions.

Output

HTTP response headers

This call has no response headers.

Response payload

Response fields

Output container/fieldTypeDescription
similarItemsarray of SimilarItem

This array returns a list of similar items matching the input criteria.

Occurrence: Always

similarItems.bidCountinteger

undefined

Occurrence: Conditional

similarItems.currentBidPriceAmount

This integer value indicates the total number of bids that have been placed for an auction item.

This field is only returned for auction items.

Occurrence: Conditional

similarItems.currentBidPrice.currencyCurrencyCodeEnum

The three-letter ISO 4217 code representing the currency of the amount in the value field.

Occurrence: Conditional

similarItems.currentBidPrice.valuestring

The monetary amount, in the currency specified by the currency field.

Occurrence: Conditional

similarItems.galleryImageUrlstring

The container that returns the current highest bid for an auction item.

The value field shows the dollar value of the current highest bid, and the currency (3-digit ISO code) field denotes the currency associated with that bid value.

This container will only be returned for auction items.

Occurrence: Always

similarItems.itemEndDatestring

A timestamp that indicates the date and time a listing is scheduled to end.

This value is returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ), which can be converted into the local time of the buyer.

Occurrence: Conditional

similarItems.itemIdstring

The unique RESTful identifier of the item.

Occurrence: Always

similarItems.itemLocationItemLocation

This container returns the 2-digit ISO code of the country in which the item is location.

Occurrence: Conditional

similarItems.itemLocation.countryCountryCodeEnum

The two-letter ISO 3166 standard code that indicates the country in which the item is located.

Occurrence: Conditional

similarItems.itemWebUrlstring

The URL to the View Item page of the listing.

Occurrence: Conditional

similarItems.listingMarketplaceIdMarketplaceIdEnum

The unique identifier of the eBay marketplace of the listing.

Occurrence: Conditional

similarItems.priceAmount

The price of the item.

This field will only be returned for fixed-price listings and auction listings that are enabled with the Buy it Now feature.

Occurrence: Conditional

similarItems.price.currencyCurrencyCodeEnum

The three-letter ISO 4217 code representing the currency of the amount in the value field.

Occurrence: Conditional

similarItems.price.valuestring

The monetary amount, in the currency specified by the currency field.

Occurrence: Conditional

similarItems.primaryCategoryCategory

This container returns the category name and ID of the primary listing category.

Occurrence: Always

similarItems.primaryCategory.categoryIdstring

The unique identifier of the leaf category for this item. A leaf category is the lowest level in that category and has no children.

Occurrence: Conditional

similarItems.primaryCategory.categoryNamestring

The name of the category the item is listed in.

Occurrence: Conditional

similarItems.shippingCostAmount

The final shipping cost for all the item.

Occurrence: Always

similarItems.shippingCost.currencyCurrencyCodeEnum

The three-letter ISO 4217 code representing the currency of the amount in the value field.

Occurrence: Conditional

similarItems.shippingCost.valuestring

The monetary amount, in the currency specified by the currency field.

Occurrence: Conditional

similarItems.shippingCostTypestring

Indicates the type of shipping used to ship the item. Possible values are FIXED (flat-rate shipping) and CALCULATED (shipping cost calculated based on item and buyer location).

Occurrence: Always

similarItems.subtitlestring

A subtitle is optional and allows the seller to provide more information about the item, possibly including keywords that may assist with search results.

Occurrence: Conditional

similarItems.titlestring

The title of the item as its appears on the listing.

Occurrence: Always

HTTP status codes

This call can return one of the following HTTP status codes. For an overview of the status codes, see HTTP status codes in Using eBay RESTful APIs.

StatusMeaning
200OK
400Bad Request
500Internal Server Error

Error codes

For more on errors, plus the codes of other common errors, see Handling errors.

CodeDomainCategoryMeaning
12000API_MARKETINGAPPLICATIONThere was a problem with an eBay internal system or process. Contact eBay developer support for assistance.
12600API_MARKETINGREQUESTThere is one or more issues with the 'excluded_category_ids' filter. Please see documentation for correct syntax and make sure you are using a valid category ID for the marketplace.
12601API_MARKETINGREQUESTThe 'excluded_category_ids' field has exceeded the maximum limit of 3 category IDs.
12602API_MARKETINGREQUESTThe specified buying option is invalid. Please see documentation for supported values.
12603API_MARKETINGREQUESTThere is an issue with the 'itemEndDate' filter. Please see documentation for details on proper syntax of this filter and the date range constraints.
12604API_MARKETINGREQUESTThe 'max_results' value must be a positive integer from 1 up to 50.
12605API_MARKETINGREQUESTThe required 'item_id' parameter is either missing or has an invalid value. Please include this parameter and use a supported value.

Warnings

This call has no warnings.

Samples

New to making API calls? Please see Making a Call.

Note: Identifiers, such as order IDs or user IDs, and personal data in these samples might be anonymized or may no longer be active on eBay. If necessary, substitute current, relevant eBay data in your requests.

Sample 1: Retrieve similar items

This method can be used to retrieve items, and information about each item, that are similar to the specified item.

Input

The item_id URI parameter, which specifies the item for which to find similar items, is required. There is no additional payload required for this request.

GEThttps://api.ebay.com/buy/marketing/v1/similar_items?item_id=1********2

Output

If the call is successful, a list of items similar to the specified item is returned. This includes information such as each item's ID, category information, marketplace, shipping cost, and price.