Resolve a website to a code
Map a roster or court website you know to the neutral jurisdiction code to search with.
Livehttps://api.offendersearch.appSandboxhttps://sandbox.offendersearch.appYour site in, our neutral code out
You may already know the roster or records website for a place you care about — a county sheriff’s inmate page, a court portal — without knowing our jurisdiction code for it. The resolver maps a website to that code, so you can drive a search from a URL.
POST /v1/criminal/resolve
X-API-Key, available on every account exactly like search — no entitlement required. Not metered — a cheap in-memory lookup that consults no data source, so it emits no criminal_call. Send one website or a list of websites; a request with neither is 422 no_website.
curl -X POST https://api.offendersearch.app/v1/criminal/resolve \
-H "X-API-Key: $OFFENDERSEARCH_KEY" \
-H "Content-Type: application/json" \
-d '{ "website": "https://sheriff.examplecounty.gov/inmates" }'{
"input": "https://sheriff.examplecounty.gov/inmates",
"supported": true,
"code": "TX-BEXAR",
"state": "TX",
"county": "Bexar",
"note": "equivalent data available for this jurisdiction"
}Website resolver API request and response fields
Map a roster or records website you already use to the public jurisdiction code that covers it, or say it is not covered. Not billed.
Request
| Field | Type | Description |
|---|---|---|
| website optional | string | One roster or records website. Returns one ResolveResult. Example "https://sheriff.examplecounty.gov/inmates" |
| websites optional | array of string | A list of websites, resolved in order. Returns a ResolveListResponse. |
Response
A ResolveResult for website, or a ResolveListResponse for websites.
The body is the ResolveResult object. What one website resolved to. The response names the state, the county and the public code, never the website's host.
| Status | Code | When |
|---|---|---|
| 401 | — | Missing or invalid X-API-Key. Body: GatewayError. |
| 402 | — | Free trial used up, or no active subscription. Body: GatewayError. |
| 422 | no_website | Neither website nor websites was sent. |
| 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. |
Response fields
One website returns a ResolveResult: input, supported, code, state, county and note. A list returns a ResolveListResponse wrapping one result per website. Every field is defined below.
An unsupported site is supported: false with a plain-language reason — not an error. Only a request with no site at all is a 422 no_website.
The ResolveResult object — one website's result
What one website resolved to. The response names the state, the county and the public code, never the website's host.
Returned or accepted by POST /v1/criminal/resolve.
| Field | Type | Description |
|---|---|---|
| input | string | Your website, echoed back exactly. Example "https://sheriff.examplecounty.gov/inmates" |
| supported | boolean | true when the jurisdiction is covered and code is set. |
| code | string or null | The public jurisdiction code, or null when unsupported.Example "TX-BEXAR" |
| state | string or null | The jurisdiction's state when it can be identified, even for an unsupported site. null otherwise.Example "TX" |
| county | string or null | The jurisdiction's county when it can be identified. null otherwise.Example "Bexar" |
| note | string | One sentence explaining the outcome ("equivalent data available for this jurisdiction", "not currently covered").Example "equivalent data available for this jurisdiction" |
The ResolveListResponse object — resolving a list of websites
The answer when websites (a list) is sent.
| Field | Type | Description |
|---|---|---|
| count | integer | Number of results, equal to the number of websites sent. |
| results | array of ResolveResult | One result per website, in the order sent. |
Resolving a list
A list of websites returns a results[] wrapper, one entry per input, in order — so a mixed batch of sites still resolves the ones we cover and tells you which ones we do not.
curl -X POST https://api.offendersearch.app/v1/criminal/resolve \
-H "X-API-Key: $OFFENDERSEARCH_KEY" \
-H "Content-Type: application/json" \
-d '{ "websites": ["https://sheriff.examplecounty.gov/inmates",
"https://jail.baldwincounty.example/roster"] }'{
"count": 2,
"results": [
{ "input": "https://sheriff.examplecounty.gov/inmates",
"supported": true, "code": "TX-BEXAR", "state": "TX", "county": "Bexar",
"note": "equivalent data available for this jurisdiction" },
{ "input": "https://jail.baldwincounty.example/roster",
"supported": false, "code": null, "state": "AL", "county": "Baldwin",
"note": "Baldwin, AL is not currently covered" }
]
}Using a website inline in a search
You don’t have to resolve first. query.website scopes a cached search to the resolved jurisdiction; live.websites live-verifies the resolved jurisdictions, exactly as if you had listed their codes. Whenever a search resolves a website, the response carries a top-level resolution[] array so you can see which code each site mapped to. See Search and Jurisdictions & codes.
The ResolutionEntry object — resolution[] on a search
What one website resolved to, as reported in a search's resolution[]. The same fields as a ResolveResult without state and county.
Returned or accepted by POST /v1/criminal/search, GET /v1/criminal/searches/{searchId}.
| Field | Type | Description |
|---|---|---|
| input | string | Your website, echoed back exactly. |
| supported | boolean | true when the jurisdiction is covered and code is set. |
| code | string or null | The public jurisdiction code, or null when unsupported. |
| note | string | One sentence explaining the outcome. |