Taxonomy Auto-Complete

Get auto-suggested taxonomy values from MarketCheck's specs database for comprehensive car specifications.

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.

Base Path

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.

request.js
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);
}

Request

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.

Parameters

Available parameters for configuring auto-completion behavior and filtering suggestions:

18 Params
api_key
string required

Your MarketCheck API authentication key. Required for every request, unless OAuth is used.

body_subtype
string

Filters listings by body subtype (e.g., Crew, Extended, Regular, Extended Crew). Accepts multiple values separated by commas.

body_type
string

Filters listings by body type (e.g., SUV, Pickup, Sedan, Hatchback, Convertible). Accepts multiple values separated by commas.

drivetrain
string

Filters listings by drivetrain (FWD, RWD, 4WD). Accepts multiple values separated by commas.

engine
string

Filters listings by engine designation (e.g., 2.0L I4, 3.5L V6, 2.5L H4). Accepts multiple values as comma-separated list.

engine_block
string

Filters listings by engine block layout (V, I, H). Accepts multiple values separated by commas.

engine_size
string

Filters listings by engine displacement size (e.g., 2.0, 2.5, 3.5). Accepts multiple values separated by commas.

facet_min_count
integer

Minimum document count for a facet bucket to be returned.

field
string

The field name for which to perform auto-completion.

fuel_type
string

Filters listings by fuel type (e.g., Unleaded, Diesel, Electric, Premium Unleaded, Electric / Unleaded). Accepts multiple values separated by commas.

ignore_case
boolean

If true, the auto-complete search is case-insensitive. Default — true.

input
string

The text input string used for auto-completion queries.

make
string

Filters listings by vehicle make (e.g., Toyota, Ford, Mercedes-Benz). Accepts multiple values as comma-separated list.

model
string

Filters listings by specific vehicle model (e.g., Camry). Accepts multiple values separated by commas.

transmission
string

Filters listings by transmission type (Automatic, Manual, etc.). Accepts multiple values separated by commas.

trim
string

Filters listings by vehicle trim (e.g., EX, Limited). Accepts multiple values separated by commas.

vehicle_type
string

Filters listings by vehicle type (Truck, Car). Accepts multiple values separated by commas.

year
string

Filters listings by model year (e.g., 2020). Accepts multiple years separated by commas.

Required Parameters

The following parameters are required for taxonomy auto-completion requests:

  • field - The field to search for auto-completion (see Available Fields below)
  • input - The user input to match against the specified field

Defaults

ParameterDefault ValueDescription
ignore_casetrueEnables case-insensitive matching for flexible search behavior
facet_min_count1Minimum count threshold for terms to appear in suggestions

Available Fields

Auto-completion is supported for the following vehicle specification fields:

FieldDescription
makeVehicle manufacturer (e.g., Toyota, Ford)
modelSpecific model name (e.g., Camry, Mustang)
trimModel variant or trim level (e.g., SE, XLE)
body_typeGeneral body style (e.g., sedan, SUV)
body_subtypeSub-category of body style (e.g., coupe, hatchback)
vehicle_typeVehicle classification (e.g., passenger, truck)
transmissionTransmission type (e.g., automatic, manual)
drivetrainDrivetrain configuration (e.g., FWD, AWD)
fuel_typeType of fuel used (e.g., gasoline, diesel)
engineEngine name or code
engine_sizeEngine displacement or size (e.g., 2.0L, 3.5L)
engine_blockEngine block type (e.g., V6, I4)

Contextual Filtering

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:

  • Vehicle Filters: Apply make, model, year, etc. to get contextual suggestions
  • Technical Specs: Use body_type, transmission, fuel_type to refine results
  • Engine Specs: Filter by engine_size, engine_block for engine-related suggestions

Sorting

Auto-complete results are automatically sorted by relevance using intelligent matching algorithms:

Matching Types:

  1. Prefix matches - Terms beginning with input (highest relevance)
  2. Case-insensitive matches - Flexible text matching
  3. Substring matches - Terms containing input anywhere

Performance Limits:

  • Maximum 50 terms returned per request for optimal performance
  • Results automatically ranked by relevance score
  • No manual sorting parameters available

Response

The Taxonomy Auto-Complete API returns an array of matching terms based on the input and field parameters.

Schema

interface TaxonomyAutoCompleteResponse {
  terms: string[]; // Array of matching terms based on input and field
}
Maximum response array size is limited to 50 terms for optimal performance.

Success Response

  • 200 OK - Returns a JSON object containing an array of matching taxonomy terms
{
  "terms": ["Ford", "Ford F-150", "Ford Explorer"]
}

Error Response

Status CodeDescriptionCommon Causes
400Bad RequestMissing required parameters
401UnauthorizedMissing/invalid API key
403ForbiddenAccess denied to resource
429Too Many RequestsRate limit exceeded
500Internal Server ErrorTemporary server issues
502Bad GatewayIssues with upstream services
503Service UnavailableAPI maintenance or downtime

Use Cases & Examples

Auto-Complete Vehicle Specifications

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":

request.js
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);
}

Get All Possible Values

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:

request.js
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);
}

See Also