The Taxonomy Facets API provides a way to retrieve all unique values for a specific taxonomy field from MarketCheck's comprehensive specifications database. This endpoint is particularly useful for applications that require a complete list of possible values for fields like make, model, trim, and other vehicle specifications without being limited to the current inventory.
This API allows you to gather unique facet values for various taxonomy fields, enabling you to build dynamic search interfaces, auto-complete features, and more. It supports multiple fields in a single request, making it efficient for applications that need to display or filter vehicle specifications.
GET https://api.marketcheck.com/v2/specs/car/terms
All parameters are optional unless specifically noted as required.
Your MarketCheck API authentication key. Required for every request, unless OAuth is used.
Filters listings by body subtype (e.g., Crew, Extended, Regular, Extended Crew). Accepts multiple values separated by commas.
Filters listings by body type (e.g., SUV, Pickup, Sedan, Hatchback, Convertible). Accepts multiple values separated by commas.
Filters listings by drivetrain (FWD
, RWD
, 4WD
). Accepts multiple values separated by commas.
Filters listings by engine designation (e.g., 2.0L I4
, 3.5L V6
, 2.5L H4
). Accepts multiple values as comma-separated list.
Filters listings by engine block layout (V
, I
, H
). Accepts multiple values separated by commas.
Filters listings by engine displacement size (e.g., 2.0
, 2.5
, 3.5
). Accepts multiple values separated by commas.
The field name for which to perform auto-completion.
Filters listings by fuel type (e.g., Unleaded
, Diesel
, Electric
, Premium Unleaded
, Electric / Unleaded
). Accepts multiple values separated by commas.
Filters listings by vehicle make (e.g., Toyota
, Ford
, Mercedes-Benz
). Accepts multiple values as comma-separated list.
Filters listings by specific vehicle model (e.g., Camry
). Accepts multiple values separated by commas.
Filters listings by transmission type (Automatic
, Manual
, etc.). Accepts multiple values separated by commas.
Filters listings by vehicle trim (e.g., EX
, Limited
). Accepts multiple values separated by commas.
Filters listings by vehicle type (Truck
, Car
). Accepts multiple values separated by commas.
Filters listings by model year (e.g., 2020
). Accepts multiple years separated by commas.
field=<field_name>|<offset>|<limit>
field parameter examples:
field=make
field=make,model,year
field=make|0|100,model|0|50
The following fields are available for facet retrieval and can be specified in the field
parameter:
Field | Description |
---|---|
make | Vehicle manufacturer (e.g., Toyota, Ford) |
model | Vehicle model name (e.g., Camry, Mustang) |
trim | Specific trim level or variant |
body_type | Main body style (e.g., sedan, SUV, coupe) |
body_subtype | Subcategory of body style (e.g., convertible) |
vehicle_type | General vehicle classification (e.g., car, truck) |
transmission | Transmission type (e.g., automatic, manual) |
drivetrain | Drivetrain configuration (e.g., FWD, AWD) |
fuel_type | Type of fuel used (e.g., gasoline, diesel) |
engine | Engine name or code |
engine_block | Engine block type (e.g., V6, I4) |
engine_size | Engine displacement or size (e.g., 2.0L, 3.5L) |
year | Model year of the vehicle |
By default, the API returns the first 20 unique values for each specified field. You can control pagination using the syntax in the field
parameter:
Syntax: field=<field_name>|<offset>|<limit>
Examples:
field=make|0|100
- Get first 100 makesfield=model|50|25
- Get 25 models starting from index 50field=make|0|100&field=model|0|50
- Get first 100 makes and first 50 modelsResults are sorted alphabetically in ascending order by default. The sorting cannot be customized.
interface TaxonomyFacetsResponse {
terms: string[];
}
Success Response
200 OK
Retrieve unique values for specific taxonomy fields to build dynamic search interfaces or dropdown menus.
Example:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/specs/car/terms',
params: {api_key: 'YOUR_API_KEY', field: 'make,fuel_type'},
headers: {Accept: 'application/json'}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
Retrieve unique fuel types filtered by specific vehicle make to get more targeted results.
Example:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/specs/car/terms',
params: {api_key: 'YOUR_API_KEY', field: 'fuel_type', make: 'toyota'},
headers: {Accept: 'application/json'}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}