API reference

Three GET routes. One key. The same JSON in every county.

Base URL and auth

Every route sits under this base URL:

Base URL
https://crelayer.com/data

Send your key in a header on every request:

Header
Authorization: Bearer YOUR_CRELAYER_API_KEY

The key never goes in the URL. Unknown query parameters are refused with 400, and that includes api_key and key.

GET /v1/property

Returns one property record. Send exactly one of address or parcel_id.

ParameterTypeWhat it does
addressstringStreet address of the parcel. Case and spacing do not matter. Send this or parcel_id, never both.
parcel_idstringThe county's own parcel number, as the county writes it. Needs county.
countystringCounty id such as us-wa-king. Required with parcel_id. Optional with address, where it narrows the match.
By address
curl -sS -G "https://crelayer.com/data/v1/property" \
  -H "Authorization: Bearer $CRELAYER_API_KEY" \
  --data-urlencode "address=YOUR_STREET_ADDRESS"
By parcel number
curl -sS -G "https://crelayer.com/data/v1/property" \
  -H "Authorization: Bearer $CRELAYER_API_KEY" \
  --data-urlencode "parcel_id=YOUR_PARCEL_NUMBER" \
  --data-urlencode "county=us-wa-king"

The answer is { "meta": ..., "property": ... }. The quickstart explains every field of the record. county_fields is on every lookup and holds only the county fields served to your key. No county's extra fields are served yet; coverage shows each county's status.

Three more fields can appear on a lookup: coordinate_source says where lat and lng come from (county or census_geocoder), last_sale_date_precision says whether the sale date is exact to the day or the month, and matched_by says how the parcel was matched.

zoning_label is the zoning label the county's Assessor has on file for the parcel, on a lookup and on every search row. King County publishes one. It is a label: the rules are in the zoning code of the city or county the parcel is in.

Owner names are not returned today.

GET /v1/counties/{county}/fields

Lists the fields one county publishes. The same names are the keys of county_fields on every record from that county. This route takes no query parameters.

ParameterTypeWhat it does
countystringCounty id such as us-wa-king, in the path.
Terminal
curl -sS "https://crelayer.com/data/v1/counties/us-wa-king/fields" \
  -H "Authorization: Bearer $CRELAYER_API_KEY"

The answer is { "meta": ..., "county": ..., "fields": [...] }. Each entry in fields has:

PropertyTypeWhat it does
namestringThe county's own field name. Case matters.
typestringstring, number, integer, boolean or date.
descriptionstring or nullWhat the county says the field holds.
exampleany or nullOne example value. Null for owner and mailing fields.
filterablebooleanWhether you can use the field in county_filters.
returnedbooleanfalse when the county publishes the field but we do not return it.
reasonstring or nullWhy a field is not returned. Null when it is returned.

An empty fields list with a note means the county's field details are not loaded yet. It does not mean the county has no fields.

Paging

Search results come in pages of page_size. The default is 25 and the most is 100, or 25 on the Free plan.

  1. Send the search without page.
  2. If next_page in the answer is not null, send the same request again with page set to it.
  3. Stop when next_page is null.

A page value works only with the key and the parameters that produced it. One search can be paged through its first 5,000 results. A page past that is a 400. The fix is a narrower search: add a county, a city, a type, a value or size range, or a smaller radius.

County filters

county_filters lets a search filter on one county's own fields. It is a JSON object: each key is a field name, and each value says how to match it.

OperatorTypeWhat it does
eqanyThe value equals this.
minnumber or dateAt least this. For number, integer and date fields. Dates as YYYY-MM-DD.
maxnumber or dateAt most this. For number, integer and date fields. Dates as YYYY-MM-DD.
containsstringThe text contains this. For string fields.
  1. Call GET /v1/counties/{county}/fields and pick fields where filterable is true.
  2. Build the JSON, using the county's exact field names.
  3. Send it as county_filters together with county. URL-encode it. curl --data-urlencode does that for you.
Terminal
curl -sS -G "https://crelayer.com/data/v1/search" \
  -H "Authorization: Bearer $CRELAYER_API_KEY" \
  --data-urlencode "county=us-wa-king" \
  --data-urlencode 'county_filters={"FIELD_NAME":{"contains":"warehouse"}}'

Replace FIELD_NAME with a real field from that county. You can use at most 10 fields in one search. A parcel that has no value for a filtered field never matches. Owner and mailing fields can never be filtered on.

Errors

Every error has the same shape. message says what happened and hint says what to do next.

Error layout
{
  "meta": { "requestId": "string", "contractVersion": "string" },
  "error": {
    "code": "bad_request",
    "message": "string",
    "hint": "string or null",
    "retryAfterSeconds": "integer or null"
  }
}
StatusCodeWhat it means and what to do
400bad_requestA parameter is wrong or unknown. The message says which one. Fix it and send again.
401unauthorizedThe key is missing or mistyped. Send it in the Authorization header.
403not_available_yetThe key is switched off or the data is not open to it. The message says why. Do not retry.
404not_foundNo parcel matched. Check the spelling or add the county. This does not prove the parcel does not exist.
404county_not_coveredWe do not serve that county yet. See coverage for the live list.
429rate_limitedA limit was reached: requests per minute, or the free allowance for the day. error.limit says which one and error.resets_at says when it resets. Wait the seconds in the retry-after header, then try again.
500internal_errorSomething failed on our side. Try again. If it repeats, tell us.
503data_unavailableThe data, or the address service behind near, is not answering. Try again shortly, or use city or lat and lng.

