API reference
Three GET routes. One key. The same JSON in every county.
Base URL and auth
Every route sits under this base URL:
https://crelayer.com/dataSend your key in a header on every request:
Authorization: Bearer YOUR_CRELAYER_API_KEYThe 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.
| Parameter | Type | What it does |
|---|---|---|
address | string | Street address of the parcel. Case and spacing do not matter. Send this or parcel_id, never both. |
parcel_id | string | The county's own parcel number, as the county writes it. Needs county. |
county | string | County id such as us-wa-king. Required with parcel_id. Optional with address, where it narrows the match. |
curl -sS -G "https://crelayer.com/data/v1/property" \
-H "Authorization: Bearer $CRELAYER_API_KEY" \
--data-urlencode "address=YOUR_STREET_ADDRESS"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/search
Returns a page of property records. Every parameter is optional, and they combine with AND.
| Parameter | Type | What it does |
|---|---|---|
type | string | Property type: industrial, warehouse, office, retail, multifamily, single_family, land, mixed_use or other. industrial also returns warehouses. single_family is a dwelling for one household (a house, a townhouse, a condominium unit); it finds parcels only in a county whose data holds every parcel, which the check_open_counties tool names (parcels: all_parcels). Send type when you mean one kind of property: with no type such a county returns homes too, each with no street address, and the answer says so in type_note. |
value_min | number | Lowest county assessed total, in whole US dollars. |
value_max | number | Highest county assessed total, in whole US dollars. |
bldg_sqft_min | number | Smallest building area, in square feet. |
bldg_sqft_max | number | Largest building area, in square feet. |
city | string | City of the parcel. Case does not matter. Not together with near or lat and lng. |
near | string | A place or address to search around. Needs radius_miles. Not together with city or lat and lng. |
lat | number | Centre latitude. Needs lng and radius_miles. |
lng | number | Centre longitude. Needs lat and radius_miles. |
radius_miles | number | Radius around near or lat and lng, above 0 and at most 25 miles. |
county | string | County id such as us-wa-king. Required with county_filters. |
county_filters | string (JSON) | A URL-encoded JSON object that filters on one county's own fields. Needs county. |
page | string | The next_page value from the previous answer, with every other parameter unchanged. |
page_size | integer | Results per page, 1 to 100, or at most 25 on the Free plan. The default is 25. |
include_county_fields | boolean | true, the default, returns county_fields on every result. false leaves them out to keep pages small. |
count_only | boolean | true returns only how many parcels match: total, with an empty results list. It counts as one request and no records. Not allowed with page. |
Set the place one way only: city, or near with radius_miles, or lat and lng with radius_miles. A radius search returns the nearest parcels first and adds distance_miles to each result.
curl -sS -G "https://crelayer.com/data/v1/search" \
-H "Authorization: Bearer $CRELAYER_API_KEY" \
--data-urlencode "county=us-wa-king" \
--data-urlencode "type=industrial" \
--data-urlencode "bldg_sqft_min=40000" \
--data-urlencode "page_size=5"curl -sS -G "https://crelayer.com/data/v1/search" \
-H "Authorization: Bearer $CRELAYER_API_KEY" \
--data-urlencode "near=YOUR_CITY, STATE" \
--data-urlencode "radius_miles=5" \
--data-urlencode "type=office"The answer is { "meta": ..., "results": [...], "next_page": ... }. An empty results list means nothing matched in the counties we serve. It does not mean no such property exists.
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.
| Parameter | Type | What it does |
|---|---|---|
county | string | County id such as us-wa-king, in the path. |
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:
| Property | Type | What it does |
|---|---|---|
name | string | The county's own field name. Case matters. |
type | string | string, number, integer, boolean or date. |
description | string or null | What the county says the field holds. |
example | any or null | One example value. Null for owner and mailing fields. |
filterable | boolean | Whether you can use the field in county_filters. |
returned | boolean | false when the county publishes the field but we do not return it. |
reason | string or null | Why 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.
- Send the search without
page. - If
next_pagein the answer is not null, send the same request again withpageset to it. - Stop when
next_pageis 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.
| Operator | Type | What it does |
|---|---|---|
eq | any | The value equals this. |
min | number or date | At least this. For number, integer and date fields. Dates as YYYY-MM-DD. |
max | number or date | At most this. For number, integer and date fields. Dates as YYYY-MM-DD. |
contains | string | The text contains this. For string fields. |
- Call
GET /v1/counties/{county}/fieldsand pick fields wherefilterableis true. - Build the JSON, using the county's exact field names.
- Send it as
county_filterstogether withcounty. URL-encode it.curl --data-urlencodedoes that for you.
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.
{
"meta": { "requestId": "string", "contractVersion": "string" },
"error": {
"code": "bad_request",
"message": "string",
"hint": "string or null",
"retryAfterSeconds": "integer or null"
}
}| Status | Code | What it means and what to do |
|---|---|---|
| 400 | bad_request | A parameter is wrong or unknown. The message says which one. Fix it and send again. |
| 401 | unauthorized | The key is missing or mistyped. Send it in the Authorization header. |
| 403 | not_available_yet | The key is switched off or the data is not open to it. The message says why. Do not retry. |
| 404 | not_found | No parcel matched. Check the spelling or add the county. This does not prove the parcel does not exist. |
| 404 | county_not_covered | We do not serve that county yet. See coverage for the live list. |
| 429 | rate_limited | A 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. |
| 500 | internal_error | Something failed on our side. Try again. If it repeats, tell us. |
| 503 | data_unavailable | The 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.
# 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/drafttakescounty,parcel_id,body(plain text, at most 1,800 characters) andsender(name,address_line1,city,state,zip). It returnsletterwithletter_id,text(the whole letter as it prints),to,proof_url(a PDF of the page) andprice_usd. A draft is free.POST /v1/letters/sendtakesletter_ids(1 to 50 drafts) andapproved_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}/senddoes the same for one letter.- Every letters answer carries
payment.card: the send returnsorderwithcheckout_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 (statustest), and nothing is charged. GET /v1/letterslists your letters, yourordersand 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
statusisdraft,sent_to_print,in_the_mail,delivered,returned,testorfailed.sent_to_printis a letter the mail service has, withexpected_delivery_date. It becomesin_the_mailat the post office's first scan, usually within three business days, andlast_scansays what that scan was.failedis a letter that could not be sent:problemsays why, and it was not charged. An order'sstatusisawaiting_payment,paidorexpired. - An account's first paid order may be read by a person at CRE Layer before anything is printed. The order then shows
reviewpendingand each of its lettersin_review. The card is held, not charged, until the letters are sent. A refused order showsreviewrefused: 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. A429carriesretry-afterin seconds. - A
429says which limit it is inerror.limit(per_minute,calls_per_day,records_per_day,service_dayorpaused) and when it resets inerror.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_todayandresets_at. These are the numbersGET /v1/accountgives. - All keys on one account share the account's limit.
page_sizeis 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_milesis at most 25.county_filterstakes at most 10 fields.