Criminal Records API · v1.0.0

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.app

Your 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.

The resolver is one-directional: your site in → our neutral jurisdiction code out. Even when the answer is “we cover this”, the response names only the state, the county, and the neutral code — never the site we actually read. The mapping runs only from your input toward a neutral code, never the other way.

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.

POST /v1/criminal/resolve
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" }'
200 OK — one website
{
  "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

POST/v1/criminal/resolveAuth: X-API-Key

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

Body · application/json
FieldTypeDescription
website
optional
stringOne roster or records website. Returns one ResolveResult.
Example "https://sheriff.examplecounty.gov/inmates"
websites
optional
array of stringA list of websites, resolved in order. Returns a ResolveListResponse.

Response

200 · application/json

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.

Errors
StatusCodeWhen
401—Missing or invalid X-API-Key. Body: GatewayError.
402—Free trial used up, or no active subscription. Body: GatewayError.
422no_websiteNeither website nor websites was sent.
503unavailableCriminal Search could not be reached. Retry with backoff.
504upstream_timeoutCriminal 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.

FieldTypeDescription
input
stringYour website, echoed back exactly.
Example "https://sheriff.examplecounty.gov/inmates"
supported
booleantrue when the jurisdiction is covered and code is set.
code
string or nullThe public jurisdiction code, or null when unsupported.
Example "TX-BEXAR"
state
string or nullThe jurisdiction's state when it can be identified, even for an unsupported site. null otherwise.
Example "TX"
county
string or nullThe jurisdiction's county when it can be identified. null otherwise.
Example "Bexar"
note
stringOne 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.

FieldTypeDescription
count
integerNumber of results, equal to the number of websites sent.
results
array of ResolveResultOne 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.

POST /v1/criminal/resolve — a list
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"] }'
200 OK — a list
{
  "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}.

FieldTypeDescription
input
stringYour website, echoed back exactly.
supported
booleantrue when the jurisdiction is covered and code is set.
code
string or nullThe public jurisdiction code, or null when unsupported.
note
stringOne sentence explaining the outcome.

Product overview