Letters by mail

Write to a property's owner by post. Your agent writes the words, you approve each letter and pay for it by card, and we print it and post it first-class.

Draft, send, check
# 1. Draft: returns the letter as it will print, a proof and the price. Posts nothing.
curl -X POST "https://crelayer.com/data/v1/letters/draft" \
  -H "Authorization: Bearer $CRELAYER_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "county": "us-wa-king",
    "parcel_id": "PARCEL_ID_FROM_A_LOOKUP",
    "body": "Hello,\n\nI would like to talk with you about buying your building.\n\nJordan Lee, 555-0100",
    "sender": {
      "name": "Jordan Lee",
      "address_line1": "100 Example St",
      "city": "Bellevue",
      "state": "WA",
      "zip": "98004"
    }
  }'

# 2. Send: only after the person has read each letter and said yes.
#    One call covers 1 to 50 drafts. Where the account pays by card, the
#    answer carries order.checkout_url: the person pays there, and the
#    letters are then sent to print.
curl -X POST "https://crelayer.com/data/v1/letters/send" \
  -H "Authorization: Bearer $CRELAYER_API_KEY" \
  -H "content-type: application/json" \
  -d '{"letter_ids": ["LETTER_ID_FROM_THE_DRAFT"], "approved_by_person": true}'

# 3. See what happened. This also picks up a payment the person just made.
curl "https://crelayer.com/data/v1/letters" \
  -H "Authorization: Bearer $CRELAYER_API_KEY"
  • POST /v1/letters/draft takes county, parcel_id, body (plain text, at most 1,800 characters) and sender (name, address_line1, city, state, zip). It returns letter with letter_id, text (the whole letter as it prints), to, proof_url (a PDF of the page) and price_usd. A draft is free.
  • POST /v1/letters/send takes letter_ids (1 to 50 drafts) and approved_by_person: true. Send it only after the person has read each letter and the total and said yes. A letter is posted once. POST /v1/letters/{letter_id}/send does the same for one letter.
  • Every letters answer carries payment. card: the send returns order with checkout_url, one secure payment page for the exact total, open for one hour. The person pays there by card. Paying is their approval, and an agent cannot do it for them. Nothing is printed before the card is approved, and the card is charged only for letters that were sent. not_open: paying is not open for the account, so each letter is made exactly as it would print and kept as a proof (status test), and nothing is charged.
  • GET /v1/letters lists your letters, your orders and the price, and picks up a payment the person has just made. GET /v1/letters/{letter_id} returns one letter with its status and tracking.
  • The letter goes to the property's own street address, addressed by the property, such as "Owner of 410 Maple Ln". We do not give out an owner's name or mailing address.
  • We add a few lines you cannot remove: who sent it, why it came to that address, and how the recipient stops further letters. They are in letter.required_lines.
  • A letter's status is draft, sent_to_print, in_the_mail, delivered, returned, test or failed. sent_to_print is a letter the mail service has, with expected_delivery_date. It becomes in_the_mail at the post office's first scan, usually within three business days, and last_scan says what that scan was. failed is a letter that could not be sent: problem says why, and it was not charged. An order's status is awaiting_payment, paid or expired.
  • An account's first paid order may be read by a person at CRE Layer before anything is printed. The order then shows review pending and each of its letters in_review. The card is held, not charged, until the letters are sent. A refused order shows review refused: nothing was sent and nothing was charged.
  • A letter that was sent cannot be recalled or refunded. The refund policy and section 8 of the Terms set out the rules for letters, including what a letter may not say.
  • One property gets a letter from one account at most once in 30 days. A recipient who asks for no more letters gets none, from anyone.

With MCP the same three steps are draft_letter, send_letters and get_letters.

Limits

  • Free to start. Fair-use limits apply.
  • Requests are limited per key, per minute. Answers carry x-ratelimit-remaining. A 429 carries retry-after in seconds.
  • A 429 says which limit it is in error.limit (per_minute, calls_per_day, records_per_day, service_day or paused) and when it resets in error.resets_at. A day limit resets at 00:00 UTC.
  • On the Free plan, every lookup, search and field list says what it cost in meta.usage: records_this_call, calls_left_today, records_left_today and resets_at. These are the numbers GET /v1/account gives.
  • All keys on one account share the account's limit.
  • page_size is 1 to 100, or at most 25 on the Free plan.
  • One search pages through its first 5,000 results, or 500 on the Free plan.
  • radius_miles is at most 25.
  • county_filters takes at most 10 fields.