Criminal Records API · v1.0.0

Async live jobs & polling

When a live search goes async, the 202 body, and the poll contract for collecting the result.

Livehttps://api.offendersearch.appSandboxhttps://sandbox.offendersearch.app

Two modes: cached, and live verification

There is one search endpoint, and which mode you get is decided by the request body. Omit the live block and you get the cached answer; send a live block and the API re-checks the actual jurisdiction(s) in real time. Both modes run every result through the same name/DOB matcher and return the same response envelope, so a cached record and a live record agree about identity and rank together — the choice is about how the answer is obtained, not about a different product.

Cached (default)Live verification
How you askOmit liveSend a live block
What it doesOne indexed query over the continuously-updated corpus — every covered county, statewide and federal jurisdiction. No live data source is consulted.Re-checks the actual jurisdiction(s) in-request, then merges the fresh results with the cached answer through the same matcher.
SpeedSub-second≤2 sources may run inline; more → asynchronous
statusAlways "complete""complete" or "partial" (a source could not be searched to the end)
BillingOne criminal_callcriminal_call plus per completed live source, to a $2.00 ceiling

Cached — the default, and what almost every caller wants

The cached corpus is continuously updated. A cached search reads the newest stored copy of every jurisdiction, assembled into one ranked answer, and returns in under a second. It never reaches out to a live data source — that is the speed guarantee, and it is absolute. On a cached search:

  • sourceStatus[] is [] — there was no per-source fan-out to report; the answer came from the corpus in one indexed query.
  • status is "complete", always. A cached search cannot be "partial".
  • counts.sourcesQueried, counts.sourcesComplete and counts.sourcesIncomplete are all 0 — and that is not a shortfall. There is no fan-out to count.
  • There is no usage block (that key appears on live searches only), and meterEvents carries exactly one criminal_call.
Currency is published per record, not as a flag. Each sources[] entry carries lastCheckedAt — when we last saw that person at that jurisdiction — and each record carries a lifecycle block telling you whether the person was presentInLastSweep or has droppedOut. There is no separate freshness flag; the timestamp is the answer. On a cached search an empty records array genuinely means “nobody in the corpus matched” — the incompleteness failure mode is a property of live verification only.

Live verification — checked at the source, right now

A live check is interactive and real-time — the mode to reach for when compliance needs a current, moment-of-decision verification of a specific person. Send a live block and the API re-verifies at the actual jurisdiction(s) as part of your request, then merges the fresh results with the cached answer. The block has three inputs, usable in any combination:

The live block
{
  "query": { "lastName": "Hamilton", "firstName": "Alex", "state": "TX" },
  "live": {
    "jurisdictions": ["TX-BEXAR"],
    "scope": "matched",
    "websites": ["https://sheriff.examplecounty.gov/inmates"]
  }
}
  • jurisdictions: [codes] — an explicit list of neutral public codes to check live. One public county code may fan out to more than one internal system, and each reports its own row in sourceStatus[].
  • scope: "matched" — re-check every jurisdiction that produced a cached-mode hit for this query. The set is derived from the sources[].code of the cached records.
  • websites: […] — roster/records URLs; each is resolved to a public code and fed into the live path exactly as if you had listed the code. An entry that maps to no covered jurisdiction is reported as its own sourceStatus[] row — it does not fail the search. See Resolve a website.

A live-verified record carries liveChecked: true and a fresh lastCheckedAt; the merge lets a live result supersede the cached copy of the same person (matched on the source’s own stable externalId), and the whole set is re-ranked. A person only the live pull found is added; a person only the cache held stays — except a cached record whose source, asked live, holds a different date of birth from the one you sent: that record leaves the answer.

An empty live result is not, on its own, evidence of absence. A live source is bounded to stay fast, so it can be a lower bound even when it answered. Before treating an empty records array as “not found”, check counts.sourcesIncomplete == 0 first — > 0 means at least one source could not be searched to the end, so the result is a lower bound, not a confirmed absence. Record not determined and retry. Full discipline in Result completeness.

The LiveRequest object — the live block

The live block. Its presence turns on live verification: the named jurisdictions are re-checked at the source during the request and the fresh results merge with the cached answer through the same matcher. Up to 2 sources that can answer quickly run synchronously (200); more, or any source that cannot, run as an async job (202).

Returned or accepted by POST /v1/criminal/search, POST /v1/criminal/report.

