getCompatibilitySearchValues
Note: All calls in the Product Metadata API have been deprecated and will be decommissioned on April 27th, 2026. Current users of this API are recommended to migrate to the compatibilities methods of the Metadata API.
Use this call to find property values for the specified category and application property (e.g., Make or Model). The required input consists of the category ID of the compatibility-enabled category and the property of the application (i.e., assembly or vehicle) for the item or product you want to list. This call retrieves search values for a single property name only.
Compatibility search values can be used to:
- Specify compatibility manually by application when listing an item
When you list at item with parts compatibility, you specify the properties and corresponding values that describe the assembly (vehicle) with which your item is compatible. You may only use the compatibility search names and values supported by the primary category of your listing request.
- Find compatible products
The easiest way to list an item with parts compatibility is to list with an eBay catalog product that has compatibilities. Use compatibility search names and values to construct filters for the findProductsByCompatibility call in the Product API to find products with specific compatibilities.
See Parts Compatibility for more information about the purpose of parts compatibility and how to use the API to include parts compatibility into your listings.
See also the reference documentation for these calls:
- getCompatibilitySearchDataVersion - Get the metadata version for the specified category.
- getCompatibilitySearchNames - Returns all properties available for a given catalog enabled category.
- getCompatibilitySearchValuesBulk - Retrieves property values for multiple fields (up to 10).
See also the reference documentation for this call (in the Product API Reference):
- findProductsByCompatibility - Finds products for the specified category, catalog property name-value pairs, and compatibility property name-value pairs.
Input
See also Samples.
The box below lists all fields that could be included in the call request. To learn more about an individual field or its type, click its name in the box (or scroll down to find it in the table below the box).
<?xml version="1.0" encoding="utf-8"?> <getCompatibilitySearchValuesRequest xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"> <!-- Call-specific Input Fields --> <propertyName> string </propertyName> <!-- Standard Input Fields --> <categoryId> string </categoryId> <listFormatOnly> boolean </listFormatOnly> <propertyFilter> PropertyValue <propertyName> string </propertyName> <value> Value <number> NumericValue <unitOfMeasurement> token </unitOfMeasurement> <value> string </value> </number> <text> StringValue <value> string </value> </text> <URL> URIValue <value> anyURI </value> </URL> </value> <!-- ... more value nodes allowed here ... --> </propertyFilter> <!-- ... more propertyFilter nodes allowed here ... --> <sortOrder> SortOrder <order> OrderType </order> <propertyName> string </propertyName> </sortOrder> <!-- ... more sortOrder nodes allowed here ... --> </getCompatibilitySearchValuesRequest>
| Argument | Type | Occurrence | Meaning |
|---|
If a specified category ID doesn't match an existing category for the site, eBay returns an invalid-category error message. To determine valid categories, use the Trading API GetCategories call.
Max length: 10.
Default: false.
repeatable: [0..*] Constrains the output of values for the given PropertyLiteral (or group of properties) as per given ConstrainingPropertyLiteral:ConstrainingValueLiteral pair (or pairs) according to the respective dependency graph. AND-logic will be applied within the constraint.
repeatable: [0..*] A value for the property.
.unitOfMeasurement token Optional Unit of measure for a numeric value.
- Allowed values:
- bps
- Bits per second. A unit of data transmission.
- kbps
- Kilobits per second. A unit of data transmission.
- bit
- Binary digit. A unit of information storage.
- byte
- An ordered collection of bits. A unit of information storage equal to 8 bits in most contexts.
- kb
- Kilobit. A unit of information storage equal to 1024 bits.
- MB
- Megabyte. A unit of information storage equal to one million bytes.
- mW
- Megawatt. A unit of power equal to one million watts.
- W
- Watt. The base SI unit of power.
- Hz
- Hertz. A unit of frequency equal to one cycle per second.
- kHz
- Kilohertz. A unit of frequency equal to 1,000 cycles per second.
- m
- Meter. The base unit of distance.
- mm
- Megameter. A unit of distance equal to one million meters.
- rph
- Revolutions per hour. A unit of frequency.
- hr
- Hour. A unit of time equal to 3,600 seconds.
- min
- Minute. A unit of time equal to 60 seconds.
- ms
- Microsecond. A unit of time equal to one millionth of a second.
- ns
- Nanosecond. A unit of time equal to 10-9 seconds.
- sec
- Seconds. The base unit of time.
- g
- Grams. A unit of mass equal to one one-thousandth of the SI base unit, the kilogram.
- lbs
- Pounds. The base Imperial unit of mass.
repeatable: [0..*] Sort order for property values in the result set. You can sort by any of the searchable properties, such as Year, Make, or Model. If no sort order is specified then values are sorted in ascending order.
Sorting can be applied only when the response is in list format (i.e., treeFormat in the response is false).
For sorting, characters are compared at each position (i.e., first character, second character, etc.). When values are sorted in ascending order, numbers (0-9) sort before uppercase letters (A-Z), which sort before lowercase letters (a-z). For example, 268 precedes 3, CTS comes before Camry, and 911 comes before A3.
Descending order is the opposite of ascending, with lowercase letters (z-a) before uppercase letters (Z-A) and numbers last (9-0).
Applicable values:
Output
See also Samples.
The box below lists all fields that might be returned in the response. To learn more about an individual field or its type, click its name in the box (or scroll down to find it in the table below the box).
<?xml version="1.0" encoding="utf-8"?> <getCompatibilitySearchValuesResponse xmlns="http://www.ebay.com/marketplace/marketplacecatalog/v1/services"> <!-- Call-specific Output Fields --> <metadataVersion> string </metadataVersion> <propertyValues> PropertyValue <propertyName> string </propertyName> <value> Value <number> NumericValue <unitOfMeasurement> token </unitOfMeasurement> <value> string </value> </number> <text> StringValue <value> string </value> </text> <URL> URIValue <value> anyURI </value> </URL> </value> <!-- ... more value nodes allowed here ... --> </propertyValues> <!-- ... more propertyValues nodes allowed here ... --> <propertyValuesTree> PropertyNameValue <childPropertyNameValue> PropertyNameValue <childPropertyNameValue> PropertyNameValue <childPropertyNameValue> PropertyNameValue </childPropertyNameValue> <!-- >>> childPropertyNameValue can be nested within itself an unlimited number of times >>> --> <!-- ... more childPropertyNameValue nodes allowed here ... --> <propertyName> string </propertyName> <value> Value <number> NumericValue <unitOfMeasurement> token </unitOfMeasurement> <value> string </value> </number> <text> StringValue <value> string </value> </text> <URL> URIValue <value> anyURI </value> </URL> </value> </childPropertyNameValue> <!-- ... more childPropertyNameValue nodes allowed here ... --> <propertyName> string </propertyName> <value> Value <number> NumericValue <unitOfMeasurement> token </unitOfMeasurement> <value> string </value> </number> <text> StringValue <value> string </value> </text> <URL> URIValue <value> anyURI </value> </URL> </value> </childPropertyNameValue> <!-- ... more childPropertyNameValue nodes allowed here ... --> <propertyName> string </propertyName> <value> Value <number> NumericValue <unitOfMeasurement> token </unitOfMeasurement> <value> string </value> </number> <text> StringValue <value> string </value> </text> <URL> URIValue <value> anyURI </value> </URL> </value> </propertyValuesTree> <treeFormat> boolean </treeFormat> <!-- Standard Output Fields --> <ack> AckValue </ack> <errorMessage> ErrorMessage <error> ErrorData <category> ErrorCategory </category> <domain> string </domain> <errorId> long </errorId> <exceptionId> token </exceptionId> <message> string </message> <parameter name="string"> ErrorParameter (string) </parameter> <!-- ... more parameter values allowed here ... --> <severity> ErrorSeverity </severity> <subdomain> string </subdomain> </error> <!-- ... more error nodes allowed here ... --> </errorMessage> <timestamp> dateTime </timestamp> <version> string </version> </getCompatibilitySearchValuesResponse>
| Return Value | Type | Occurrence | Meaning |
|---|
repeatable: [0..*] This will be populated for the non-fitment enabled category
repeatable: [0..*] A value for the property.
.unitOfMeasurement token Conditionally Unit of measure for a numeric value.
- Allowed values:
- bps
- Bits per second. A unit of data transmission.
- kbps
- Kilobits per second. A unit of data transmission.
- bit
- Binary digit. A unit of information storage.
- byte
- An ordered collection of bits. A unit of information storage equal to 8 bits in most contexts.
- kb
- Kilobit. A unit of information storage equal to 1024 bits.
- MB
- Megabyte. A unit of information storage equal to one million bytes.
- mW
- Megawatt. A unit of power equal to one million watts.
- W
- Watt. The base SI unit of power.
- Hz
- Hertz. A unit of frequency equal to one cycle per second.
- kHz
- Kilohertz. A unit of frequency equal to 1,000 cycles per second.
- m
- Meter. The base unit of distance.
- mm
- Megameter. A unit of distance equal to one million meters.
- rph
- Revolutions per hour. A unit of frequency.
- hr
- Hour. A unit of time equal to 3,600 seconds.
- min
- Minute. A unit of time equal to 60 seconds.
- ms
- Microsecond. A unit of time equal to one millionth of a second.
- ns
- Nanosecond. A unit of time equal to 10-9 seconds.
- sec
- Seconds. The base unit of time.
- g
- Grams. A unit of mass equal to one one-thousandth of the SI base unit, the kilogram.
- lbs
- Pounds. The base Imperial unit of mass.
.childPropertyNameValue PropertyNameValue Conditionally,
repeatable: [0..*] Property name value pairs that are children to other properties. Only returned when the response is returned as a propertyValuesTree.
.childPropertyNameValue
.childPropertyNameValue PropertyNameValue Conditionally,
repeatable: [0..*] Property name value pairs that are children to other properties. Only returned when the response is returned as a propertyValuesTree.
Recursion: Whatever the depth of data returned, the deepest level does not include childPropertyNameValue.
.childPropertyNameValue
.propertyName string Conditionally This is the canonical name of the property. Used to identify a property within a catalog that this category belongs to.
.childPropertyNameValue.value
.number NumericValue Conditionally For numeric value type.
.childPropertyNameValue.value
.number.unitOfMeasurement token Conditionally Unit of measure for a numeric value.
- Allowed values:
- bps
- Bits per second. A unit of data transmission.
- kbps
- Kilobits per second. A unit of data transmission.
- bit
- Binary digit. A unit of information storage.
- byte
- An ordered collection of bits. A unit of information storage equal to 8 bits in most contexts.
- kb
- Kilobit. A unit of information storage equal to 1024 bits.
- MB
- Megabyte. A unit of information storage equal to one million bytes.
- mW
- Megawatt. A unit of power equal to one million watts.
- W
- Watt. The base SI unit of power.
- Hz
- Hertz. A unit of frequency equal to one cycle per second.
- kHz
- Kilohertz. A unit of frequency equal to 1,000 cycles per second.
- m
- Meter. The base unit of distance.
- mm
- Megameter. A unit of distance equal to one million meters.
- rph
- Revolutions per hour. A unit of frequency.
- hr
- Hour. A unit of time equal to 3,600 seconds.
- min
- Minute. A unit of time equal to 60 seconds.
- ms
- Microsecond. A unit of time equal to one millionth of a second.
- ns
- Nanosecond. A unit of time equal to 10-9 seconds.
- sec
- Seconds. The base unit of time.
- g
- Grams. A unit of mass equal to one one-thousandth of the SI base unit, the kilogram.
- lbs
- Pounds. The base Imperial unit of mass.
.childPropertyNameValue.value
.text StringValue Conditionally For string value type.
.childPropertyNameValue.value
.URL.value anyURI Conditionally As part of request, this will be the URL to download media file. As part of response, this will be the URL where the media file is stored on eBay.
.propertyName string Conditionally This is the canonical name of the property. Used to identify a property within a catalog that this category belongs to.
.number.unitOfMeasurement token Conditionally Unit of measure for a numeric value.
- Allowed values:
- bps
- Bits per second. A unit of data transmission.
- kbps
- Kilobits per second. A unit of data transmission.
- bit
- Binary digit. A unit of information storage.
- byte
- An ordered collection of bits. A unit of information storage equal to 8 bits in most contexts.
- kb
- Kilobit. A unit of information storage equal to 1024 bits.
- MB
- Megabyte. A unit of information storage equal to one million bytes.
- mW
- Megawatt. A unit of power equal to one million watts.
- W
- Watt. The base SI unit of power.
- Hz
- Hertz. A unit of frequency equal to one cycle per second.
- kHz
- Kilohertz. A unit of frequency equal to 1,000 cycles per second.
- m
- Meter. The base unit of distance.
- mm
- Megameter. A unit of distance equal to one million meters.
- rph
- Revolutions per hour. A unit of frequency.
- hr
- Hour. A unit of time equal to 3,600 seconds.
- min
- Minute. A unit of time equal to 60 seconds.
- ms
- Microsecond. A unit of time equal to one millionth of a second.
- ns
- Nanosecond. A unit of time equal to 10-9 seconds.
- sec
- Seconds. The base unit of time.
- g
- Grams. A unit of mass equal to one one-thousandth of the SI base unit, the kilogram.
- lbs
- Pounds. The base Imperial unit of mass.
.value anyURI Conditionally As part of request, this will be the URL to download media file. As part of response, this will be the URL where the media file is stored on eBay.
Default: false.
Applicable values:
Code so that your app gracefully handles any future changes to this list.
repeatable: [0..*] Details about a single error.
Applicable values:
Code so that your app gracefully handles any future changes to this list.
- domain values:
- Marketplace
- A business or validation error occurred in the service.
- SOA
- An exception occurred in the Service Oriented Architecture (SOA) framework.
repeatable: [0..*] Various warning and error messages return one or more variables that contain contextual information about the error. This is often the field or value that triggered the error.
[ attribute name ] string Conditionally Various warning and error messages return one or more variables that contain contextual information about the error. This is often the field or value that triggered the error.
If the request fails and the application is the source of the error (for example, a required element is missing), update the application before you retry the request. If the problem is due to incorrect user data, alert the end-user to the problem and provide the means for them to correct the data. Once the problem in the application or data is resolved, re-send the request to eBay.
If the source of the problem is on eBay's side, you can retry the request a reasonable number of times (eBay recommends you try the request twice). If the error persists, contact Developer Technical Support. Once the problem has been resolved, you can resend the request in its original form.
If a warning occurs, warning information is returned in addition to the business data. Normally, you do not need to resend the request (as the original request was successful). However, depending on the cause of the warning, you might need to contact the end user, or eBay, to effect a long term solution to the problem.
Applicable values:
Code so that your app gracefully handles any future changes to this list.
- subdomain values:
- MarketplaceCatalog
- The error is specific to the Marketplace Catalog subdomain.
- MarketplaceCommon
- The error is common to all Marketplace services.
Note: The version in use is normally the latest release version, as specified in the release notes. Note that eBay releases the API to international sites about a week after the API version is released to the US site.
Samples
Code samples not yet added for this call's documentation.
Change History
| Change Date | Description |
|---|---|
| 1.2.0 04/28/2010 |
|
| 1.1.0 03/03/2010 |
|