POST /api/compass/agents
Price: 20 credits
Get a Compass agent or team profile by slug or profile URL: name, title, email, phone, photo, bio, education, specialties, press links, charity, licenses, start date, links, team members, active listing and closed deal counts, the active listings the profile shows, plus a sample of their recent closed deals with status, address, prices, dates, size, property type, property facts, contacts and price history.
Fetch a single Compass agent by slug or profile URL (e.g. an Agents item from the locations search endpoint or the alias of an agents search card). closed_deals is the recent sample the profile shows, not the full track record; the closed counts give the totals.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)agent string required — Compass agent profile URL, path or slug (e.g. from the locations search endpoint) (examples: "https://www.compass.com/agents/howard-aaron/", "howard-aaron"; minLength: 1)@type string (default: "CompassAgent")id string requiredname string nullablefirst_name string nullablelast_name string nullablejob_title string nullableemail string nullablephone string nullableoffice_phone string nullableimage string nullableabout string nullableeducation string nullablespecialties array (default: [])press array (default: [])@type string (default: "CompassPressLink")title string nullableurl string nullablecharity string nullablegeo string nullablegeo_name string nullablestarted_at integer nullablelicenses array (default: [])@type string (default: "CompassAgentLicense")state string nullablenumber string nullablelicensed_name string nullableexpires_at integer nullableis_active boolean nullableis_primary boolean nullablelinks array (default: [])alias string nullableis_team boolean nullableprofile_url string nullableactive_sales_count integer nullableactive_rentals_count integer nullableclosed_sales_count integer nullableclosed_rentals_count integer nullableclosed_sales_hidden_count integer nullableclosed_rentals_hidden_count integer nullableclosed_deals array (default: [])@type string (default: "CompassAgentDeal")listing_id string nullablelisting_type string nullablestatus string nullableaddress string nullableunit string nullablefloor string nullableneighborhood string nullablecity string nullablestate string nullablezip_code string nullablecounty string nullablelatitude number nullablelongitude number nullableprice number nullablelisted_price number nullableprice_per_sqft number nullablemonthly_charges number nullableclosed_price_verification string nullablelisted_at integer nullablecontract_at integer nullableclosed_at integer nullabledays_on_market integer nullableproperty_type string nullablebeds number nullablebaths number nullablefull_baths integer nullablehalf_baths integer nullablethree_quarter_baths integer nullabletotal_rooms number nullablelegal_rooms integer nullablestories integer nullablesqft number nullablelot_sqft number nullableyear_built integer nullablebuilding_floors integer nullablebuilding_units integer nullablebuilding_name string nullablebuilding_age string nullableavailable_at integer nullablelast_close_price number nullablelast_close_at integer nullablecumulative_days_on_market integer nullablemin_down_payment_percent number nullablemax_financing_percent number nullableis_waterfront boolean nullableis_senior_community boolean nullablehas_association boolean nullableparking_spaces integer nullablegarage_spaces integer nullablefurnished string nullableapartment_layout string nullableshares_policy string nullableaccess string nullablelevels string nullablebuilding_service_level string nullableis_primary_bedroom_on_main_level boolean nullableoutdoor_space array (default: [])parking_features array (default: [])views array (default: [])waterfront_features array (default: [])architectural_style array (default: [])property_condition array (default: [])lease_term_min_months integer nullablelease_term_max_months integer nullablerental_fee_percent number nullablemanagement_company string nullablekey_details array (default: [])@type string (default: "CompassKeyDetail")label string nullablevalue string nullablebadges array (default: [])buyer_agent_fee_percent number nullablecompensation_remarks string nullablevirtual_tour_urls array (default: [])description string nullableamenities array (default: [])hashtags array (default: [])parcel_number string nullablelease_term string nullablesold_by string nullablecourtesy_of string nullablecontacts array (default: [])@type string (default: "CompassDealContact")name string nullablecontact_type string nullablecompany string nullableemail string nullablephone string nullablelicense_number string nullableprofile_url string nullablehistory array (default: [])@type string (default: "CompassDealEvent")status string nullableprice number nullableevent_at integer nullablesource_name string nullablesource_url string nullableimage string nullablepage_link string nullableactive_listings array (default: [])@type string (default: "CompassAgentDeal")listing_id string nullablelisting_type string nullablestatus string nullableaddress string nullableunit string nullablefloor string nullableneighborhood string nullablecity string nullablestate string nullablezip_code string nullablecounty string nullablelatitude number nullablelongitude number nullableprice number nullablelisted_price number nullableprice_per_sqft number nullablemonthly_charges number nullableclosed_price_verification string nullablelisted_at integer nullablecontract_at integer nullableclosed_at integer nullabledays_on_market integer nullableproperty_type string nullablebeds number nullablebaths number nullablefull_baths integer nullablehalf_baths integer nullablethree_quarter_baths integer nullabletotal_rooms number nullablelegal_rooms integer nullablestories integer nullablesqft number nullablelot_sqft number nullableyear_built integer nullablebuilding_floors integer nullablebuilding_units integer nullablebuilding_name string nullablebuilding_age string nullableavailable_at integer nullablelast_close_price number nullablelast_close_at integer nullablecumulative_days_on_market integer nullablemin_down_payment_percent number nullablemax_financing_percent number nullableis_waterfront boolean nullableis_senior_community boolean nullablehas_association boolean nullableparking_spaces integer nullablegarage_spaces integer nullablefurnished string nullableapartment_layout string nullableshares_policy string nullableaccess string nullablelevels string nullablebuilding_service_level string nullableis_primary_bedroom_on_main_level boolean nullableoutdoor_space array (default: [])parking_features array (default: [])views array (default: [])waterfront_features array (default: [])architectural_style array (default: [])property_condition array (default: [])lease_term_min_months integer nullablelease_term_max_months integer nullablerental_fee_percent number nullablemanagement_company string nullablekey_details array (default: [])@type string (default: "CompassKeyDetail")label string nullablevalue string nullablebadges array (default: [])buyer_agent_fee_percent number nullablecompensation_remarks string nullablevirtual_tour_urls array (default: [])description string nullableamenities array (default: [])hashtags array (default: [])parcel_number string nullablelease_term string nullablesold_by string nullablecourtesy_of string nullablecontacts array (default: [])@type string (default: "CompassDealContact")name string nullablecontact_type string nullablecompany string nullableemail string nullablephone string nullablelicense_number string nullableprofile_url string nullablehistory array (default: [])@type string (default: "CompassDealEvent")status string nullableprice number nullableevent_at integer nullablesource_name string nullablesource_url string nullableimage string nullablepage_link string nullableteam_members array (default: [])@type string (default: "CompassTeamMember")id string nullablealias string nullablename string nullablejob_title string nullablephone string nullableimage string nullableprofile_url string nullableoffice_address string nullableoffice_city string nullableoffice_state string nullableoffice_zip_code 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 — Agent not found (well-formed slug but no agent profile 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.