Menu · Reference
Reference

An agent's production

GEThttps://idx.ruuster.com/v1/agents/{agentMlsId}/production

publishable or secret key · 2 units · cached 3600 s

Get one of your agents' listings for sale now and the homes they sold, on either side where the MLS allows it, counted by city and ZIP over up to 36 months.

View as Markdownopenapi.json

"Where they've sold" for an agent profile page: the agent's listings for sale now, and the homes they sold, with the count, total volume and the top cities and ZIP codes. Use the agent's MLS id (the member id their board issued), not a Ruuster id. It answers for your own brokerage's agents only: any other MLS id gets 404 agent_not_found.

What to know

  • months is 1 to 36 (36 when you leave it out). Each MLS caps it again at its own sold window, so period.soldFrom says from when sales are shown.
  • Member ids are per MLS. When your account has more than one MLS, send mls with the board's id (repeat it for several).
  • Sales count only on MLSs that show sold data; sold.soldHiddenMlsIds names the others. A home whose address the MLS hides counts in the totals but never in a city or ZIP row.
  • Both sides count where the MLS allows the buyer side: sold.bySide splits the sales into the listing side and the buyer side, sold.buyerSideMlsIds names the MLSs whose buyer-side sales are counted and sold.buyerSideSkippedMlsIds the ones counted on the listing side only. A sale the agent was on both sides of counts once in sold.count.
  • Only MLSs that allow market statistics are counted; boardsLeftOut names any left out. When none of the MLSs allows them, the answer is 403 brokerage_not_enabled.
  • agent.via is agent for one of your brokerage's agents, or office when the agent is counted through your brokerage's own offices (then only listings under those offices count).
  • current.listingIds and sold.listingIds hold up to 100 ids each; fetch a card or page for any of them with GET /v1/listings/{listingId}.

Path parameters

Name Type Description
agentMlsId string The agent's MLS id: the member id their MLS issued (letters, digits, dots, dashes or underscores, up to 64), as the listing agent's MLS id on their listings. Not a Ruuster id.

Query parameters

Name Type Description
mls uuid, repeat Only these of your MLS boards (their MLS ids; repeat for several). Default: every board of your account. The agent's MLS id is per board, so send the board when you have more than one. A board that isn't yours is 400 invalid_parameter. At most 20 values.
months integer 1 to 36, default 36 How many months of sales to count, ending now (1 to 36). Each MLS caps it again at its own sold window: period.soldFrom says from when sales are shown.

Response

The answer is { ok: true, data, meta }. These are the fields of data; meta carries brokerageId, freshness.asOf, mls (each board's display rules) and canonical.

Field Type Description
agent object The agent. Only your brokerage's own agents and offices can be asked for.
agent.memberId string The agent's MLS id.
agent.mlsIds array of string The MLSs counted.
agent.via string (enum) agent: one of your brokerage's agents; office: counted through your brokerage's own offices only. One of agent, office.
boardsLeftOut array of object MLSs left out of every count, and why.
boardsLeftOut[].mlsId string
boardsLeftOut[].why string (enum) market_stats_off: this MLS doesn't allow market statistics. One of market_stats_off.
period object The window.
period.months integer The months asked for.
period.from string The start of the months asked for.
period.through string Now.
period.soldFrom string or null The oldest sale any MLS here lets us show (each MLS's sold window); null when none shows sold data.
current object The agent's listings for sale now.
current.count integer Listings for sale now.
current.byStatus object Current listings by status (only statuses the MLS lets us show).
current.byStatus.active integer
current.byStatus.coming_soon integer
current.byStatus.pending integer
current.byStatus.under_contract integer
current.listingIds array of string Up to 100 of their ids (GET /v1/listings/{id} each).
sold object The agent's sales.
sold.count integer Sales inside the window, on either side (see bySide).
sold.volume number or null Sum of the sold prices; null when no MLS here shows sold data.
sold.byCity array of object Top 25 cities. Homes whose address the MLS hides are counted in the totals only.
sold.byCity[].key string The city or ZIP as the MLS spells it.
sold.byCity[].label string The city or ZIP for display.
sold.byCity[].count integer Sales in this area.
sold.byCity[].volume number or null Sum of the sold prices in this area.
sold.byPostalCode array of object Top 25 ZIP codes, same rule.
sold.byPostalCode[].key string The city or ZIP as the MLS spells it.
sold.byPostalCode[].label string The city or ZIP for display.
sold.byPostalCode[].count integer Sales in this area.
sold.byPostalCode[].volume number or null Sum of the sold prices in this area.
sold.listingIds array of string Up to 100 of the sales, newest first.
sold.soldHiddenMlsIds array of string MLSs searched whose rules hide sold data (not counted).
sold.bySide object Sales by side. A sale the agent was on both sides of counts once in count and once in each side.
sold.bySide.listing object Sales where the agent was the listing agent.
sold.bySide.listing.count integer
sold.bySide.listing.volume number or null
sold.bySide.buyer object Sales where the agent was the buyer's agent (only on MLSs that allow the buyer side).
sold.bySide.buyer.count integer
sold.bySide.buyer.volume number or null
sold.buyerSideMlsIds array of string MLSs whose buyer-side sales are counted.
sold.buyerSideSkippedMlsIds array of string MLSs that show sold data but don't allow the buyer side: listing side only.
sold.truncated boolean true when there are more sales than listingIds holds.

Errors

These are the error codes this endpoint can answer. Every error has the same body; Errors explains each code and what to show.

invalid_parameter, secret_key_in_url, invalid_credentials, missing_credentials, payment_required, access_revoked, brokerage_not_enabled, origin_not_allowed, origin_required, secret_key_in_browser, daily_quota_exceeded, rate_limited, internal_error, api_paused, source_unavailable