Comparable Sales (Comps)
Comparable sold properties (comps) for a subject property
GET /api/properties/comps/
5 credits
What it returns
Comparable sold properties around a subject address, each with sale price, sale date, distance, condition, a similarity score (confidence_score) and a price adjusted to the subject (adjusted_price). What you get depends on what you send:
- Just the address: Homesage.ai picks up to 20 comps and computes an ARV (arv, arv_confidence) from them.
- Choose your own comps: send any of radius_miles, months, start_date or end_date and you get every priced sold property inside that distance and sale window, filtered and sorted your way. No ARV is computed for a set you choose.
Each comp's size, bedrooms, bathrooms, days on market (days_on_market) and price per sq ft are those of the listing that sold wherever we hold that listing, not of a later listing of the same home, and days on market is counted as Sold Properties by ZIP counts dom: the pending date, else the sale date, minus the listing date.
When to use it
- Build a comps table on a property report page.
- Pick your own comps by distance and sale date, for example before lending or making an offer.
- Validate AVM against the comparable set it's derived from.
- Power custom value models with raw comp inputs.
Choose your own comps
- Without one of those four params, limit, sort_by, sort_order, condition and the filters are ignored and you get Homesage.ai's own comps with the ARV.
- The default search is 1 mile and the last 6 months (a month is 30 days). If you send no window and fewer than 3 comps are found, the window widens to 12, then 24 months; search.window_widened and search.window_months say so. A window you set is never widened.
- Each comp also carries year_built, lot_size_sqft, days_on_market, list_price, price_per_sq_ft, is_foreclosure, is_new_construction, is_short_sale, latitude, longitude and score_breakdown.
- The response adds search (the window and settings applied), total_matching (how many matched in all), returned and excluded_no_price (sales left out because they have no price at all).
- A very large circle reads at most the 2,000 nearest sales per data source. When that cut applies, the response says truncated: true; narrow the radius or the window.
One comp from a search in Hattiesburg, MS (1 mile, 12 months, newest first):
Listing photos
Send photos=true and every comp carries photos (a list of {"href": ...} image links) and photos_listing_date, the date the listing those photos come from went on the market (YYYY-MM-DD, or null when it is not known). The photos are from the listing that sold, never from a later relisting or from the listing behind the home's previous sale. Some closed sales carry only the main photo, and some none: then photos is []. When we hold no photo set of our own for a comp, Homesage.ai uses another record of the same sale where it has one; photos_listing_date is then null. Works with Homesage.ai's own comps and when you choose your own comps, at no extra credit. Every comp, with or without photos=true, carries mls_number: the MLS number of the listing that sold, the one the photos come from (the description's listing when there are no photos), or null when it is not known.
Listing descriptions
Send descriptions=true and every comp carries listing_description, the description from the listing that sold, and listing_description_date, the date that listing went on the market. Like the photos, it never comes from a later relisting or from the listing behind the home's previous sale. It is null when we hold none. Combine with photos=true to get both.
Nearby first
By default, when there are few comparable sales near the property, the search widens its radius before it looks further back in time. Send nearby_first=true and the search looks back up to 24 months within 1 mile of the property before it widens the radius, and keeps that 24-month window as it widens, so an older sale on the same street is preferred over a newer sale several miles away. The response then includes search_order: "nearby_first", plus search_radius_used_miles and search_timeframe_months, the radius and sale window the comparable sales came from. Same credits as a standard call; it has no effect when radius_miles, months, start_date or end_date is sent.
Prices in non-disclosure states
In states where sale prices are not publicly recorded (AK, ID, IN, KS, LA, ME, MS, MO, MT, NM, ND, TX, UT, WY), a comp with no recorded sale price is priced at its last list price. It is labelled price_is_list_price: true, the price is in list_price, and sold_price is null. When the ARV uses such comps, its confidence is one tier lower and the warning says how many list prices it used.
A comp with neither a sale price nor a list price is shown among Homesage.ai's own comps as reference_only: true and is not used in the ARV. When you choose your own comps, it is left out and counted in excluded_no_price.
Similarity score and adjusted price
- confidence_score rates how similar a comp is to the subject: distance, size, bedrooms and bathrooms, condition, property type, ZIP and sale recency, plus a bonus for very close comps. Higher is more similar; the maximum is about 120. When you choose your own comps, score_breakdown shows each part.
- adjusted_price is the comp's price adjusted for the size, bedroom and bathroom difference to the subject, by at most 50%. It is null when the comp or the subject has no size.
- The subject's size, bedrooms, bathrooms and type come from our record, or from your fallback params (below) when our record lacks them.
Performance
With just the address this is a slow endpoint — use a 60-second client timeout and cache responses. Choosing your own comps usually answers in under 3 seconds; a 10-mile radius in a dense metro with narrow filters can take more than 30 seconds.
Pricing
- Just the address: 5 credits.
- Choosing your own comps: 5 credits for up to 20 comps returned, plus 1 credit for each further 20 (100 comps cost 9 credits, 500 cost 29). A search that finds no comps costs nothing.
- 400, 401, 402 and 404 cost nothing.
FAQ
How are comps ranked?
Homesage.ai's own comps are ranked by the similarity score. When you choose your own comps, by sort_by: distance (default), sold_date, sold_price, size or similarity.
Does it adjust for condition?
Condition is part of the similarity score and decides which comps the ARV uses. adjusted_price adjusts for size, bedrooms and bathrooms only.
Fallback parameters
You can pass user-supplied values for the attributes the comp model uses, as fallbacks: Homesage.ai data is always used when available; your value is used only when our record is missing that field — so verified data is never overridden. Supported fallbacks: total_size, bedrooms, bathrooms, property_type. Only total_size can unblock an otherwise-empty result; the others just refine comp matching. When neither our record nor your call has a size, Homesage.ai looks one up in its other records before it answers Missing total_size for property. year_built is intentionally not a factor in the comp/ARV model.
Every response includes a field_sources object telling you where each value came from: homesage (our data), user_provided (your fallback), or unavailable.
Parameters
property_address(query, required)descriptions(query) — true adds each comp's listing description (listing_description) and the date that listing went on the market (listing_description_date). Default false. No extra credits.photos(query) — true adds each comp's listing photos (photos) and the date that listing went on the market (photos_listing_date). Default false. No extra credits.nearby_first(query) — true looks back up to 24 months within 1 mile before widening the search radius, so a nearby older sale is preferred over a newer distant one. Adds search_order, search_radius_used_miles and search_timeframe_months. Default false. No extra credits. Ignored when you choose your own comps.bathrooms(query) — Fallback bathroom count. Refines comp matching when Homesage.ai is missing it; used only as a fallback.bedrooms(query) — Fallback bedroom count. Refines comp matching when Homesage.ai is missing it; used only as a fallback.comp_property_type(query) — Keep comps of these types, comma separated, e.g. single_family,townhomes. Same values as the property_type each comp returns; an unknown value returns 400 listing the accepted values.condition(query) — Keep comps with these condition grades, comma separated: excellent, good, outdated, poor, very_poor, unknown (no grade).end_date(query) — Starts a search (see Choose your own comps). Latest sale date, YYYY-MM-DD, inclusive. Defaults to today and must not be in the future. Sent without start_date, the window starts 6 months (180 days) before it. Not allowed together with months.limit(query) — How many comps to return, 1 to 500, all in one response. Default 100.max_baths(query) — Most bathrooms.max_beds(query) — Most bedrooms.max_price(query) — Highest price: the sale price, or the last list price where that is the price shown.max_size(query) — Largest size in sq ft.min_baths(query) — Fewest bathrooms.min_beds(query) — Fewest bedrooms.min_price(query) — Lowest price: the sale price, or the last list price where that is the price shown.min_size(query) — Smallest size in sq ft.months(query) — Starts a search (see Choose your own comps). Sold in the last N months (a month is 30 days), 1 to 24. Default 6. Not allowed together with start_date or end_date. If you send no window at all and fewer than 3 comps are found, the search widens to 12, then 24 months.property_type(query) — Fallback property type, e.g. single_family. Refines comp matching when Homesage.ai is missing it; used only as a fallback.radius_miles(query) — Starts a search (see Choose your own comps). Search radius in miles around the subject, more than 0 and at most 10. Default 1.sort_by(query) — distance (default), sold_date, sold_price, size or similarity (most similar to the subject first).sort_order(query) — asc or desc. Defaults to asc for distance and desc for the others.start_date(query) — Starts a search (see Choose your own comps). Earliest sale date, YYYY-MM-DD, inclusive, at most 24 months (720 days) back. Sent without end_date, the window runs to today. Not allowed together with months.total_size(query) — Fallback square footage. Used only when Homesage.ai has no size on record — supplying it unblocks an otherwise-empty result. Verified Homesage.ai data is never overridden.
Responses
200400— Bad request — a required parameter is missing or failed validation, e.g. radius_miles above 10, months sent together with dates, limit above 500, an unknown sort_by, comp_property_type or condition, or a minimum above its maximum. The error says which. Costs 0 credits.401— Authentication failed — missing or invalid API key. Costs 0 credits.402— Payment required — no active subscription or insufficient credit balance. Costs 0 credits.404— Not found — the address could not be confidently matched to a single property. The body includes a did_you_mean array of suggested addresses (each with an mpr_id) to show the user and retry with; an empty array means no close match. Costs 0 credits.
Response fields
| Field | Type | Example |
|---|---|---|
arv | number | 528423.03 |
arv_confidence | string | medium |
comps_found_total | number | 5 |
warning | string | This property is in a non-disclosure sta… |
comps[].address | string | 187 Tallulah Rdg, Hattiesburg, MS 39402 |
comps[].distance | string | 0.22 |
comps[].size | number | 3354 |
comps[].beds | number | 4 |
comps[].baths | number | 4 |
comps[].baths_full | number | 3 |
comps[].baths_half | number | 1 |
comps[].property_type | string | single_family |
comps[].sold_price | null | null |
comps[].adjusted_price | number | 618837.21 |
comps[].sold_date | string | 2026-07-17 |
comps[].property_condition | string | Good |
comps[].confidence_score | number | 98.5 |
comps[].mls_number | null | null |
comps[].list_price | number | 585000 |
comps[].price_is_list_price | boolean | true |
comps[].latitude | number | 31.304832 |
comps[].longitude | number | -89.418173 |
comps[].used_for_arv | boolean | true |
size_source | string | homesage |
field_sources.total_size | string | homesage |
field_sources.bedrooms | string | homesage |
field_sources.bathrooms | string | homesage |
field_sources.property_type | string | homesage |
credits_charged | number | 5 |
Sample response
{
"arv": 528423.03,
"arv_confidence": "medium",
"comps_found_total": 5,
"warning": "This property is in a non-disclosure state (MS). Sale prices are not publicly recorded, which limits available comp data…",
"comps": [
{
"address": "187 Tallulah Rdg, Hattiesburg, MS 39402",
"distance": "0.22",
"size": 3354,
"beds": 4,
"baths": 4,
"baths_full": 3,
"baths_half": 1,
"property_type": "single_family",
"sold_price": null,
"adjusted_price": 618837.21,
"sold_date": "2026-07-17",
"property_condition": "Good"
}
],
"size_source": "homesage",
"field_sources": {
"total_size": "homesage",
"bedrooms": "homesage",
"bathrooms": "homesage",
"property_type": "homesage"
},
"credits_charged": 5
}Use it through the MCP
Connect the Homesage.ai MCP to Claude, ChatGPT or Cursor, and your assistant calls this as the get_comps tool. Set up the MCP.
More in AI-Powered Analysis
- Composite full property report — everything aggregated —
GET /api/properties/full-report/
The most comprehensive property analysis endpoint — aggregates 11 internal sources into a single response with 292 data fields. - AI-derived property condition score from listing photos —
GET /api/properties/property-condition/
An AI condition assessment for a US residential property — overall condition category (Excellent/Good/Fair/Poor), confidence score, per-room breakdown when photos are available, and any flags (water damage, deferred maintenance signals). - Property condition analysis with your own photos —
POST /api/properties/property-condition-custom-photos/
An overall property-condition rating and confidence score, combining a database lookup with AI vision analysis of property photos you supply. - AI-powered square-footage breakdown by floor —
GET /api/properties/sqft-per-floor/
Per-floor square-footage distribution for a US residential property, derived from a multi-stage AI analysis (photo/room detection, architectural-style inference, and multi-method validation). - LLM-powered room-by-room renovation cost breakdown —
POST /api/properties/renovation-cost-breakdown/
An itemized room-by-room renovation cost breakdown powered by a multimodal LLM analyzing the property's images plus its size/feature metadata. - Local market outlook (buyer's/balanced/seller's) for a ZIP —
GET /api/properties/market-outlook/
A composite Market Outlook score (0-100) classifying a ZIP code as a buyer's market (<40), balanced (40-60), or seller's market (>60). - Solar potential + AI roof condition for a property —
GET /api/solar/analysis/
Two coupled analyses in one call: