Result completeness & source status
On a live search, an incomplete answer is labelled - counts, sourceStatus and incompleteReason.
Livehttps://api.offendersearch.appSandboxhttps://sandbox.offendersearch.appThe incompleteness signal is a property of live verification
A cached search always returns a whole answer from the corpus in one query, so sourceStatus[] is [], status is "complete", and an empty records genuinely means “nobody in the corpus matched”. The “is it whole?” question only arises for live sources, where we reach out in real time.
sourceStatus[] — the live-verification audit trail
On a cached search this is []. On a live search, one entry per live source.
incomplete says whether the search finished. A source that did not finish is ok: false, incomplete: true, with an incompleteReason — read incomplete to decide whether a 0 is no match or unknown. A failed live check is reported, not hidden, and not billed.{ "code": "TX-LUBBOCK", "source": "TX-LUBBOCK", "ok": false, "incomplete": true,
"incompleteReason": "timeout", "records": 0,
"lastCheckedAt": "2026-08-25T15:04:12+00:00", "live": true }The criminal SourceStatus object — one live source
One live source's outcome within a search. Present only on a live search; a cached search returns sourceStatus: [].
Returned or accepted by POST /v1/criminal/search, GET /v1/criminal/searches/{searchId}, POST /v1/criminal/batch.
| Field | Type | Description |
|---|---|---|
| code | string or null | Public jurisdiction code checked. null on an unsupported_site row (a website that resolved to no covered jurisdiction). |
| source | string or null | The same value as code, for parity with the Sex Offender API's sourceStatus[].source. |
| ok | boolean | true when the source was reached and read. |
| incomplete | boolean | true when this source could not be checked to the end. It then counts in counts.sourcesIncomplete, turns status to partial, and its records is a lower bound. |
| incompleteReason | string or null one of "captcha_unsolved", "proxy_required", "source_down", "rate_limited", "truncated_over_cap", "paid_gateway", "login_required", "timeout", "unsupported_site", "not_searched" | Why the source fell short, from a closed list. Non-null exactly when incomplete is true. A failed check is not billed. |
| records | integer | Records this source contributed to the merged answer. |
| lastCheckedAt | string (date-time) | When this source was checked, in this request. |
| live | boolean | true for a source checked live in this request; false on an on-file fallback row. |
| answeredFrom | string one of "on_file" | Present only on an on-file fallback row: the live check could not run, the source's stored records were in the query's scope, so the row was answered from file — ok: true, incomplete: false, live: false, not billed, and warnings[] gains a LIVE CHECK NOT AVAILABLE: sentence. |
| liveOutcome | string one of "captcha_unsolved", "proxy_required", "source_down", "rate_limited", "truncated_over_cap", "paid_gateway", "login_required", "timeout", "unsupported_site", "not_searched" | Present only with answeredFrom: why the live check did not run (an incompleteReason token; not_searched when the source has no live connector). |
| liveVia | string | Present only when this code has no live lookup of its own and was checked live at the original source its records are a copy of (a county court roster checked through the statewide court index, a duplicate jail listing through the jail's own roster): that source's public code. The live answer is that source's answer; its records carry that source's code. |
| feed | string one of "leie", "sam" | Present only on a row of a code made of several lists (US-EXCLUSION): which list the row speaks for — leie (HHS-OIG, looked up live) or sam (SAM.gov, answered from file). |
incompleteReason — the closed vocabulary
incompleteReason is non-null only when incomplete is true. The transport reasons are the retryable ones; truncated_over_cap is stable (narrow instead); the rest are not retryable automatically. In every case, an incomplete source’s 0 means unknown, not no match. Today a live source reports timeout, source_down, truncated_over_cap or not_searched, and a website reports unsupported_site; the other values are reserved in the vocabulary, so handle every one.
| incompleteReason | What you should do |
|---|---|
timeout | Retry — a capacity event that clears. |
source_down | Retry, with backoff. |
rate_limited | Retry later. |
captcha_unsolved | Retry — transient; do not record absence. |
proxy_required | Retry. |
truncated_over_cap | Do not retry — narrow. Add a first name or a date of birth. |
paid_gateway | Not retryable automatically. Record not determined. |
login_required | Not retryable automatically. Record not determined. |
unsupported_site | A live.websites entry mapping to no covered jurisdiction. Resolve it or drop it. |
not_searched | The source was not searched live for this request: the code has no live check, or the job ended before reaching it. Confirm the code against the catalog. |
const RETRYABLE = new Set(["timeout", "source_down", "rate_limited",
"captcha_unsolved", "proxy_required"]);
const shortAndRetryable = res.sourceStatus.filter(
s => s.incomplete && RETRYABLE.has(s.incompleteReason)
);
if (shortAndRetryable.length) {
// Hold. Do NOT record "not found" — re-run the live check.
}Reading an empty live result
Two very different events produce the same empty list on a live search, and the response tells you which one you are holding.
| What happened | What the response says |
|---|---|
| Every source completed and nobody matched. This is an answer. | status: "complete", counts.sourcesIncomplete: 0 |
| One or more sources could not be checked to the end. This is a lower bound. | status: "partial", counts.sourcesIncomplete > 0, and a warnings[] sentence naming the sources |
Never infer absence from an empty live result without checking counts.sourcesIncomplete == 0 first.
if (res.counts.sourcesIncomplete > 0) {
// Record "not determined", not "not found". Re-run the live check.
}A worked mixed live response
The result of a live search across two sources where one completed and one did not finish in time. Read it in order: status is "partial"; counts.sourcesIncomplete is 1 (TX-LUBBOCK did not finish, so its 0 means unknown); warnings[0] names it and its reason, timeout, is retryable. The unfinished source is not billed.
{
"status": "partial",
"counts": { "records": 3, "recordsReturned": 3,
"sourcesQueried": 2, "sourcesComplete": 1, "sourcesIncomplete": 1, "candidatesCapped": false },
"warnings": [
"INCOMPLETE SEARCH: 1 of 2 sources could not be searched to completion (TX-LUBBOCK). The records below are a LOWER BOUND: an absent person may simply not have been reached. This is NOT evidence that someone is absent — retry, or narrow the query."
],
"sourceStatus": [
{ "code": "TX-BEXAR", "source": "TX-BEXAR", "ok": true, "incomplete": false,
"incompleteReason": null, "records": 3, "live": true },
{ "code": "TX-LUBBOCK", "source": "TX-LUBBOCK", "ok": false, "incomplete": true,
"incompleteReason": "timeout", "records": 0, "live": true }
],
"records": [ "… 3 records, a mixture of matchStates …" ],
"usage": { "liveChecks": 1, "liveChargeUsd": 0.02, "capped": false,
"display": "1 live checks · $0.02" },
"searchId": "crs_9a3b71c0e28d4f6a5b12",
"legal": { "notice": "Not a consumer report. …" }
}counts
Every search carries a counts block. The three live counts (sourcesQueried, sourcesComplete, sourcesIncomplete) are 0 on a cached search; sourcesIncomplete > 0 is the one count that means something may be missing. sourcesOnFile and sourcesPending describe the sources behind the answer on every search. candidatesCapped is always false: every matching stored record is read, and a search too broad to read in full is refused with a 422 (query_too_broad) rather than answered partially. Every field is defined in the criminal Counts object.
coverage
Every search response carries a coverage block (absent only when the source catalog cannot be read): which sources stand behind the answer for the state and county you searched, and whether any source for that scope is not available yet.
The block names the scope searched, the sourcesOnFile and sourcesPending counts, the pending sources by name when the search names a state, and, with include: ["coverage"], every source in scope with its status. Every field is defined in the SearchCoverage object.
coverage does not change status. It tells you how much weight an empty result can bear: a zero with sourcesPending: 0 for the county you asked about is a stronger zero than one with a pending source named beside it.
sourcesQueried: 0 next to sourcesIncomplete: 0 on a cached search means “complete”, not “nothing was searched”; sourcesOnFile is the number of sources that stood behind the answer. See Pagination for how counts.records drives the pager.
The criminal Counts object — counts on every search
Totals on every criminal search. The three live counts are 0 on a cached search; sourcesOnFile and sourcesPending describe the sources behind the answer on every search.
Returned or accepted by POST /v1/criminal/search, GET /v1/criminal/searches/{searchId}, POST /v1/criminal/batch.
| Field | Type | Description |
|---|---|---|
| records | integer | Total records matched, before the page slice. Use it, not records.length, for the total. |
| recordsReturned | integer | Records on this page. |
| sourcesQueried | integer | Live sources checked in this request. 0 on a cached search. |
| sourcesComplete | integer | Of sourcesQueried, the sources searched to the end. status is complete exactly when this equals sourcesQueried. |
| sourcesIncomplete | integer | Live sources that could not be searched to the end. Above 0, records is a lower bound and an empty result is not evidence that a person is absent. |
| candidatesCapped | boolean | Always false; kept for compatibility. Every stored record that matches the name and filters is read and scored. A search whose matches cannot all be read within the time budget is refused with 422 (error.code: query_too_broad) rather than answered partially. Narrow it with firstName or state (a county, city or zipCode alone does not narrow it). |
| exclusionsIncluded | boolean | true when the request carried include: ["exclusions"], so exclusion-list records whose basis is not a criminal conviction were eligible to be returned. false on every other search: conviction-based exclusions are still returned like any other record, and the administrative tier (license actions, administrative debarments, loan defaults) was left out. See exclusion-list records. |
| sourcesOnFile | integer | Sources available for the state or county searched: that county's own, the state's statewide ones and the federal ones. Equals coverage.sourcesOnFile. Present whenever coverage is. |
| sourcesPending | integer | Sources for that scope that are not available yet. Equals coverage.sourcesPending. Above 0, read coverage.pendingSources before treating an empty result as a clear. |
| clearedSuppressed | integer | Records a not_this_person clearance removed from records[]. Present only when the request carried subjectId; 0 in annotate and ignore modes. records already excludes them, so records + clearedSuppressed is the count before clearances. Each one is listed in cleared[]. |
| filteredOut | object | Present when the request sent filters, locations, a sort other than relevance, or include: ["facets"]. Records the filters removed, keyed by the filter that removed each one; every removed record is counted once. Keys: locations, noResidence (matched no location, and a residence test found no published address), sources, recordCategory, custodyStatus, hasPhoto, excludeVacatedOrSealed, severity, outcome, convictedOnly, chargeCategories, offenseDate, filedDate, dispositionDate, lookbackYears, statute, chargeText, chargeMatch. A record that fails the per-charge test is counted under the first charge filter that, on its own, no charge of the record meets, or under chargeMatch when each filter is met by some charge but no single charge meets them all. {} when nothing was removed. For a name too common to search unfiltered, the index applies your filters together before matching; those records are counted once under filters.Example {"severity":3,"outcome":6,"noResidence":2} |
| unknownKept | object | Present when the request sent filters, locations, a sort other than relevance, or include: ["facets"]. Returned records that passed a filter only because their value is unknown (unknown: "keep", the default), by filter: severity, outcome, custodyStatus, offenseDate, filedDate, dispositionDate. {} with unknown: "exclude".Example {"severity":4} |
| quarantined | integer | Present when the request sent filters, locations, a sort other than relevance, or include: ["facets"]. Candidate records whose normalized values are withheld (normalized.quality: "quarantined"); their own fields are returned as usual. 0 on a synchronous live search.Example 0 |
The SearchCoverage object — coverage on every search
Which sources stand behind a search for the state or county searched, and which sources for that scope are not available yet. Codes are the public codes GET /v1/criminal/sources lists. It does not change status.
Returned or accepted by POST /v1/criminal/search, GET /v1/criminal/searches/{searchId}, POST /v1/criminal/batch.
| Field | Type | Description |
|---|---|---|
| scope | object | The scope the counts describe. |
| scope.state | string or null | The two-letter state searched, or null when the query named none. |
| scope.county | string or null | The county searched, or null. |
| scope.countyRecognized | boolean | Present when a county was searched: true when the catalog lists sources of that county's own, false when it lists none. |
| sourcesOnFile | integer | Sources available for the scope. |
| sourcesPending | integer | Sources for the scope that are not available yet. |
| pendingSources | array of SearchCoverageSource | The pending sources, named. Present when the query names a state. |
| sources | array of SearchCoverageSource | Every source in scope with its status. Present when the request sends include: ["coverage"] and the query names a state. |
| geography | GeographyCoverage | Present when the request sends geography, recordKinds or coverage: the jurisdictions searched, by name, and the asked counties with no source of their own. |
The SearchCoverageSource object — the sources behind a search
One source in a search's coverage block.
Returned or accepted by POST /v1/criminal/search, GET /v1/criminal/searches/{searchId}, POST /v1/criminal/batch.
| Field | Type | Description |
|---|---|---|
| code | string | Public jurisdiction code, the same code as on sources[].code and in live.jurisdictions. |
| name | string | Jurisdiction label: county or state plus the kind of record. |
| recordType | string | The kind of record, in words ("County jail roster", "Court records", "Prison system"). |
| scope | string one of "county", "state", "federal" | county, state or federal. |
| status | string one of "live", "pending" | live (available) or pending (not available yet). Present on sources[] entries; every pendingSources[] entry is pending. |