docs / 06
API reference
Every endpoint the Worker serves, grouped by the credential it needs.
Public
No credentials required.
| Method | Path | Description |
|---|---|---|
| GET | /health | Liveness check. Returns { "ok": true }. |
| GET | /api/coverage | National coverage totals by class and people, with a per-state breakdown. |
| GET | /api/counties | County coverage rows. Filters: status, state, limit, offset. |
| GET | /api/counties/:fips | One county by five-digit FIPS, or 404. |
Session
Requires the Better Auth session cookie.
| Method | Path | Description |
|---|---|---|
| GET | /api/me | Current session as JSON, or 401 when signed out. |
| POST | /api/tokens/trial | Issue 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/tokens | List the account's tokens. Raw values and hashes never appear. |
| POST | /api/tokens/:id/revoke | Revoke 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.
| Method | Path | Description |
|---|---|---|
| GET | /api/parcels | Metered parcel reads. Filters: county_fips, limit. |
| GET | /api/parcels/at | Metered point lookup: the parcel containing lat/lon, or 404. |
| GET | /api/parcels/by-address | Metered 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/usage | The 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"| Query | Meaning |
|---|---|
| county_fips | Optional five-digit county FIPS. Omit for all loaded parcels. |
| limit | Records to return, 1–1000. Default 100. Values outside the range are rejected with 400. |
| lat | Required by /api/parcels/at. Latitude, a finite number from -90 to 90. |
| lon | Required 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"| Query | Meaning |
|---|---|
| address | Required. 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. |
| county | Optional county name hint (for example Travis, or 'St. Louis'). Never a FIPS; a numeric value is a 400 county_fips_not_accepted. |
| apn | Optional 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 }
}| Outcome | HTTP | error |
|---|---|---|
| One parcel | 200 | — (1 credit consumed) |
| More than one parcel or containing address point | 409 | address_ambiguous (candidates; 0 credits) |
| County name matches nothing | 404 | county_not_found |
| County name matches more than one county | 409 | county_ambiguous (counties) |
| ZIP not in the crosswalk | 404 | zip_unknown |
| No candidate county is covered | 404 | county_uncovered (counties) |
| Covered county, no matching address | 404 | address_not_found (counties) |
| Covered county publishes no street addresses and has no matching address point | 422 | address_search_unavailable (counties) unless a rooftop/point geocode places the address |
| Geocoder is unavailable | 503 | geocoder_unavailable (0 credits; retry shortly) |
| Malformed address, no street number, numeric county | 400 | invalid_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.