The Car Listing Details API retrieves detailed information about specific dealer automotive listings across United Kingdom markets. This endpoint provides complete listing data including vehicle specifications, pricing history, dealer information, media content, and marketplace details for individual listings identified by their unique listing ID.
This API is typically used as a follow-up to search operations from the Inventory Search API or VRM History API, both of which return listing IDs for detailed retrieval.
GET https://api.marketcheck.com/v2/listing/car/uk/{listing_id}
Path Parameter:
listing_id
- The unique identifier for the car listing you want to retrieve. This parameter is case-sensitive and must be provided in the URL path.The following example demonstrates how to use the Car Listing Details API to retrieve information about a specific car listing:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/listing/car/uk/5779a04bb69cd41e12e0292a5cb5306df2be5a30dc1cec952275b78f665f460f',
params: {api_key: 'YOUR_API_KEY'},
headers: {Accept: 'application/json'}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
Explore the complete parameter options and response structure in the Request section below.
The Car Listing Details API provides access to detailed listing information using the unique listing identifier. This is typically used as a follow-up to search operations from the Inventory Search API or VRM History API, both of which return listing IDs for detailed retrieval.
Available parameters for retrieving detailed listing information:
Your MarketCheck API authentication key. Required for every request, unless OAuth is used.
If true
, redirects to the active version of the listing if it has been updated.
If true
, redirects to the latest version of the listing if it has been updated.
The following parameters are required for listing detail requests:
The following parameters are optional for listing detail requests:
redirect_to_active=true
redirect_to_latest=true
redirect_to_active
and redirect_to_latest
are set to true
, redirect_to_active
takes precedence.Retrieve detailed vehicle information for display on vehicle detail pages, customer applications, or internal dealer management systems. This API provides all the data typically shown on a dealer's vehicle detail page (VDP).
Example:
Here we're retrieving complete details for a specific car listing including specifications, pricing, dealer information, and media content:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/listing/car/uk/5779a04bb69cd41e12e0292a5cb5306df2be5a30dc1cec952275b78f665f460f',
params: {api_key: 'YOUR_API_KEY'},
headers: {Accept: 'application/json'}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
After performing searches using the Inventory Search API, use the returned listing IDs to fetch complete vehicle details for selected listings.
Example:
Here we're retrieving detailed information for a listing discovered through inventory search:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/listing/car/uk/3063ae71b233c2e645e67fd84307bad5340b9f5908113c27d9233b04a156cdfd',
params: {api_key: 'YOUR_API_KEY'},
headers: {Accept: 'application/json'}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
Use the redirect_to_active
parameter to automatically redirect to the currently active listing. This is particularly useful when working with listing IDs that may reference inactive listings, ensuring you always access the active listing when it exists for specific VRM.
Example:
Here we're requesting the active listing with automatic redirection:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/listing/car/uk/19befb2539011c752cddae5a89d25f01ba2187027cae8d26c3b44436a0eb6c44',
params: {api_key: 'YOUR_API_KEY', redirect_to_active: 'true'},
headers: {Accept: 'application/json'}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
Redirect Behavior:
When redirect_to_active=true
:
200 OK
301 Moved Permanently
, including the redirect URL in the Location
header pointing to the active listing of that VRM at that source422 Unprocessable Entity
with error message "Listing no longer active"Use the redirect_to_latest
parameter to automatically redirect to the most current listing available at the source. This functionality is valuable when working with listing IDs that may reference older versions of the same vehicle listing.
Example:
Here we're requesting the latest listing with automatic redirection:
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/listing/car/uk/19befb2539011c752cddae5a89d25f01ba2187027cae8d26c3b44436a0eb6c44',
params: {api_key: 'YOUR_API_KEY', redirect_to_latest: 'true'},
headers: {Accept: 'application/json'}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
Redirect Behavior:
When redirect_to_latest=true
:
200 OK
301 Moved Permanently
, including the redirect URL in the Location
header pointing to the latest listing ID of that VRM at that sourcelast_seen_at
, scraped_at
, and first_seen_at
may not match the values in search API responses due to real-time data processing.The Car Listing Details API returns comprehensive information about the specified vehicle listing in a structured JSON format.
Success Response:
Location
header
Error Response:
Status Code | Description | Common Causes |
---|---|---|
400 | Bad Request | Invalid parameter values |
401 | Unauthorized | Missing/invalid API key |
403 | Forbidden | Access denied to resource |
422 | Unprocessable Entity | Invalid listing_id , listing inactive and VRM at source is inactive (with redirect_to_active) |
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 |
The response provides comprehensive listing details organized into logical sections:
interface Response {
id: string; // Unique listing identifier
vehicle_registration_mark: string; // Vehicle Registration Mark
uvc_id: string; // Unique Vehicle Code
heading: string; // Formatted listing title
price: number; // Current listing price
price_change_percent: number; // Price change percentage from reference price
msrp: number; // Manufacturer's Suggested Retail Price (as per dealer website)
ref_price: number; // Previously listed price at same source for reference
ref_price_dt: number; // Reference price date timestamp (Unix Seconds)
miles: number; // Vehicle mileage
ref_miles: number; // Reference mileage (previously listed mileage at same source)
ref_miles_dt: number; // Reference mileage date timestamp (Unix Seconds)
exterior_color: string; // Exterior color description
interior_color: string; // Interior color description
base_int_color: string; // Standardized interior color
base_ext_color: string; // Standardized exterior color
dom: number; // Days on market (lifetime)
dom_180: number; // Days on market in last 180 days
dom_active: number; // Days on market while active
dos_active: number; // Days on site while active
data_source: string; // Original data source identifier. Mostly `mc` for MarketCheck
source: string; // Data source website domain
vdp_url: string; // Vehicle detail page URL
seller_type: string; // Type of seller (dealer, fsbo, auction)
inventory_type: string; // Inventory classification (new, used)
stock_no: string; // Dealer stock number
in_transit: boolean; // Vehicle in transit status
vehicle_registration_date: string; // Vehicle registration date (ISO format)
last_seen_at: number; // Last seen timestamp (Unix Seconds), when the listing was last updated
last_seen_at_date: string; // Last seen date (ISO format)
scraped_at: number; // First seen timestamp (Unix Seconds), when the listing was first scraped
scraped_at_date: string; // First seen date (ISO format)
first_seen_at: number; // First seen timestamp (Unix Seconds), when the listing was first seen. Copy of `scraped_at` field
first_seen_at_date: string; // First seen date (ISO format)
first_seen_at_mc: number; // First seen at MarketCheck timestamp (Unix Seconds)
first_seen_at_mc_date: string; // First seen at MarketCheck date (ISO format)
first_seen_at_source: number; // First seen at source website timestamp (Unix Seconds)
first_seen_at_source_date: string; // First seen at source website date (ISO format)
car_location: CarLocation; // Vehicle/dealer location details
media: Media; // Photos and media content links
extra: Extra; // Additional features and options
dealer: Dealer; // Dealer information
mc_dealership: McDealership; // Enhanced dealer information from MarketCheck's new dealership system
build: Build; // Vehicle specifications
}
interface CarLocation {
seller_name: string; // Dealer or seller name
street: string; // Street address
city: string; // City name
zip: string; // Postal/ZIP code
county: string; // County name
latitude: string; // Geographic latitude
longitude: string; // Geographic longitude
}
interface Media {
photo_links: string[]; // Array of photo URLs from dealer website
photo_links_cached: string[]; // Array of cached photo URLs from MarketCheck
}
interface Extra {
options: string[]; // Vehicle options list
features: string[]; // Vehicle features list
seller_comments: string; // Dealer/seller description text
description_boilerplate: string; // Standardized description text
}
interface Dealer {
id: number; // Unique dealer identifier
website: string; // Dealer website URL
name: string; // Dealer business name
dealer_type: string; // Dealer classification (franchise, independent)
dealership_group_name: string; // Parent dealership group
street: string; // Street address
city: string; // City name
county: string; // County name
country: string; // Country code
zip: string; // Postal/ZIP code
latitude: string; // Geographic latitude
longitude: string; // Geographic longitude
phone: string; // Contact phone number
seller_email: string; // Contact email address
postal_code: string; // Postal code
}
interface McDealership {
mc_website_id: number; // MarketCheck website identifier
mc_dealer_id: number; // MarketCheck dealer identifier
mc_location_id: number; // MarketCheck location identifier
mc_rooftop_id: number; // MarketCheck rooftop identifier
mc_dealership_group_id: number; // MarketCheck dealership group identifier
mc_dealership_group_name: string; // MarketCheck dealership group name
mc_sub_dealership_group_id: number; // MarketCheck sub-dealership group identifier
mc_sub_dealership_group_name: string; // MarketCheck sub-dealership group name
mc_category: string; // MarketCheck seller category (Dealer, FSBO, Auction, etc.)
website: string; // Dealer website URL
name: string; // Dealer business name
dealer_type: string; // Dealer classification (franchise, independent)
street: string; // Street address
city: string; // City name
county: string; // County name
country: string; // Country code
latitude: string; // Geographic latitude
longitude: string; // Geographic longitude
zip: string; // Postal/ZIP code
phone: string; // Contact phone number
seller_email: string; // Contact email address
postal_code: string; // Postal code
}
interface Build {
year: number; // Model year
make: string; // Vehicle manufacturer
model: string; // Vehicle model
trim: string; // Trim level
variant: string; // Specific variant
model_variant: string; // Vehicle model variant
version: string; // Specific version/variant
body_type: string; // Body style (sedan, SUV, truck, etc.)
vehicle_type: string; // Vehicle category
transmission: string; // Transmission type
drivetrain: string; // Drivetrain configuration
fuel_type: string; // Fuel type (gasoline, electric, hybrid, etc.)
doors: number; // Number of doors
made_in: string; // Manufacturing country
overall_height: string; // Vehicle height
overall_length: string; // Vehicle length
overall_width: string; // Vehicle width
std_seating: string; // Standard seating capacity
highway_mpg: number; // Highway fuel economy
city_mpg: number; // City fuel economy
combined_mpg: number; // Combined fuel economy
powertrain_type: string; // Powertrain classification
performance_torque_ftlb: number; // Engine torque in foot-pounds
performance_maxspeed_mph: number; // Maximum speed in miles per hour
performance_torque_rpm: number; // RPM at peak torque
performance_power_bhp: number; // Engine power in brake horsepower
performance_power_rpm: number; // RPM at peak power
performance_torque_nm: number; // Engine torque in Newton-meters
performance_power_kw: number; // Engine power in kilowatts
performance_acceleration_zero_to_60_mph: number; // 0-60 mph acceleration time in seconds
performance_acceleration_mph: number; // Acceleration time in seconds
performance_co2: number; // CO2 emissions in g/km
euro_status: number; // Euro emissions standard (e.g., 6)
}