The Auto-Complete API provides real-time search suggestions for vehicle-related fields across the United Kingdom automotive market. This specialized tool leverages MarketCheck's extensive UK inventory database to deliver intelligent auto-completion capabilities, enabling developers to build sophisticated search interfaces with relevant term suggestions and inventory counts.
With flexible field-based matching and contextual filtering capabilities, this API enables developers, automotive platforms, and search applications to implement efficient search experiences that guide users toward available inventory and popular search terms.
GET https://api.marketcheck.com/v2/search/car/uk/auto-complete
The following example demonstrates how to use the 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/search/car/uk/auto-complete',
params: {api_key: 'YOUR_API_KEY', field: 'make', input: 'BMW'},
headers: {Accept: 'application/json'}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
Explore the full range of parameters available for configuring auto-completion behavior in the Request section below.
The Auto-Complete API provides extensive auto-completion capabilities for automotive search interfaces. You can generate suggestions for vehicle specifications, geographic locations, and various attributes while applying contextual filters to refine results based on current search state.
Available parameters for configuring auto-completion behavior and filtering suggestions:
Your MarketCheck API authentication key. Required for every request, unless OAuth is used.
The field name for which to perform auto-completion.
The text input string used for auto-completion queries.
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 city name (e.g. London
, Derby
, Birmingham
).
Filters listings by county name (e.g. Greater London
, Lancashire
). Use instead of state
. Accepts multiple counties as comma-separated values.
City of the car location. Used for filtering by specific car location city.
County of the car location. Used for filtering by specific car location county.
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.
Excludes results from the specified dealer IDs. Accepts multiple values as a comma-separated list.
Excludes the specified makes. Accepts multiple values as a comma-separated list.
Excludes results from the specified MarketCheck website IDs. Accepts multiple values as comma-separated list.
Excludes listings from the specified sources (e.g., autonation.com
, carmax.com
). Accepts multiple values as comma-separated list.
Filters listings by exterior color (e.g. White
, Summit White
, Gun Metallic
). Accepts multiple values as comma-separated list.
Minimum document count for a facet bucket to be returned.
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.
If true
, returns listings marked as in transit; if false
or omitted, no in-transit filter is applied.
If true
, includes listings without a VIN; if false
, such listings are excluded. Default — false.
Filters listings by interior color. Accepts multiple values as comma-separated list.
Filters dealers by total listing count. Specify as min-max
listings (e.g., 10-100
).
Filters listings by vehicle make (e.g., Toyota
, Ford
, Mercedes-Benz
). Accepts multiple values as comma-separated list.
Make-Model composite string from the auto-complete API. Pass the value exactly as returned (e.g., toyota|camry
).
Filters listings by specific vehicle model (e.g., Camry
). Accepts multiple values separated by commas.
Filters listings within the specified postal code (e.g., M5H 2N2
).
Search radius around the specified location in miles. Used with zip
or latitude
and longitude
for geospatial queries.
Filters auto-complete suggestions by seller type. Allowed values — dealer
, fsbo
, auction
.
Field to sort results by. If omitted, defaults to distance when a location filter is used.
If true
, includes term frequency counts in the response. Default — false.
Filters listings by transmission type (Automatic
, Manual
, etc.). Accepts multiple values separated by commas.
Alias of trim
. Filters listings by vehicle variant identifier. Accepts multiple values as comma-separated list.
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.
Year-Make-Model composite string from auto-completion (e.g., 2019|Toyota|Camry
).
uk
for United Kingdom marketfalse
- returns simple array of matching termsterm_counts=true
to include inventory counts for each suggestion1
- minimum inventory count threshold for terms to appear in suggestionsThe following parameters are required for auto-completion requests:
Auto-completion is supported for the following vehicle and location fields:
Field | Description |
---|---|
ymm | Year-Make-Model combination |
mm | Make-Model combination |
make | Vehicle make |
model | Vehicle model |
variant | Vehicle variant |
body_type | Body type of the vehicle |
body_subtype | Subtype of the vehicle body |
vehicle_type | Type of vehicle |
transmission | Transmission type |
drivetrain | Drivetrain type |
fuel_type | Type of fuel used |
exterior_color | Exterior colour of the vehicle |
interior_color | Interior colour of the vehicle |
engine | Engine type |
engine_size | Size of the engine |
engine_block | Engine block type |
county | UK county location |
city | City location |
car_location_city | Location of car city |
car_location_county | Location of car county |
dealer_name | Name of dealer |
model_variant | Variant model |
ev_battery_type | Car battery type |
Apply additional filters to refine suggestions based on current search context. Use any of the standard inventory parameters to scope suggestions to specific criteria:
county
, city
, postal_code
, or radius
to limit suggestions to specific regionsmake
, model
, variant
, year
, etc. to get contextual suggestionsengine_size
, seller_type
to scope suggestions by listing typeAuto-complete results are automatically sorted by relevance using intelligent matching algorithms:
Matching Types:
Performance Limits:
The Auto-Complete API returns suggestions in two possible formats depending on the term_counts
parameter setting.
Default Format (term_counts=false
)
Returns a simple array of matching terms, optimized for basic auto-completion:
interface AutoCompleteResponse {
terms: string[];
}
With Counts Format (term_counts=true
)
Returns detailed response with inventory counts for each suggestion:
interface AutoCompleteResponseWithCounts {
terms: { item: string; count: number }[];
}
Implement intelligent search suggestions that adapt to user input, providing relevant vehicle and location terms that match current inventory availability.
Example:
Here we're providing auto-completion for vehicle makes as the user types, returning the most relevant suggestions based on current UK inventory:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/search/car/uk/auto-complete',
params: {api_key: 'YOUR_API_KEY', field: 'make', input: 'vau'},
headers: {Accept: 'application/json'}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
When users have already selected a make, provide contextual model suggestions that are relevant to their current search criteria and geographic location.
Example:
Here we're providing model suggestions for BMW vehicles in London, ensuring suggestions are relevant to available inventory in that region:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/search/car/uk/auto-complete',
params: {api_key: 'YOUR_API_KEY', field: 'model', input: 'focus', term_counts: 'true'},
headers: {Accept: 'application/json'}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
Provide location-based auto-completion for cities and counties, helping users quickly find and select their desired search location.
Example:
Here we're providing city suggestions as users type, filtered to a specific county to maintain relevance:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/search/car/uk/auto-complete',
params: {api_key: 'YOUR_API_KEY', field: 'city', input: 'lon'},
headers: {Accept: 'application/json'}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
Filter auto-completion results to only show terms with sufficient inventory counts, reducing noise and focusing on popular or well-stocked options.
Example:
Here we're filtering suggestions to only include makes with at least 50 vehicles in inventory, ensuring users see popular and well-represented brands:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/search/car/uk/auto-complete',
params: {
api_key: 'YOUR_API_KEY',
field: 'make',
input: 'a',
facet_min_count: '100',
term_counts: 'true'
},
headers: {Accept: 'application/json'}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
Past Inventory Search
Access expired and sold dealer listings from the past 90 days with comprehensive filtering, sorting, analytics, and geographic targeting capabilities.
Car Listing Details
Retrieve detailed information about specific dealer car listings with complete vehicle specifications, media content, dealer information, and marketplace data.