FieldTypeDescription
jurisdictions
optional
array of string or SearchGeographyPublic jurisdiction codes to check (TX-BEXAR, TX-DOC). A code can cover more than one system; each is checked and reports its own sourceStatus[] row. A code that resolves to nothing still runs and is reported ok: false with incompleteReason: "not_searched", and is not billed. An entry may also be a [SearchGeography](#object-searchgeography) object, such as {"zip": "43215", "radiusMiles": 25}: it is resolved to the county, city and regional sources in that area that can be checked live, filtered by the request's recordKinds and coverage.yearsBack. Statewide and federal sources are checked live only when named by code (OH-DOC, US-DOC); every live source is billed.
Example ["TX-BEXAR","TX-DOC"]
scope
optional
string
one of "matched"
"matched" re-checks every jurisdiction that produced a cached hit for this query.
websites
optional
array of stringRoster or records websites to check, resolved to codes and merged with jurisdictions. An unsupported site is reported as its own sourceStatus[] row with code: null and incompleteReason: "unsupported_site"; the rest of the search runs. When nothing resolves at all, the request is refused with 422 no_live_sources, unless every entry was an unsupported website, which returns 200 with status: "partial".
Example ["https://sheriff.examplecounty.gov/inmates"]

Sync vs async — a latency rule, not a product difference

A live check of ≤2 sync-eligible sources runs synchronously — one 200, results inline. More than two sources, or any source that cannot answer in-request, runs asynchronously: a 202 with a searchId and a poll URL. Both paths run the same live checks and return the same envelope — the only difference is whether you hold the connection open or collect the result later. Cached searches and synchronous live searches need no polling — their 200 is the answer.

You asked forAll sync-eligible?Runs
1–2 sourcesyessync (200)
1–2 sourcesno (one cannot answer in-request)async (202)
3+ sources(irrelevant)async (202)

A source is sync-eligible only when it reliably answers within the request. A source that is not is never run synchronously, no matter how few you asked for — so a single source can go async. Most jurisdictions are not sync-eligible, so most live searches return 202: build your client for it. One public code can also cover several systems; liveSourcesRequested in the 202 body tells you the true count.

202 Accepted
{
  "searchId": "crs_9a3b71c0e28d4f6a5b12",
  "status": "pending",
  "mode": "async",
  "liveSourcesRequested": 4,
  "poll": "/v1/criminal/searches/crs_9a3b71c0e28d4f6a5b12",
  "reason": "4 live sources (> 2 or not sync-eligible) — running asynchronously"
}

reason is free text for humans — do not branch on it. Poll the poll URL until it returns 200.

GET /v1/criminal/searches/{searchId}

Polling is the delivery model. The API has no webhook or callback for a criminal search — you collect an async result by polling this endpoint with your X-API-Key. A search is only visible to the account that created it; another account’s searchId returns 404. The poll returns the stored job record, and the shape depends on job state.

statusMeaningActionHTTP
pendingQueued / runningPoll again202
completeDoneRead result200

While the job is pending the wrapper carries result: null and the poll returns 202:

Pending (HTTP 202)
{
  "searchId": "crs_9a3b71c0e28d4f6a5b12",
  "accountId": "acct_…",
  "tier": "live",
  "status": "pending",
  "recordsCount": 0,
  "liveCompleted": 0,
  "createdAt": "2026-08-25T15:04:11+00:00",
  "updatedAt": "2026-08-25T15:04:11+00:00",
  "result": null
}

When it completes, the same wrapper returns 200 with result carrying the full response envelope — read result.counts.sourcesIncomplete and result.warnings exactly as you would for a synchronous live search:

Complete (HTTP 200)
{
  "searchId": "crs_9a3b71c0e28d4f6a5b12",
  "accountId": "acct_…",
  "tier": "live",
  "status": "complete",
  "recordsCount": 3,
  "liveCompleted": 4,
  "createdAt": "2026-08-25T15:04:11+00:00",
  "updatedAt": "2026-08-25T15:04:29+00:00",
  "result": {
    "status": "complete",
    "counts": { "records": 3, "recordsReturned": 3,
                "sourcesQueried": 4, "sourcesComplete": 4, "sourcesIncomplete": 0, "candidatesCapped": false },
    "warnings": [],
    "page": 1, "perPage": 50, "totalPages": 1,
    "sourceStatus": [ "… 4 rows, live: true …" ],
    "cappedOmittedSources": [],
    "omittedFields": ["sourceData"],
    "records": [ "… 3 records …" ],
    "proof": { "status": "none" },
    "usage": { "liveChecks": 4, "liveChargeUsd": 0.08, "capped": false,
               "display": "4 live checks · $0.08" },
    "searchId": "crs_9a3b71c0e28d4f6a5b12",
    "meterEvents": [
      { "kind": "criminal_call", "quantity": 1, "chargeCeilingUsd": null },
      { "kind": "criminal_live_source", "quantity": 4, "chargeCeilingUsd": 2.00 }
    ],
    "legal": { "notice": "Not a consumer report. …" }
  }
}

There is no separate error job state: a live source that fails is reported inside the completed result as an incomplete sourceStatus[] row with an incompleteReason, and the job still completes. See Result completeness.

submit + poll
# submit, then poll until 200
SID=$(curl -s -X POST https://api.offendersearch.app/v1/criminal/search \
  -H "X-API-Key: $OFFENDERSEARCH_KEY" -H "Content-Type: application/json" \
  -d '{"query":{"lastName":"Hamilton","state":"TX"},
       "live":{"jurisdictions":["TX-BEXAR","TX-LUBBOCK","TX-DOC"]}}' | jq -r '.searchId')

while :; do
  code=$(curl -s -o /tmp/job.json -w '%{http_code}' \
    "https://api.offendersearch.app/v1/criminal/searches/$SID" -H "X-API-Key: $OFFENDERSEARCH_KEY")
  [ "$code" = "200" ] && break   # 202 while pending, 200 when complete
  sleep 2
done
jq '.result.counts' /tmp/job.json

Async criminal search API: poll request and response fields

GET/v1/criminal/searches/{searchId}Auth: X-API-Key

Read an async live job. Returns 202 while it runs and 200 with the full envelope in result once every source has an outcome. Polling is free.

Request

Path parameters
FieldTypeDescription
searchId
required
stringThe searchId from the 202 (or from any search on your account).
Example "crs_7f2a1c9e0b4d6a8f1e23"

Response

200 · application/json

The job is complete; result carries the search envelope.

The body is the JobRecord object. An async live job as GET /v1/criminal/searches/{searchId} returns it: pending with result: null until every source has an outcome, then complete with the full search envelope in result.

202 · application/json

The job is still running; status is pending and result is null. Poll again.

The body is the JobRecord object. An async live job as GET /v1/criminal/searches/{searchId} returns it: pending with result: null until every source has an outcome, then complete with the full search envelope in result.

Errors
StatusCodeWhen
401—Missing or invalid X-API-Key. Body: GatewayError.
402—Free trial used up, or no active subscription. Body: GatewayError.
422query_too_broadThe job ran and was refused: the stored query was too broad when it rendered. Body: searchId plus the criminal error object; nothing was billed.
404not_foundNo search with this id on your account.
503unavailableCriminal Search could not be reached. Retry with backoff.
504upstream_timeoutCriminal Search took longer than 65 seconds to answer. Retry, or narrow the query.

The JobRecord object — an async live job

An async live job as GET /v1/criminal/searches/{searchId} returns it: pending with result: null until every source has an outcome, then complete with the full search envelope in result.

Returned or accepted by GET /v1/criminal/searches/{searchId}.

FieldTypeDescription
searchId
stringThe job's id.
Example "crs_7f2a1c9e0b4d6a8f1e23"
accountId
stringYour account id.
Example "acct_1a2b3c"
tier
string
one of "core", "live"
live for a live job; core for a cached search.
status
string
one of "pending", "complete"
pending on a 202 poll, complete on a 200 poll. A job whose stored query was refused when it ran is not a JobRecord: the poll answers 422 with a criminal error object (query_too_broad) and the history lists it as refused.
recordsCount
integerRecords the search matched. 0 while pending.
liveCompleted
integerLive sources that completed. 0 while pending.
createdAt
string (date-time)When the search was accepted.
updatedAt
string (date-time)When the job last changed.
result
SearchResponse or nullThe full search envelope once status is complete; null while pending.

What a live check costs

  • +$0.02 per live source that completes.
  • The live charge for one search never exceeds $2.00. This is a price ceiling, not a source limit — you may request live checks across more sources than the ceiling covers (a statewide-everything live check) and every one is attempted; a source the job could not reach in time is reported incomplete and not billed. The ceiling binds at 100 completed checks (100 × $0.02 = $2.00); past that, the marginal live check is free.
  • A live check that fails is reported as failed and is NOT billed. Only sources that complete are metered (criminal_live_source, quantity = sources that finished OK). A failed source appears with ok: false, incomplete: true, an incompleteReason, records: 0 — and is excluded from the billed count.
  • The usage block always reports the true count, even when the charge is capped — the denominator is never rounded away.
usage — capped, true count preserved
"usage": { "liveChecks": 247, "liveChargeUsd": 2.00, "capped": true,
           "display": "247 live checks · capped at $2.00" }
Live verification is available on every account. It spends real per-source money, so you are billed per live source that completes — but there is no entitlement to enable. Batch is cached-only — live verification is not offered in a batch.

The criminal Usage object — the live-check charge

The live-check count and charge, present only on a live search. The count is the true number of completed checks even when the charge is capped.

Returned or accepted by POST /v1/criminal/search, GET /v1/criminal/searches/{searchId}.

FieldTypeDescription
liveChecks
integerLive sources that completed. Failed checks are not counted and not billed.
Example 120
liveChargeUsd
numberThe live charge for this search: $0.02 per completed source, never more than $2.00.
Example 2
capped
booleantrue when the $2.00 ceiling set the charge.
Example true
display
stringThe usage line as shown on your usage page, with the completed count visible even when capped.
Example "120 live checks · capped at $2.00"

The criminal MeterEvent object — billing events on a response

One billable unit this request emitted.

Returned or accepted by POST /v1/criminal/search, GET /v1/criminal/searches/{searchId}, POST /v1/criminal/batch.

FieldTypeDescription
kind
string
one of "criminal_call", "criminal_live_source"
criminal_call: one per search and one per batch row. criminal_live_source: one per live search, carrying the completed count.
quantity
integerThe billable quantity: 1 for a call, the completed source count for live checks.
Example 1
chargeCeilingUsd
number or null2.0 on criminal_live_source (the per-search ceiling); null on criminal_call.
Example null

Product overview