The Taxonomy Auto-Complete API provides a way to retrieve taxonomy values for various car specifications based on user input. This API is particularly useful for applications that require auto-completion of vehicle-related fields, such as make, model, trim, and other specifications without relying on current inventory data.
It leverages MarketCheck's extensive vehicle specifications database to return relevant terms based on user input, allowing for efficient and user-friendly search experiences.
GET https://api.marketcheck.com/v2/specs/car/auto-complete
The following example demonstrates how to use the Taxonomy Auto-Complete API to get suggestions for vehicle makes and models based on user input.
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/specs/car/auto-complete',
params: {api_key: 'YOUR_API_KEY', field: 'make', input: 'toy'},
headers: {Accept: 'application/json'}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
The Taxonomy Auto-Complete API provides intelligent suggestions for vehicle specifications based on user input. This API leverages MarketCheck's comprehensive vehicle specifications database to deliver relevant auto-completion capabilities independent of current inventory data.
Available parameters for configuring auto-completion behavior and filtering suggestions:
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.
Minimum document count for a facet bucket to be returned.
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.
If true
, the auto-complete search is case-insensitive. Default — true.
The text input string used for auto-completion queries.
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.
The following parameters are required for taxonomy auto-completion requests:
Parameter | Default Value | Description |
---|---|---|
ignore_case | true | Enables case-insensitive matching for flexible search behavior |
facet_min_count | 1 | Minimum count threshold for terms to appear in suggestions |
Auto-completion is supported for the following vehicle specification fields:
Field | Description |
---|---|
make | Vehicle manufacturer (e.g., Toyota, Ford) |
model | Specific model name (e.g., Camry, Mustang) |
trim | Model variant or trim level (e.g., SE, XLE) |
body_type | General body style (e.g., sedan, SUV) |
body_subtype | Sub-category of body style (e.g., coupe, hatchback) |
vehicle_type | Vehicle classification (e.g., passenger, 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_size | Engine displacement or size (e.g., 2.0L, 3.5L) |
engine_block | Engine block type (e.g., V6, I4) |
Apply additional vehicle specification filters to refine suggestions based on current search context. Use any of the available vehicle parameters to scope suggestions to specific criteria:
make
, model
, year
, etc. to get contextual suggestionsbody_type
, transmission
, fuel_type
to refine resultsengine_size
, engine_block
for engine-related suggestionsAuto-complete results are automatically sorted by relevance using intelligent matching algorithms:
Matching Types:
Performance Limits:
The Taxonomy Auto-Complete API returns an array of matching terms based on the input and field parameters.
interface TaxonomyAutoCompleteResponse {
terms: string[]; // Array of matching terms based on input and field
}
{
"terms": ["Ford", "Ford F-150", "Ford Explorer"]
}
Status Code | Description | Common Causes |
---|---|---|
400 | Bad Request | Missing required parameters |
401 | Unauthorized | Missing/invalid API key |
403 | Forbidden | Access denied to resource |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Temporary server issues |
502 | Bad Gateway | Issues with upstream services |
503 | Service Unavailable | API maintenance or downtime |
Unlike the Auto-Complete API for inventory, this API does not depend on current inventory data. It provides auto-suggested taxonomy values from MarketCheck's comprehensive specs database for complete car specifications.
This is particularly useful for applications that require auto-completion of vehicle-related fields for configuration or search purposes.
Example:
Here we're getting auto-complete suggestions for vehicle makes starting with "for":
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/specs/car/auto-complete',
params: {api_key: 'YOUR_API_KEY', field: 'make', input: 'for'},
headers: {Accept: 'application/json'}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
Using this API, you can retrieve all possible values for a specific field, such as all models, trims, body types, etc. This is useful for applications that need to provide users with a complete list of options to choose from.
Other parameters could be used to filter the results based on other known specifications, such as make or year, to narrow down the suggestions.
Example:
Here in this example, we are retrieving all possible trim values for Ford F-150 vehicles:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/specs/car/auto-complete',
params: {
api_key: 'YOUR_API_KEY',
field: 'trim',
input: '',
make: 'ford',
model: 'f-150'
},
headers: {Accept: 'application/json'}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}