POST /api/compass/listings
Price: 20 credits
Get full Compass listing details by its detail URL: address, price (list/closed/last known), price per sqft, HOA and taxes, beds/baths, square feet, lot size, property type, amenities, description, MLS status, days on market, building info, latitude/longitude, photos, listing agents, open houses, location entities and key details.
Fetch a single Compass listing by its URL or path (must contain /homedetails/.../{id}_pid/ or _lid/, e.g. the page_link from the listing search endpoint). Returns one item with id, price, listed_price, closed_price, price_per_sqft, hoa_fee, bedrooms, bathrooms, square_feet, property_type, amenities, full address fields, latitude/longitude, days_on_market, building info, image+images, agents, open_houses, charges, location_entities (id usable in the search endpoint) and key_details.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)listing string required — Compass listing detail URL or path (containing /homedetails/.../{id}_pid/ or _lid/) (examples: "https://www.compass.com/homedetails/148-E-19th-St-Unit-3A-Manhattan-NY-10003/20MMQ1_pid/", "/homedetails/25-Chittenden-Ave-Unit-2B-Manhattan-NY-10033/1348742452508383153_lid/"; minLength: 1)@type string (default: "CompassListing")id string requiredcompass_property_id string nullablefeed_listing_id string nullablelisting_type string nullablestatus string nullablestatus_code integer nullablemls_status string nullableprice number nullablelisted_price number nullableclosed_price number nullableprice_per_sqft number nullablehoa_fee number nullablemonthly_charges_with_taxes number nullabledown_payment_percent number nullabledescription string nullablebedrooms number nullablefull_bathrooms number nullablehalf_bathrooms number nullabletotal_bathrooms number nullablesquare_feet integer nullablelot_size integer nullabletotal_rooms number nullablelegal_room_count integer nullableyear_built integer nullablebuilding_age string nullableparking_spaces integer nullableproperty_type string nullableamenities array (default: [])pretty_address string nullablestreet_number string nullablestreet string nullablestreet_type string nullableunit_number string nullableneighborhood string nullablecity string nullablestate string nullablezip string nullablecounty string nullablelatitude number nullablelongitude number nullablegeo_id string nullabledays_on_market integer nullableparcel_number string nullablebuilding_name string nullablebuilding_id string nullablebuilding_floors integer nullablebuilding_units integer nullablelisted_at integer nullablecontract_at integer nullableclosed_at integer nullableupdated_at integer nullableis_off_mls boolean nullableis_consumer_searchable boolean nullableimage string nullableimages array (default: [])page_link string nullableproperty_page_link string nullableagents array (default: [])@type string (default: "CompassListingAgent")name string nullablecompany string nullableemail string nullablephone string nullablecontact_type string nullablelicense_num string nullableagent_id string nullableprofile_url string nullableimage string nullablecharges array (default: [])@type string (default: "CompassCharge")amount number nullablecharge_type string nullablecharge_type_code integer nullableopen_houses array (default: [])@type string (default: "CompassOpenHouse")start_at integer nullableend_at integer nullableby_appointment_only boolean nullableis_virtual boolean nullablelocation_entities array (default: [])@type string (default: "CompassLocationEntity")id integer nullablename string nullableseo_id string nullablelocation_type integer nullablekey_details array (default: [])@type string (default: "CompassKeyDetail")key string requiredvalue string nullable422 — The request body did not validate Check the fields against this schema. A URN with the wrong prefix is the most common cause.408 — The request ran past its time limit Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.412 — Listing not found (well-formed URL but no listing data for it) Retrying will not help: either the entity does not exist, or the input points at a different one.429 — Too many requests: a rate limit or a usage window is exhausted When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.500 — Something broke on our side Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.529 — Rate limit reached, or the endpoint is overloaded Wait at least 30 seconds, then retry.X-Error — Error message text (present only on error)X-Request-ID — Unique request identifierX-Execution-Time — Execution time in secondsX-Result-Count — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.X-Total-Available-Results — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.X-Warning — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.X-Retry-After — Seconds to wait before retrying. Present only on 429.