docs / 06

API reference

Every endpoint the Worker serves, grouped by the credential it needs.

Public

No credentials required.

MethodPathDescription
GET/healthLiveness check. Returns { "ok": true }.
GET/api/coverageNational coverage totals by class and people, with a per-state breakdown.
GET/api/countiesCounty coverage rows. Filters: status, state, limit, offset.
GET/api/counties/:fipsOne county by five-digit FIPS, or 404.

Session

Requires the Better Auth session cookie.

MethodPathDescription
GET/api/meCurrent session as JSON, or 401 when signed out.
POST/api/tokens/trialIssue the account's one 30-day trial key (50 credits). 409 with trial_revoked, trial_expired, trial_exhausted or trial_already_claimed once it has been claimed; there is no reissue.
GET/api/tokensList the account's tokens. Raw values and hashes never appear.
POST/api/tokens/:id/revokeRevoke a token, or 404 if it is not the account's.
POST/api/auth/*Better Auth: sign-up, sign-in, sign-out, verification, passkeys.

Bearer token

Requires Authorization: Bearer <token> and consumes credits.

MethodPathDescription
GET/api/parcelsMetered parcel reads. Filters: county_fips, limit.
GET/api/parcels/atMetered point lookup: the parcel containing lat/lon, or 404.
GET/api/parcels/by-addressMetered address lookup: the parcel at one pasted mailing line, via the county street index, the local address-point index, then a geocode fallback.
GET/api/usageThe calling token's balance and recent ledger.

Parcel reads

curl "https://parcel.reeeally.ai/api/parcels?county_fips=06037&limit=100" \
  -H "Authorization: Bearer $PARCEL_TOKEN"
QueryMeaning
county_fipsOptional five-digit county FIPS. Omit for all loaded parcels.
limitRecords to return, 1–1000. Default 100. Values outside the range are rejected with 400.
latRequired by /api/parcels/at. Latitude, a finite number from -90 to 90.
lonRequired by /api/parcels/at. Longitude, a finite number from -180 to 180.

Point lookup

curl "https://parcel.reeeally.ai/api/parcels/at?lat=34.0501&lon=-118.2401" \
  -H "Authorization: Bearer $PARCEL_TOKEN"

Returns the one parcel whose footprint contains the point. A point outside loaded coverage is a 404 not_found and consumes 0 credits; only a served parcel consumes one credit.

Address lookup

Returns the parcel at one pasted mailing line. The line must be comma-separated: street, city, STATE, ZIP. The county is resolved server-side from the ZIP through the Census ZCTA-to-county crosswalk, or from an optional county name hint; a FIPS is never accepted as input. Sources are consulted in order: the county's own street-address index, then the local National Address Database point index, then a geocoder. An address-point match is verified by containment in the parcel's own footprint and is unit-agnostic: every unit point in one building resolves to the same parcel, so a unit never splits an answer. Geocodio is the only geocoder; only a rooftop or point match is precise enough to select a parcel, and any other accuracy type is reported as unresolved.

curl "https://parcel.reeeally.ai/api/parcels/by-address?address=1219%20S%20Lamar%20Blvd%2C%20Austin%2C%20TX%2078704" \
  -H "Authorization: Bearer $PARCEL_TOKEN"
QueryMeaning
addressRequired. One pasted line: 'street, city, STATE ZIP'. ZIP+4 is accepted. The ZIP may be omitted; the county is then resolved by the geocoder. A unit (apt, ste, #) may be part of the street.
countyOptional county name hint (for example Travis, or 'St. Louis'). Never a FIPS; a numeric value is a 400 county_fips_not_accepted.
apnOptional APN to choose between two parcels that share the address.
{
  "parcel": { "id": "48453:100012", "apn": "100012", "address": "S 1219 LAMAR BLVD   TX 78704", "county_fips": "48453" },
  "count": 1,
  "parsed": { "street": "1219 S Lamar Blvd", "city": "Austin", "state": "TX", "zip": "78704" },
  "county": { "county_fips": "48453", "county_name": "Travis County", "state": "TX" },
  "match": { "method": "exact", "score": 1, "matched_address": "S 1219 LAMAR BLVD   TX 78704" },
  "metering": { "plan": "trial", "credits_remaining": 49, "overage_records": 0, "overage_amount_cents": 0 }
}
OutcomeHTTPerror
One parcel200— (1 credit consumed)
More than one parcel or containing address point409address_ambiguous (candidates; 0 credits)
County name matches nothing404county_not_found
County name matches more than one county409county_ambiguous (counties)
ZIP not in the crosswalk404zip_unknown
No candidate county is covered404county_uncovered (counties)
Covered county, no matching address404address_not_found (counties)
Covered county publishes no street addresses and has no matching address point422address_search_unavailable (counties) unless a rooftop/point geocode places the address
Geocoder is unavailable503geocoder_unavailable (0 credits; retry shortly)
Malformed address, no street number, numeric county400invalid_address / street_number_required / county_fips_not_accepted

Every error path is free. The response carries the same metering block; credits_remaining only moves on a 200.

Usage

curl https://parcel.reeeally.ai/api/usage \
  -H "Authorization: Bearer $PARCEL_TOKEN"

MCP

The same metered reads are available to AI agents over the Model Context Protocol at /mcp. It uses the same bearer token and credits; see the MCP guide for client setup and the tool list.

Admin

The ops console under /admin is restricted to admin users and is not part of the public API.