The Auto-Complete API provides real-time search suggestions for recreational vehicle-related fields across United States RV markets. This specialized tool leverages MarketCheck's RV 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, RV 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/rv/auto-complete
The following example demonstrates how to use the Auto-Complete API to get suggestions for RV makes and models based on user input.
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/search/rv/active',
params: {api_key: 'YOUR_API_KEY', field: 'make', input: 'ac'},
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 recreational vehicle search interfaces. You can generate suggestions for RV 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.
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. Los Angeles
, San Francisco
, Houston
).
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.
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.
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 RV auto-complete results. Allowed values - index
(default) or count
.
Filters listings by US or Canadian state/province code (e.g., CA
, NY
, ON
). Accepts multiple codes separated by commas.
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.
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.
Filters listings within the specified 5-digit ZIP code.
false
- returns simple array of matching terms
term_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 RV and location fields:
Field | Description |
---|---|
make | RV manufacturer |
model | RV model |
trim | RV trim |
class | RV class (e.g., Class A, Class C) |
transmission | Transmission type |
fuel_type | Type of fuel used |
exterior_color | Exterior color of the RV |
interior_color | Interior color of the RV |
engine | Engine type |
state | State location |
city | City location |
Apply additional filters to refine suggestions based on current search context. Use any of the standard inventory parameters to scope suggestions to specific criteria:
state
, city
, zip
, or radius
to limit suggestions to specific regionsmake
, model
, year
, etc. to get contextual suggestionsAuto-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:
{
"terms": ["Forest River", "Forest River Georgetown", "Forest River Berkshire"]
}
With Counts Format (term_counts=true
)
Returns detailed response with inventory counts for each suggestion:
{
"terms": [
{ "item": "Forest River", "count": 1542 },
{ "item": "Forest River Georgetown", "count": 324 }
]
}
term_counts=true
changes the response structure to include count data for each suggestion.Implement intelligent search suggestions that adapt to user input, providing relevant RV and location terms that match current inventory availability.
Example:
Here we're providing auto-completion for RV makes as the user types, returning the most relevant suggestions based on current inventory:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/search/rv/active',
params: {api_key: 'YOUR_API_KEY', field: 'make', input: 'Fo'},
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 Forest River RVs in California, 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/rv/active',
params: {
api_key: 'YOUR_API_KEY',
field: 'model',
input: 'fo',
make: 'Forest River',
state: 'CA',
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 states, helping users quickly find and select their desired search location.
Example:
Here we're providing city suggestions as users type, filtered to a specific state to maintain relevance:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/search/rv/active',
params: {api_key: 'YOUR_API_KEY', field: 'city', input: 'san', state: 'CA'},
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 100 RVs 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/rv/active',
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);
}
Inventory Search
Search active dealer RV listings currently for sale in US markets with comprehensive filtering, sorting, analytics, and geographic targeting capabilities for recreational vehicles.
RV Listing Details
Retrieve detailed information about specific dealer RV listings with complete vehicle specifications, media content, dealer information, and marketplace data.