Menu · Reference
Reference

List saved shapes

GEThttps://idx.ruuster.com/v1/shapes

publishable or secret key · 1 unit · cached 300 s

List your account's saved shapes, such as a country club or a farm area, with their names, boxes and links to their outlines.

View as Markdownopenapi.json

Your account's saved shapes: areas drawn once and named, such as a country club, a farm area or a school zone. Each has an id that starts shp_, a name, a slug, its box and an href to its outline. Use a shape's id as shape on search, market and similar homes.

What to know

  • A shape that belongs to one site is listed only for that site's keys. A shape for every site is listed for all of them.
  • The list comes in one answer, without paging.
  • To have a shape added, email helpme@ruuster.com. Locations.

Query parameters

This call takes no query parameters.

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
shapes array of object The shapes this key can search by, newest first: the account-wide ones and this site's own.
shapes[].id string The shape id: search by it with shape=.
shapes[].name string The name the account gave the shape.
shapes[].slug string A URL-friendly form of the name, unique within the account.
shapes[].vertexCount integer Positions in the stored outline. A search sends it simplified to fit the engine's polygon size.
shapes[].viewport object The shape's own box (feed it back as bbox to frame the map).
shapes[].viewport.south number South latitude.
shapes[].viewport.west number West longitude.
shapes[].viewport.north number North latitude.
shapes[].viewport.east number East longitude.
shapes[].href string GET this URL (same key) for the outline as GeoJSON.
shapes[].siteId string or null The site the shape belongs to; null when every site of the account can use it.
shapes[].updatedAt string When the shape was last saved (ISO 8601).

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