search_past_90_days
Find expired and sold car listings from the last 90 days to analyze pricing trends, days on market, and dealer inventory turnover.
Instructions
Search for recent car inventory (EXPIRED/SOLD listings from last 90 days) with comprehensive filters following Marketcheck API structure.
IMPORTANT: This endpoint serves ONLY expired/sold listings from the last 90 days for US and CA (Canada) markets, NOT active listings. For currently active listings, use the search_active_cars tool instead.
IMPORTANT: Before filtering by specific field values (make, model, trim, body_type, fuel_type, etc.), use the 'facets' parameter to discover available values in the API. Field values may be represented differently than expected. For example:
Use facets="make,model,trim,body_type" to see all available options
This prevents filtering errors due to incorrect field value assumptions
Facets show actual data distribution and available filter options
VIN vs Listing ID Disclaimer:
A single VIN can have multiple listings, each with a unique listing ID
Listing ID changes when there are changes in price or miles of the listing
When expired=false is set, it shows listings for VINs that are currently active in the market (not sold yet), but the specific listing is expired. The latest/current listing for that VIN is present in the active search API
This endpoint shows historical listing data (expired listing IDs) for market analysis, not current inventory
This endpoint is designed for analytical use cases including:
Historical market analysis of sold vehicles
Sold vehicle pricing trends and patterns
Days on market analysis for expired listings
Dealer inventory turnover and sales analysis
Market intelligence from recently sold inventory
Key use cases:
Analyze recent sales trends and pricing
Get sold/expired listings for market intelligence
Calculate average market prices from recent inventory
Track dealer inventory turnover patterns
Due to performance reasons, this endpoint is more restrictive than active search:
Does not accept facets, stats and range_facets in a single call
Requires one of: city, state, zip, (latitude+longitude+radius), source, or dealer_id
For geo queries, radius cannot be greater than 100 miles
Charged at higher rates than active search endpoint
Args:
# Location filters (at least one required)
city: Filter listing on City in which they are listed
state: Filter listing on State in which they are listed
zip: Filter listing on ZIP around which they are listed
latitude: Latitude component of location
longitude: Longitude component of location
radius: Radius around the search location (Unit - Miles, max 100)
source: Filter listing on their source
dealer_id: Dealer id to filter the listings
# Vehicle specifications
make: Filter listings on their make
model: Filter listings on their model
year: Vehicle manufacturing year (e.g., 2020, 2021)
year_range: Year range in format "min-max" (e.g., "2019-2021")
trim: Filter listing on their trim
body_type: Filter listing on their body type
car_type: Car type (new/used/certified)
cylinders: Number of engine cylinders (e.g., 4, 6, 8)
doors: Number of doors (e.g., 2, 4)
seating_capacity: Number of seats (e.g., 5, 7, 8)
fuel_type: Filter listing on their fuel type.
WARNING: This field has many non-normalized values. First call this tool with facets="fuel_type|0|1000" to discover exact available values before filtering.
# Color filters
exterior_color: Exterior color to match (comma-separated values)
interior_color: Interior color to match (comma-separated values)
base_exterior_color: Base exterior color to match (comma-separated values)
base_interior_color: Base interior color to match (comma-separated values)
# Price and mileage filters
price_range: Price range in format "min-max" (e.g., "1000-5000")
miles_range: Miles range in format "min-max" (e.g., "1000-5000")
msrp_range: MSRP range in format "min-max" (e.g., "1000-5000")
# Market timing filters
dom_range: Days on Market range in format "min-max" (e.g., "10-50")
dom_active_range: Active Days on Market range in format "min-max" (e.g., "10-50")
dos_active_range: Active Days on Site range in format "min-max" (e.g., "10-50")
first_seen_range: First seen date range in format YYYYMMDD-YYYYMMDD
first_seen_days: First seen days range in format "max-min" (e.g., "30-10" for 10 to 30 days ago).
first_seen_at_source_range: First seen at source date range in format YYYYMMDD-YYYYMMDD
first_seen_at_source_days: First seen at source days range in format "max-min" (e.g., "25-12" for 12 to 25 days ago).
first_seen_at_mc_range: First seen at MC date range in format YYYYMMDD-YYYYMMDD
first_seen_at_mc_days: First seen at MC days range in format "max-min" (e.g., "25-12" for 12 to 25 days ago).
last_seen_range: Last seen date range in format YYYYMMDD-YYYYMMDD
last_seen_days: Last seen days range in format "max-min" (e.g., "3-1" for 1 to 3 days ago).
active_inventory_date_range: Date range to filter listings active within range (YYYYMMDD-YYYYMMDD)
# Special filters
sold: Boolean to fetch only sold/expired listings (True/False)
expired: Boolean to fetch only expired listings or active ones (True/False)
owned: Boolean, when True returns listings actually owned by dealer (used with dealer_id/source)
include_non_vin_listings: Boolean to include non vin listings (True/False, default False)
in_transit: Boolean to filter in transit vehicles (True/False)
# Response configuration
facets: Field facets return unique terms and their counts for categorical data, useful for building search filters and understanding inventory distribution.
Syntax: facets=field_name|offset|limit|min_count (single field only)
- offset (default: 0): Start position for terms
- limit (default: 20, max: 1000): Number of terms to return
- min_count (optional): Minimum count for a term to be included
Example: facets=make|0|60|2 returns top 60 makes with at least 2 listings each
stats: Field for which stats need to be generated (single field only)
range_facets: Numeric field for range facets (single field only)
# Sorting and pagination
sort_by: Sort by field (dist|price|miles|msrp|dom|last_seen|first_seen, etc.)
sort_order: Sort order (asc|desc)
rows: Number of results to return (default 5, max 50)
start: Page number/offset to fetch results (default 0)
# Seller type filter - recent search only supports dealer listings
mc_category: Filter by seller type. Only "dealer" is supported for recent/expired inventory search
# Photo optimization parameter (MCP server only)
fetch_all_photos: When False (default), limits photo links to single photo per listing to reduce token usage. When True, returns all photo links.
# Object filtering parameters (MCP server only, not passed to API)
include_dealer_object: When True, includes dealer object in response. Dealer object structure:
- id (number): Unique dealer identifier
- website (string): Dealer website URL
- name (string): Dealer business name
- dealer_type (string, optional): Dealer classification (franchise, independent)
- street, city, state, country (string, optional): Address components
- latitude, longitude (string, optional): Geographic coordinates
- zip (string, optional): Postal/ZIP code
- phone (string, optional): Contact phone number
- seller_email (string, optional): Contact email address
- dealership_group_name (string, optional): Parent dealership group
- msa_code (string, optional): Metropolitan Statistical Area code
include_mc_dealership_object: When True, includes mc_dealership object in response. McDealership object structure:
- mc_website_id (number, optional): MarketCheck website identifier
- mc_dealer_id (number, optional): MarketCheck dealer identifier
- mc_location_id (number, optional): MarketCheck location identifier
- mc_rooftop_id (number, optional): MarketCheck rooftop identifier
- mc_dealership_group_id (number, optional): MarketCheck dealership group identifier
- mc_dealership_group_name (string, optional): MarketCheck dealership group name
- mc_sub_dealership_group_id (number, optional): MarketCheck sub-dealership group identifier
- mc_sub_dealership_group_name (string, optional): MarketCheck sub-dealership group name
- mc_category (string, optional): MarketCheck seller category. Possible values: Dealer, Retailer, Dealership Group, Aggregator, Marketing, Financing
- website (string, optional): Dealer website URL
- name (string, optional): Dealer business name
- dealer_type (string, optional): Dealer classification (franchise, independent)
- street, city, state, country (string, optional): Address components
- latitude, longitude (string, optional): Geographic coordinates
- zip (string, optional): Postal/ZIP code
- msa_code (string, optional): Metropolitan Statistical Area code
- phone (string, optional): Contact phone number
include_build_object: When True, includes build object in response. Build object structure:
- year (number): Model year
- make (string): Vehicle manufacturer
- model (string, optional): Vehicle model
- trim (string, optional): Trim level
- version (string, optional): Specific version/variant
- body_type (string, optional): Body style (sedan, SUV, truck, etc.)
- vehicle_type (string, optional): Vehicle category
- transmission (string, optional): Transmission type
- drivetrain (string, optional): Drivetrain configuration
- fuel_type (string, optional): Fuel type (gasoline, electric, hybrid, etc.)
- engine (string, optional): Engine description
- engine_size (number, optional): Engine displacement
- engine_block (string, optional): Engine block configuration
- doors (number, optional): Number of doors
- cylinders (number, optional): Number of cylinders
- made_in (string, optional): Manufacturing country
- overall_height, overall_length, overall_width (string, optional): Vehicle dimensions
- std_seating (string, optional): Standard seating capacity
- highway_mpg (number, optional): Highway fuel economy
- city_mpg (number, optional): City fuel economy
Returns: JSON string with recent inventory search results including listings and facets
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_past_90_days"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vin | No | ||
| zip | No | ||
| city | No | ||
| make | No | ||
| plot | No | ||
| rows | No | ||
| sold | No | ||
| trim | No | ||
| vins | No | ||
| year | No | ||
| ymmt | No | ||
| dedup | No | ||
| doors | No | ||
| match | No | ||
| model | No | ||
| owned | No | ||
| start | No | ||
| state | No | ||
| stats | No | ||
| engine | No | ||
| facets | No | ||
| radius | No | ||
| source | No | ||
| country | No | ||
| expired | No | ||
| nodedup | No | ||
| sort_by | No | ||
| vdp_url | No | ||
| version | No | ||
| car_type | No | ||
| latitude | No | ||
| msa_code | No | ||
| stock_no | No | ||
| body_type | No | ||
| cylinders | No | ||
| dealer_id | No | ||
| dom_range | No | ||
| fuel_type | No | ||
| lease_emp | No | ||
| longitude | No | ||
| drivetrain | No | ||
| facet_sort | No | ||
| in_transit | No | ||
| lease_term | No | ||
| msrp_range | No | ||
| sort_order | No | asc | |
| year_range | No | ||
| dealer_name | No | ||
| dealer_type | No | ||
| engine_size | No | ||
| finance_emp | No | ||
| mc_category | No | ||
| miles_range | No | ||
| photo_links | No | ||
| price_range | No | ||
| body_subtype | No | ||
| engine_block | No | ||
| exclude_make | No | ||
| mc_dealer_id | No | ||
| range_facets | No | ||
| transmission | No | ||
| vehicle_type | No | ||
| dom_180_range | No | ||
| include_lease | No | ||
| mc_rooftop_id | No | ||
| mc_website_id | No | ||
| taxonomy_vins | No | ||
| base_ext_color | No | ||
| base_int_color | No | ||
| carfax_1_owner | No | ||
| city_mpg_range | No | ||
| exterior_color | No | ||
| interior_color | No | ||
| last_seen_days | No | ||
| mc_location_id | No | ||
| exclude_sources | No | ||
| first_seen_days | No | ||
| include_finance | No | ||
| last_seen_range | No | ||
| dom_active_range | No | ||
| dos_active_range | No | ||
| fetch_all_photos | No | ||
| finance_loan_apr | No | ||
| first_seen_range | No | ||
| seating_capacity | No | ||
| engine_aspiration | No | ||
| engine_size_range | No | ||
| exclude_certified | No | ||
| finance_loan_term | No | ||
| highway_mpg_range | No | ||
| carfax_clean_title | No | ||
| exclude_dealer_ids | No | ||
| lease_down_payment | No | ||
| photo_links_cached | No | ||
| price_change_range | No | ||
| base_exterior_color | No | ||
| base_interior_color | No | ||
| finance_down_payment | No | ||
| include_build_object | No | ||
| dealership_group_name | No | ||
| first_seen_at_mc_days | No | ||
| include_dealer_object | No | ||
| exclude_mc_website_ids | No | ||
| first_seen_at_mc_range | No | ||
| include_relevant_links | No | ||
| mc_dealership_group_id | No | ||
| finance_down_payment_per | No | ||
| include_non_vin_listings | No | ||
| mc_dealership_group_name | No | ||
| first_seen_at_source_days | No | ||
| first_seen_at_source_range | No | ||
| mc_sub_dealership_group_id | No | ||
| active_inventory_date_range | No | ||
| include_mc_dealership_object | No | ||
| mc_sub_dealership_group_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |