Jurisdictions & codes
The two neutral code shapes, the record-kind vocabulary, and the jurisdictions catalog.
Livehttps://api.offendersearch.appSandboxhttps://sandbox.offendersearch.appA code names a state and a jurisdiction, and nothing else
A jurisdiction code is the neutral handle for one place the product covers. It is what sources[].code reports on a record, what you pass as live.jurisdictions to verify at a source, and what the website resolver returns. There is deliberately no token for how the data is obtained — no portal, platform or vendor ever appears in a code, a source name, a coverage total, or an error. A code is a jurisdiction handle, and it is vendor-neutral by construction.
The two shapes
| Shape | Form | Examples |
|---|---|---|
| County a county-level jurisdiction | <ST>-<COUNTY> | AL-BALDWIN, TX-DALLAS, TX-HARRIS |
| Statewide / federal a system, named by the kind of record it holds | <ST>-<RECORD-KIND> | TX-DOC, OK-COURT, US-WARRANT |
<ST> is the two-letter USPS state code (US for a federal system). <COUNTY> is the county name, upper-cased, non-alphanumerics dropped and spaces hyphenated — Palm Beach → PALM-BEACH. Most county codes are the county name alone; some carry an extra word that tells two places apart (TX-ANDREWS-COUNTY, IN-DUBOIS-COUNTY-JAIL) — one more reason to read codes from the catalog rather than build them.
The record-kind vocabulary
For a statewide or federal system the suffix is the kind of record the system publishes — one token from a fixed set. So TX-DOC is the Texas state prison system, OK-COURT is Oklahoma statewide court records, and US-WARRANT is a federal warrant system.
| Suffix | Means | Example |
|---|---|---|
DOC | a state prison / Department of Corrections inmate system | TX-DOC |
COURT | statewide court records / dispositions | OK-COURT |
WARRANT | a warrant system | US-WARRANT |
REGISTRY | a statewide registry | FL-REGISTRY |
JAIL | a statewide county-jail roster system | IL-JAIL |
GET /v1/criminal/jurisdictions
Covered jurisdictions as codes — every jurisdiction in the product’s manifest, with live on each row, plus an honest per-product coverage summary. This is where you enumerate the codes you will send in a search; do not build them by hand. Requires an API key. Three query parameters filter it, and they combine (AND):
state— one state, case-insensitive.recordKind— one kind of record.live=true— only jurisdictions reachable for live verification.
Every parameter and response field is in the jurisdictions request and response tables below.
curl -s -G "https://api.offendersearch.app/v1/criminal/jurisdictions" \
-H "X-API-Key: $OFFENDERSEARCH_KEY" \
--data-urlencode "state=TX" \
--data-urlencode "live=true"{
"coverage": { "jurisdictions_total": 1566, "jurisdictions_live_connector": 1183,
"jurisdictions_pending_connector": 383, "states_covered": 52, "…": "…" },
"jurisdictions": [
{ "code": "TX-DOC", "state": "TX", "county": "(statewide)",
"recordKind": "doc-inmate", "level": "state", "live": true },
{ "code": "TX-ANGELINA", "state": "TX", "county": "Angelina",
"recordKind": "jail-roster", "level": "county", "live": true }
],
"count": 41
}Each row is a JurisdictionInfo: { code, state, county, recordKind, level, live }. An unmatched state simply yields an empty jurisdictions[] with the coverage summary intact — never an error. The recordKind values are the ones below:
| recordKind | Enumerates |
|---|---|
jail-roster | County jail booking rosters. |
court | Statewide court records and dispositions. |
doc-inmate | State Department of Corrections inmate systems. |
registry | Statewide registries. |
warrant | Warrant / most-wanted systems. |
exclusion | Government health-program and federal award exclusion lists. |
GET /v1/criminal/sources.How a code is used
A code shows up in two places, and they are different controls. A cached search is scoped by query.state and query.county — the location filter — while a live verification names the exact jurisdictions to re-check by their public codes in live.jurisdictions.
| Purpose | Field | Example |
|---|---|---|
| Filter a cached search to one jurisdiction | query.county + query.state | { "state": "TX", "county": "Bexar" } |
| Verify live at explicit jurisdictions | live.jurisdictions: [codes] | ["TX-BEXAR", "TX-DOC"] |
{
"query": { "lastName": "Hamilton", "state": "TX", "county": "Bexar" }
}{
"query": { "lastName": "Hamilton", "state": "TX" },
"live": { "jurisdictions": ["TX-BEXAR", "TX-DOC"] }
}query.county is matched case-insensitively (and is also accepted as query.jurisdiction). State and county filter the record's jurisdiction; city, ZIP and street address filter the residence where a source publishes one; there is no radius filter. live.jurisdictions takes the public codes; one public county code may cover more than one system, and each reports its own row in sourceStatus[].
ok: false with incompleteReason: "not_searched" and is never billed — the rest of the search proceeds, and even a search whose only code is unrecognised runs and reports it that way rather than failing. Confirm a code against the catalog rather than parsing it for meaning beyond state and place.Criminal jurisdictions API request and response fields
Every covered jurisdiction by public code, state, county and record kind, filtered by the query parameters. Not billed.
Request
| Field | Type | Description |
|---|---|---|
| state optional | string | Two-letter state, case-insensitive. Keeps rows in that state. Example "TX" |
| recordKind optional | string one of "jail-roster", "court", "doc-inmate", "registry", "warrant" | Keeps rows of that kind. Example "court" |
| live optional | boolean | true keeps only jurisdictions that can be re-verified live. Any other value applies no filter.Example true |
Response
The filtered list.
| Field | Type | Description |
|---|---|---|
| coverage | Coverage | Totals by jurisdiction for the whole product (not filtered). |
| jurisdictions | array of JurisdictionInfo | The matching jurisdictions. |
| count | integer | Rows in jurisdictions[] after filtering. |
| Status | Code | When |
|---|---|---|
| 401 | — | Missing or invalid X-API-Key. Body: GatewayError. |
| 402 | — | Free trial used up, or no active subscription. Body: GatewayError. |
| 503 | unavailable | Criminal Search could not be reached. Retry with backoff. |
| 504 | upstream_timeout | Criminal Search took longer than 65 seconds to answer. Retry, or narrow the query. |
The JurisdictionInfo object — one covered jurisdiction
One covered jurisdiction: its public code and its place, nothing else.
Returned or accepted by GET /v1/criminal/jurisdictions.
| Field | Type | Description |
|---|---|---|
| code | string | Public jurisdiction code. Example "TX-BEXAR" |
| state | string | Two-letter state, or US.Example "TX" |
| county | string or null | County name; "(statewide)" on a statewide row; null when the catalog names none.Example "Bexar" |
| recordKind | string one of "jail-roster", "court", "doc-inmate", "registry", "warrant", "exclusion" | jail-roster, court, doc-inmate, registry, warrant or exclusion. |
| level | string one of "county", "state", "federal" | county, state or federal. |
| live | boolean | true when the jurisdiction can be re-verified live (live.jurisdictions). |