Search - POST /v1/criminal/search
The primary endpoint. Cached by default, live verification on request, and every parameter.
Livehttps://api.offendersearch.appSandboxhttps://sandbox.offendersearch.appPOST /v1/combined-search: send this request as criminal and a sex offender search as sexOffender, and get both answers back in one response, billed as two searches. How combined search works.The surname is the anchor; everything else narrows within it
A criminal search is a surname query, refined. lastName is the one predicate every search must carry — a first name, a date of birth, an age, or a location alone is refused with 422 guard_unbounded_query, because an unbounded query returns a lottery, not an answer. Every other field you send narrows that surname query. A dob, birthYear or age drops only a record whose birth evidence conflicts, and keeps a record with nothing to compare, flagged. A firstName on a cached search and the location fields keep only records that carry a matching value — except that a residence sent with a full dob ranks records instead of filtering them. This page is the complete list of the ways to narrow.
dob, birthYear or age drops a record only when it has a birth date, year or age and that evidence conflicts. A record with none is kept and flagged (no_dob_age_year), because we cannot disprove your query. The surname, a cached search's firstName and the location fields are filters. Read matchTier, matchState, matchConfidence and matchBasis per record and set your own threshold, or ask for only the strongest records with matchStates — see Matching & confidence.Two modes, decided by the request body
There is one search endpoint. Omit live for the cached answer — one indexed query across the continuously updated corpus, sub-second, no live source consulted. Send a live block for live verification — a real-time, moment-of-decision compliance check that re-verifies the actual jurisdiction(s) in-request and merges them with the cached answer through the same matcher, so a live record and a cached record agree about identity and rank together.
| Mode | How you ask | What it does · billing |
|---|---|---|
| Cached (default) | omit live | One indexed query across the whole corpus. No live source is ever consulted. One criminal_call. |
| Live verification | send a live block | Re-checks the actual jurisdiction(s) in-request. criminal_call plus criminal_live_source per completed source, to a $2.00 ceiling. |
POST /v1/criminal/search
The primary endpoint. X-API-Key is required; Criminal Search and live verification are on every account, with nothing to enable. Every body field is in the request and response tables below, and every search filter in the criminal Query object.
Location filters are state and county (jurisdiction), plus city, zipcode and address on the person's residence where a source publishes one; to search around a place, use search by place. Without a full dob these are filters: a record must carry a matching value, so a record with no residence address is not returned when city, zipcode or address is set. With a full dob the residence ranks records instead (residenceMode: "prefer") — see Narrow by place.
curl -X POST https://api.offendersearch.app/v1/criminal/search \
-H "X-API-Key: $OFFENDERSEARCH_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": { "lastName": "Hamilton", "firstName": "Alex", "state": "TX" },
"perPage": 50
}'Narrow by name
The surname is compared case-insensitively and is a hard filter: a record whose surname neither equals nor starts with your lastName is dropped, and a record with no surname cannot satisfy a surname-mandatory query, so it is dropped too. On a cached search a firstName narrows the same way: the record's first name must start with the value you send.
| Control | What it does |
|---|---|
nameStrategy: "prefix" (default) | The surname equals your value or starts with it. A superset of exact — turning it on never loses a record exact matching would have returned. The default without a full dob. |
nameStrategy: "exact" | The surname must equal your value. No prefix widening. The default when you send a full dob: a known birth date identifies one person, so Lee does not also read LEEDS. An explicit nameStrategy or prefixMatch wins. |
middleName | Ranks, never filters. A middle name or initial that agrees adds a little confidence (middleName:match / middleName:initial); one that conflicts lowers it (middleName:mismatch) and keeps the record out of the same-state tier. A record that publishes no middle name is unaffected. |
firstName | On a cached search, the record's first name must start with your value, case-insensitively; it then scores firstName:exact (equal after nickname folding) or firstName:prefix (Alex → Alexander). On a live check the source's candidates are scored instead, and there a record with no first name is kept as firstName:absent (small penalty) and a different first name is kept as firstName:mismatch (larger penalty). |
| Nickname folding | Both sides are folded through a small nickname table before comparison, symmetrically: Bob ↔ Robert, Bill ↔ William, Jim ↔ James. A nickname hit reads firstName:exact — the folding happens before the equality test. On a cached search the record's first name must still start with your value, so Rob reaches ROBERT but Bob does not. |
There is no fuzzy (typo) surname matching — Smyth never matches Smith. In this domain a false positive is the expensive error, so the matcher never introduces a surname it was not given. The full weighting is in Matching & confidence.
curl -X POST https://api.offendersearch.app/v1/criminal/search \
-H "X-API-Key: $OFFENDERSEARCH_KEY" -H "Content-Type: application/json" \
-d '{ "query": { "lastName": "Hamilton", "firstName": "Rob" } }'
# matches ROBERT HAMILTON with matchBasis "firstName:exact" — Rob and Robert
# fold to the same name in the nickname table before they are compared.The 3-character prefix floor
Prefix matching has a floor, and it fires only on a prefix you explicitly asked for. The rule decides 422-versus-fallback:
| You sent | 2-character surname behaviour |
|---|---|
nothing (default prefix) | Falls back to exact — no error. A legitimate 2-character exact surname (Li, Ng, Ho, Vo) works. |
nameStrategy: "prefix" | 422 prefix_too_short — you asked for prefix. |
prefixMatch: "lastName" (or a synonym) | 422 prefix_too_short — you asked for prefix. |
nameStrategy: "exact" | Exact — no error, no floor (exact has no prefix). |
prefixMatch marks a prefix on a named field as deliberate ("firstName", "lastName", "both", a list, or a delimited string; synonyms like "surname" / "given" are accepted). That is what applies the 3-character floor; it does not change how a name is compared — the surname follows nameStrategy. An unrecognised selector is ignored, not rejected — an unknown token must never widen a criminal search. The same 3-character floor applies to an explicit first-name prefix.
curl -X POST https://api.offendersearch.app/v1/criminal/search \
-H "X-API-Key: $OFFENDERSEARCH_KEY" -H "Content-Type: application/json" \
-d '{ "query": { "lastName": "Hamil", "firstName": "Al",
"prefixMatch": "lastName" } }'
# surname prefix-matches HAMIL* (HAMILTON, HAMILL, …); on a cached search the
# first name must start with "Al" (ALEX, ALAN, …) and scores firstName:prefix.// { "query": { "lastName": "ha", "prefixMatch": "lastName" } } → HTTP 422
{ "error": { "code": "prefix_too_short",
"message": "prefixMatch prefix matching on lastName requires at least 3 characters (got 'ha'). Send a longer prefix, or drop it for an exact match." } }Narrow by date of birth or age
A date of birth is the strongest identity verifier available, and the one to send for anything consequential. Four fields carry birth evidence — but you rarely need more than one:
| Field | Type | What it checks |
|---|---|---|
dob | YYYY-MM-DD | A full date. Year and month are derived from it automatically — you do not also send birthYear/birthMonth. |
birthYear | integer | A year on its own, when that is all you know. A record whose year (or full date) conflicts is dropped; a record that publishes only an age, or no birth evidence, is kept and labelled no_dob_age_year. |
birthMonth | 1–12 | Refines a year match to month+year when both sides publish a month. Ignored without a year. |
age | integer | Checked against a record's full date or published age within ±1 year, or its birth year within ±2. When you also send dob, the dob decides. |
dob reaches every kind of birth evidence. Jurisdictions do not all publish a date of birth — some publish only a year, many custody records publish only an age, a few publish neither. You do not compensate for that, and you must not: a dob you send is matched against a full date, else a year, else an age, so one query reaches all of them. Widening happens when we match; it never happens in what we store or send. See Searching by date of birth.curl -X POST https://api.offendersearch.app/v1/criminal/search \
-H "X-API-Key: $OFFENDERSEARCH_KEY" -H "Content-Type: application/json" \
-d '{ "query": { "lastName": "Chen", "dob": "1979-11-03" } }'That single query returns full-date records at dob_match, year-only records at year_match, age-only records at age_match, and records with no comparable birth evidence at no_dob_age_year — the last kept and flagged (unverified: true), present only because the surname matched. A response is therefore a mixture; branch on matchState for the full picture or unverified for the coarse one:
// ONE dob query, records honestly labelled by what each source published
[
{ "matchState": "dob_match", "unverified": false,
"dob": { "date": "1979-11-03", "birthYear": 1979, "dobPrecision": "full" } },
{ "matchState": "year_match", "unverified": false,
"dob": { "date": null, "birthYear": 1979, "dobPrecision": "year" } },
{ "matchState": "age_match", "unverified": false,
"dob": { "date": null, "birthYear": null, "age": 46, "dobPrecision": "age" } },
{ "matchState": "no_dob_age_year", "unverified": true,
"dob": { "date": null, "birthYear": null, "dobPrecision": "none" } }
]Only a genuine conflict (dob_mismatch) is excluded from records[]. A no_dob_age_year is an absence of comparable evidence, not a mismatch. Records come back best matchTier first.
| To keep fewer records | Send |
|---|---|
| Only full-date matches | "matchStates": ["dob_match"] — any non-empty list of dob_match, year_match, age_match, no_dob_age_year. |
| No name-only records | "dobPolicy": "require" — drops every matchTier: "name_only" record (no birth evidence to compare, or only an uncorroborated year or age in another state), counted in matchSummary.dobPolicyDropped; needs a dob, birthYear or age in the query (422 invalid_dob_policy otherwise). |
Narrow by place
Location filters keep records by where they are, not which corpus is searched. Two axes are the jurisdiction (state / county) the record lives in; three more — city, zipcode, address — filter on the person's residential address where the source publishes one. These mirror the sex-offender product's location fields. To search around a ZIP code or a city by radius, use search by place, or a locations entry with a radius (see Filtering).
dob, a residence ranks — it does not filter. When the query carries a full dob and any of city, zipcode or address, those fields and the state sent with them are a residence hint (residenceMode: "prefer"): records where the person lives sort first and say so in residenceMatch, and records in other states, or with no published address, still come back. Send residenceMode: "filter" to keep only records that match the residence. Without a full dob the fields below are filters.| Field | What it does |
|---|---|
state | USPS code. Keeps records whose jurisdiction is that state. A location filter, not a corpus selector. |
county | County name, case-insensitive. Also accepted as jurisdiction. Combine with state to scope to one county. |
city | Residence city, case-insensitive exact match on the record's promoted address.city. Matches only records that carry a residential address. |
zipcode | Residence ZIP (also accepted as zip). Exact, or a ZIP prefix (e.g. "750" matches all of 750xx). |
address | Fuzzy street match (also accepted as streetAddress) — a substring of the record's address.line1. |
website | A roster/records URL you already know. It is resolved to a neutral jurisdiction code and that jurisdiction becomes the scope. An explicit state/county wins over it. |
A jurisdiction is always a neutral code — <ST>-<COUNTY> (a county, e.g. TX-DALLAS) or <ST>-<RECORD-KIND> (a statewide or federal system, e.g. TX-DOC, OK-COURT) — carrying a state and a place and nothing else. Enumerate the live values from Jurisdictions & codes rather than hard-coding them.
Driving a search from a website you already know
If you know the county roster or court portal for a place but not our code for it, hand us the URL and we resolve it. In a cached search, query.website scopes the answer to the resolved jurisdiction; the mapping comes back in a top-level resolution[] block so you can see which code it mapped to:
curl -X POST https://api.offendersearch.app/v1/criminal/search \
-H "X-API-Key: $OFFENDERSEARCH_KEY" -H "Content-Type: application/json" \
-d '{ "query": { "lastName": "Hamilton",
"website": "https://sheriff.examplecounty.gov/inmates" } }'"resolution": [
{ "input": "https://sheriff.examplecounty.gov/inmates",
"supported": true, "code": "TX-BEXAR",
"note": "equivalent data available for this jurisdiction" }
]In a live search, live.websites verifies the resolved jurisdictions exactly as if you had listed their codes in live.jurisdictions (the two are merged). An unsupported site does not fail the search — it is reported as its own sourceStatus[] row with incompleteReason: "unsupported_site". You can also resolve a URL up front, without searching, at Resolve a website → code.
curl -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": { "websites": ["https://sheriff.examplecounty.gov/inmates"] } }'Scoping a live check — the live block
Live verification is a real-time compliance re-check of a specific person at the actual jurisdiction(s). The live block is how you say where to re-check, in three combinable forms:
| Form | Re-verifies at… |
|---|---|
live.jurisdictions: [codes] | An explicit list of neutral jurisdiction codes. One public county code may expand to more than one internal system we cover for it — each reports its own sourceStatus[] row, and a single code can therefore run async. |
live.scope: "matched" | Every jurisdiction that produced a cached-mode hit for this query. The set is derived from the cached records' own sources. |
live.websites: [urls] | A list of roster/records URLs, each resolved to a code and fed into the live path. Merged with any live.jurisdictions you also sent. |
If the block names nothing to check — an empty list, or no cached matches under scope: "matched" — the request is refused with 422 no_live_sources. A code we do not recognise is not refused: it runs, and comes back as its own sourceStatus[] row with ok: false and incompleteReason: "not_searched", unbilled. A live.websites list that was entirely unsupported is a resolution outcome too, so you get the cached answer back with status: "partial" and the sites reported, not a 422.
Live verification: sync vs async
A live check of ≤2 sync-eligible sources runs synchronously (200, inline). More sources, or any source that cannot answer in-request, fans out to an asynchronous job (202 + poll). 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, and liveSourcesRequested in the 202 body reports the true count.
curl -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": "WA", "dob": "1989-04-23" },
"live": { "jurisdictions": ["WA-KING"] }
}'counts.sourcesIncomplete first: when it is > 0, an empty result is a lower bound, not a confirmed absence, and warnings[] names the sources that fell short. See Result completeness and Async live jobs.Records the live check did not return — liveResult
A live search still returns every matching record we hold. Each record of a live search carries liveResult, so you can tell which of them the source confirmed in this request:
confirmed_live— the live answer included this record (liveChecked: true).not_found_live— the record's source was checked live in this search and the check completed, but its answer did not include this record. It is returned from our records (liveChecked: false). It may have been sealed or expunged, or it may fall outside what the source's live search returns.not_checked— the record's source was not checked live in this search, its check could not complete, or the source was answered from file.
Each sourceStatus row whose live check completed carries notFoundLive, the number of that source's records the live answer did not include, and when it is above zero warnings[] carries one sentence beginning NOT FOUND IN LIVE CHECK: that names the sources and the date of our records. It does not change status. A cached search (no live block) has no liveResult and no notFoundLive.
Live-only criminal search — live.liveOnly
Add "liveOnly": true inside live and the answer carries only the records the live checks of this request returned. Stored records are not merged in, sourceStatus[] lists the sources checked live, counts describe that answer, and the body carries liveOnly: true. Off by default: omit it, or send false, and the live search is exactly the one above.
curl -X POST https://api.offendersearch.app/v1/criminal/search \
-H "X-API-Key: $OFFENDERSEARCH_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": { "lastName": "Hamilton", "firstName": "Alex", "dob": "1989-04-23" },
"live": { "jurisdictions": ["WA-KING"], "liveOnly": true }
}'- A source whose live check did not finish stays
incomplete— it is never answered from stored records — sostatusispartialand an emptyrecordsis not a clear result. Readcounts.sourcesIncompletefirst. - With
scope: "matched"the cached search runs only to choose the sources; none of its records is returned. - Billing, sync vs async and the
202+ poll flow are those of the same live search without the flag; the async job carries the flag, so its pollresulthonours it. 422 invalid_livewhenliveOnlyis not a JSON boolean or is sent outsidelive;422 no_live_sourceswhen nothing resolves to a live source, including when every website was unsupported.
A walkthrough for screening teams: Live-only searches.
Exclusion lists — include: ["exclusions"]
The HHS-OIG, SAM.gov and state Medicaid exclusion lists are searched in the same call as every other record kind, as exclusion-list records (recordType: "healthcare_exclusion"). Two tiers exist, told apart by exclusion.convictionBased:
- Conviction-based exclusions are returned on every search. An exclusion whose authority is a criminal conviction (HHS-OIG 1128(a)(1)–(4), (c)(3)(G) and (b)(1)–(3), or a SAM or state entry whose stated reason names a conviction) ranks and matches like any other record. Nothing to send.
- Administrative exclusions are returned on request. Add
"exclusions"to the top-levelincludearray to also receive exclusions whose basis is a license action, an administrative debarment or a loan default. Without it that tier is omitted, andcounts.exclusionsIncludedisfalse.
curl -X POST https://api.offendersearch.app/v1/criminal/search \
-H "X-API-Key: $OFFENDERSEARCH_KEY" -H "Content-Type: application/json" \
-d '{ "query": { "lastName": "Hamilton", "firstName": "Alex", "dob": "1989-04-23" },
"include": ["exclusions"] }'{
"status": "complete",
"counts": { "records": 2, "recordsReturned": 2, "sourcesQueried": 0, "sourcesComplete": 0,
"sourcesIncomplete": 0, "candidatesCapped": false, "exclusionsIncluded": true },
"records": [
{ "recordType": "healthcare_exclusion", "externalId": "leie:c:3f8a9c1e7b2d4056",
"currentStatus": "excluded", "matchState": "dob_match",
"exclusion": { "program": "medicare_medicaid", "authority": "1128(a)(1)",
"authorityDescription": "Conviction of program-related crimes",
"convictionBased": true, "excludedOn": "2021-03-19", "reinstatedOn": null },
"sources": [ { "code": "US-EXCLUSION", "level": "federal" } ] },
{ "recordType": "healthcare_exclusion", "externalId": "ohmedicaid:a:9c41d2e7",
"currentStatus": "excluded", "matchState": "dob_match",
"exclusion": { "program": "state_medicaid", "authority": "Termination",
"authorityDescription": "License surrendered",
"convictionBased": false, "excludedOn": "2024-07-01", "reinstatedOn": null },
"sources": [ { "code": "OH-EXCLUSION", "level": "state" } ] }
],
"legal": { "notice": "Not a consumer report. …" }
}include is a top-level request field, as on page and perPage, and the same token works as a batch-wide default on POST /v1/criminal/batch. HHS-OIG entries mostly carry a full date of birth; SAM.gov entries and most state lists carry none, so those records come back unverified: true — see matching.
Paging a result set
page and perPage are top-level request fields, not inside query — a deliberate difference from the Sex Offender API. Sending them inside query silently gives you the defaults (page: 1, perPage: 50). One page carries at most 200 records, so send a perPage from 1 to 200, and counts.records is the total before the slice. Each page is its own search request, billed as one criminal_call. Full walk-through in Pagination.
The response envelope
The core top-level keys are always present — test the value, never for key existence. On a cached search you get every core key except usage and resolution (sourceStatus is [], and coverage is absent only when the source catalog cannot be read), plus matchSummary. facets and appliedFilters appear when you asked for facets or sent filters. On a live search you additionally get usage, a populated sourceStatus, and resolution if a website drove the request. A live-verified record carries liveChecked: true and a fresh lastCheckedAt.
{
"status": "complete",
"counts": { "records": 1, "recordsReturned": 1,
"sourcesQueried": 1, "sourcesComplete": 1, "sourcesIncomplete": 0, "candidatesCapped": false,
"duplicatesFolded": 0, "exclusionsIncluded": false,
"sourcesOnFile": 33, "sourcesPending": 15 },
"warnings": [],
"page": 1, "perPage": 50, "totalPages": 1,
"sourceStatus": [
{ "code": "WA-KING", "source": "WA-KING", "ok": true, "incomplete": false,
"incompleteReason": null, "records": 1,
"lastCheckedAt": "2026-08-25T15:04:11+00:00", "live": true, "notFoundLive": 0 }
],
"cappedOmittedSources": [],
"omittedFields": ["sourceData"],
"records": [
{ "externalId": "WA-KING:booking:889201",
"name": { "first": "ALEX", "middle": "Q", "last": "HAMILTON", "suffix": "" },
"matchConfidence": 0.95, "matchBasis": "lastName:exact firstName:notQueried dob:match",
"matchState": "dob_match", "matchTier": "dob_match", "unverified": false,
"liveChecked": true, "liveResult": "confirmed_live" }
],
"matchSummary": { "bestMatch": "dob_match", "…": "…" },
"proof": { "status": "none" },
"coverage": { "scope": { "state": "WA", "county": null },
"sourcesOnFile": 33, "sourcesPending": 15, "pendingSources": [ "…" ] },
"usage": { "liveChecks": 1, "liveChargeUsd": 0.02, "capped": false,
"display": "1 live checks · $0.02" },
"searchId": "crs_7f2a1c9e0b4d6a8f1e23",
"meterEvents": [
{ "kind": "criminal_call", "quantity": 1, "chargeCeilingUsd": null },
{ "kind": "criminal_live_source", "quantity": 1, "chargeCeilingUsd": 2.0 }
],
"legal": { "notice": "Not a consumer report. …" }
}The 202 async body
When a live search must run asynchronously, you get a 202 with a searchId and a relative poll URL. Poll it until it returns 200 — both paths run the same live checks and return the same envelope.
{
"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"
}The unbounded-query guard
A query with no surname is refused. A first name, a date of birth, and a state together are still refused — none of them is a surname, and the surname is the one predicate every search must carry:
// { "query": { "firstName": "Alex", "state": "TX", "dob": "1989-04-23" } } → 422
{ "error": { "code": "guard_unbounded_query",
"message": "a lastName predicate is required — an unbounded query returns a lottery, not an answer" } }Criminal search API request and response fields
Search criminal records for one person. Without a live block it returns the cached answer; with one it re-verifies the named jurisdictions at the source during the request. Bills one criminal_call, plus $0.02 per completed live source up to $2.00.
Request
| Field | Type | Description |
|---|---|---|
| query required | Query | The person to search for. lastName is required inside it. |
| live optional | LiveRequest | Send it to re-verify named jurisdictions at the source during this request. Omit it for the cached answer. |
| locations optional | array of Location | Up to 10 places; a record is kept when it matches any of them, and lists the ones it matched in matchedLocations. Send either locations or the flat state, county, jurisdiction, city, zipcode and address query keys, not both (422 ambiguous_location). See Locations. |
| geography optional | SearchGeography | Search a place in your own words: a county, a ZIP and a radius, a city, or whole states. The server picks the sources that cover those counties (their county, city and regional sources) plus each state's statewide sources and the federal ones, and keeps only records from them. coverage.geography names every jurisdiction searched and every asked county with no source of its own. See Search by place. |
| recordKinds optional | array of string one of "jail-roster", "court", "doc-inmate", "registry", "warrant", "exclusion" | Only sources holding these kinds of record: jail-roster (jail bookings), court, doc-inmate (prison), registry, warrant, exclusion. Works with or without geography. An unknown kind is 422 invalid_record_kinds.Example ["jail-roster","court"] |
| coverage optional | SearchCoverageRequest | How far back the sources must reach. A source whose stated window is shorter than yearsBack is not searched and is listed in coverage.geography.yearsBack.droppedShorterWindow; a source that states no window is searched and counted in unknownWindow. To keep only records dated inside a window, use filters.lookbackYears. |
| filters optional | SearchFilters | Narrow the matches by record category, severity, outcome, charge, custody status, date or source. Filters are ANDed; values inside one list are ORed. Every record a filter removes is counted in counts.filteredOut. See Filtering. |
| sort optional · default "relevance" | string one of "relevance", "offenseDate", "filedDate", "dispositionDate" | Result order when filters or locations are sent. A date sort puts the record's latest date of that kind first and records without one last. A search with neither, and a synchronous live search, keep their usual order. |
| include optional · default [] | array of string one of "sourceData", "coverage", "exclusions", "facets", "normalizedDetail", "duplicates" | Extra blocks to return. "coverage" adds coverage.sources[] (every source in scope with its status) when query.state is set. "sourceData" empties omittedFields; records carry the same fields either way. "exclusions" also returns exclusion-list records whose basis is not a criminal conviction (license actions, administrative debarments, loan defaults). Without it, conviction-based exclusions are returned like any other record and the administrative tier is omitted; counts.exclusionsIncluded says which. "facets" adds facets (counts over every matched record) to a search that sends filters or locations. "normalizedDetail" adds rule to every charge in normalized.cases[].charges[]. "duplicates" serves every stored copy of a booking; without it a second copy of a booking whose record from the jurisdiction itself is on the page is left out and counted in counts.duplicatesFolded. |
| page optional · default 1 | integer | 1-based page number, at the top level of the body (not inside query). Below 1 is refused with 422 invalid_page. |
| perPage optional · default 50 | integer | Records per page, at the top level. An integer from 1 to 200; anything else (0, 201, a non-integer) is refused with 422 invalid_page. A page never carries more than 200 records. |
| subjectId optional | string | Your id for the person being screened — the resident, visitor, applicant or employee id from your own system, 1–128 characters. Sending it turns clearances on for this search: a person a reviewer marked not_this_person for this subject leaves records[] (or is annotated — see clearanceMode), the response carries cleared[] and counts.clearedSuppressed, and a kept record a clearance names carries a clearance object. A criminal personRef is scoped to one source, so a clearance hides that source's records for the person and no other source's. Omit subjectId and the response is exactly what it was before clearances existed. Stored only as a per-account hash, never as the id you sent.Example "resident-48213" |
| clientId optional | string | Your id for the facility, tenant or client this subject belongs to, 1–128 characters. A platform that screens for many facilities sends it so that one facility's clearances never reach another facility's results; a direct customer omits it. Meaningful only with subjectId. Stored only as a per-account hash.Example "facility-07" |
| clearanceMode optional · default "suppress" | string one of "suppress", "annotate", "ignore" | What a not_this_person clearance does to the record it names. suppress (the default whenever subjectId is sent) removes the record from records[] and lists it in cleared[]. annotate keeps the record and attaches its clearance object, for an interface that shows cleared people greyed out. ignore answers as if no clearances existed. A this_person verdict, and a cleared person who has re-surfaced (clearance.staleReason set), are kept and annotated in every mode. |
Response
A cached search, or a live search with up to 2 sources that answer quickly, finished.
| Field | Type | Description |
|---|---|---|
| status | string one of "complete", "partial" | complete: the search finished. partial: at least one live source could not be searched to the end, so records is a lower bound. A cached search is always complete. On partial, read counts.sourcesIncomplete and sourceStatus[] before treating an empty records as absence. |
| counts | Counts | Totals for this search. |
| warnings | array of string | One plain sentence per condition that shortened the answer. [] when nothing did, which makes warnings == [] a valid completeness check. The first entry begins INCOMPLETE SEARCH: (naming the sources) whenever a live source fell short. A cached search returns []: there is no candidate limit, and a search too broad to read in full is refused with 422 query_too_broad instead of answered short. |
| page | integer | The page returned. |
| perPage | integer | The perPage you sent (1 to 200), echoed back. totalPages is computed from it. |
| totalPages | integer | Pages at this perPage. 1 when there are no records. |
| sourceStatus | array of SourceStatus | One row per live source checked in this request. [] on a cached search. |
| cappedOmittedSources | array of string | Always [] on this API; present for envelope parity with the Sex Offender API, where it names sources a record cap cut out. Nothing is ever cut here: every matching stored record is read, or the search is refused with 422 query_too_broad. |
| omittedFields | array of string one of "sourceData" | ["sourceData"] by default and [] when include: ["sourceData"] is sent. No record key is withheld either way. |
| records | array of CriminalRecord | The current page of matched records, ranked by matchConfidence, then surname, then first name. |
| proof | object | Always {"status": "none"} on this API; present for envelope parity with the Sex Offender API. |
| proof.status | string one of "none" | Always "none". |
| resolution | array of ResolutionEntry | Present only when query.website or live.websites was sent: what each website resolved to. |
| usage | Usage | Present only on a live search: how many live checks completed and what they cost. |
| searchId | string | This search's id, crs_ + 20 hex. Pass it to POST /v1/criminal/report to render it; it also appears in GET /v1/criminal/history.Example "crs_7f2a1c9e0b4d6a8f1e23" |
| meterEvents | array of MeterEvent | What this request billed: one criminal_call, plus one criminal_live_source carrying the completed count on a live search. |
| liveOnly | boolean | true only when the request sent live.liveOnly: true: records, sourceStatus and counts describe only the sources checked live in this request, with no stored record. Absent on every other answer. |
| legal | Legal | The not-a-consumer-report notice. Present on every search response. |
| coverage | SearchCoverage | Which sources stand behind this answer for the state or county searched. |
| cleared | array of ClearedEntry | Present only when the request carried subjectId. One entry per record a not_this_person clearance removed from records[], so an interface can say "2 previously cleared people hidden" and link each to its clearance. [] when nothing was suppressed, including every search in annotate or ignore mode. |
| facets | SearchFacets | Present only when the request sent include: ["facets"] with filters or locations. Counts over every record that passed, not only this page. |
| matchSummary | MatchSummary | The identity picture of the whole answer (every record, not only this page): the best matchTier, counts per tier and per matchState, distinct people, and how many same-name records were dropped. Absent on a search that sent filters or locations. |
| appliedFilters | object | Present when the request sent filters, locations, a sort other than relevance, or include: ["facets"]. The filters as validated: every filter in force (a false boolean is left out), locations with the keys each was read as (kind, state, county, city, zipcode, lat, lng, radiusMiles), and always unknown and chargeMatch.Example {"severity":["felony"],"convictedOnly":true,"lookbackYears":7,"unknown":"keep","chargeMatch":"any"} |
A live search with more than 2 sources, or with a source that cannot answer quickly, is running as a job. Poll poll.
| Field | Type | Description |
|---|---|---|
| searchId | string | The job's id, crs_ + 20 hex.Example "crs_7f2a1c9e0b4d6a8f1e23" |
| status | string one of "pending" | Always "pending" on the 202. |
| mode | string one of "async" | Always "async". |
| liveSourcesRequested | integer | How many live sources the job will check. Example 6 |
| poll | string | Relative URL to poll: GET /v1/criminal/searches/{searchId}. Example "/v1/criminal/searches/crs_7f2a1c9e0b4d6a8f1e23" |
| reason | string | One sentence saying why the search runs asynchronously. Example "6 live sources (> 2 or not sync-eligible) — running asynchronously" |
| resolution | array of ResolutionEntry | Present only when a website was resolved. |
| liveOnly | boolean | true only when the request sent live.liveOnly: true; the job's finished result then carries only live records. |
| Status | Code | When |
|---|---|---|
| 401 | — | Missing or invalid X-API-Key. Body: GatewayError. |
| 402 | — | Free trial used up, or no active subscription. Body: GatewayError. |
| 422 | guard_unbounded_query | No lastName. |
| 422 | prefix_too_short | An explicit prefix shorter than 3 characters. |
| 422 | invalid_dob | dob is not a YYYY-MM-DD date. |
| 422 | invalid_page | page is below 1, or perPage is not an integer from 1 to 200. |
| 422 | no_live_sources | A live block that resolves to no jurisdiction. |
| 422 | invalid_filter_value | A filter value outside its list, a wrong type, an unknown filter key, or a bad sort, unknown or chargeMatch. The message lists the allowed values. |
| 422 | invalid_date_range | A date range that is not ISO, not a real date, or has from after to. |
| 422 | invalid_location | A malformed location: an unknown key, no place in it, a bad state or ZIP, a partial radius, or a radius, city or zipcode on kind: "jurisdiction". |
| 422 | too_many_locations | More than 10 locations. |
| 422 | ambiguous_location | locations sent together with the flat state, county, jurisdiction, city, zipcode or address query keys. |
| 422 | radius_too_large | radiusMiles above 100. |
| 422 | filters_with_async_live | filters or locations on a live search that has to run as a job (more than 2 sources). |
| 422 | invalid_body | Body is not a JSON object (or is empty). |
| 422 | invalid_query | query is not an object. |
| 422 | invalid_live | live is not an object. |
| 422 | query_too_broad | The surname alone would match too many people; add a first name, a date of birth, a birth year or a state. |
| 503 | retry | Criminal Search could not run this search just now; nothing was searched or billed. The gateway re-sends for up to 45 s first, so you see this rarely. Retry-After: 1. |
| 503 | unavailable | Criminal Search could not be reached. Retry with backoff. |
| 503 | filters_unavailable | Filtering is switched off for the moment. A filtered search is never answered unfiltered; retry after Retry-After seconds, or search without filters and locations. |
| 504 | upstream_timeout | Criminal Search took longer than 65 seconds to answer. Retry, or narrow the query. |
The criminal Query object — every search filter
The person you are looking for. lastName is the only required field; every other field narrows within that surname. Send it as query on POST /v1/criminal/search and POST /v1/criminal/report, or as one row of queries[] on POST /v1/criminal/batch. The fields can also be sent flat at the top level of the body.
Returned or accepted by POST /v1/criminal/search, POST /v1/criminal/batch, POST /v1/criminal/report.
| Field | Type | Description |
|---|---|---|
| lastName required | string | The surname, case-insensitive. Every search carries it: without it the request is refused with 422 guard_unbounded_query. A record whose surname neither equals your value nor (under nameStrategy: "prefix") starts with it is never returned. Accents, apostrophes, spaces and hyphens do not matter (Muñoz finds MUNOZ, O'Brien finds OBRIEN, De La Cruz finds DELACRUZ), and a trailing Jr, Sr, II, III or IV is not part of the surname.Example "Hamilton" |
| last optional | string | Alias for lastName. |
| firstName optional | string | Given name, case-insensitive and nickname-folded (Rob and Robert compare equal). On a cached search it narrows: the record's first name must start with your value, and it then scores firstName:exact or firstName:prefix. On a live check the source's candidates are scored instead: a different first name lowers matchConfidence and the record stays, and a record that publishes no first name stays flagged firstName:absent.Example "Alex" |
| first optional | string | Alias for firstName. |
| middleName optional | string | Middle name or initial; also accepted as middle. Never a filter: a record whose published middle name agrees scores middleName:match, ranks higher and corroborates a year/age match in another state (an initial only scores middleName:initial); one that conflicts scores middleName:mismatch, loses confidence and leaves the year_or_age_match_same_state tier. A record that publishes no middle name is unaffected.Example "Lee" |
| middle optional | string | Alias for middleName. |
| dob optional | string (date) | Full date of birth. One value is compared against every kind of birth evidence a record carries: a full date, a month and year, a year, or an age. A record whose evidence contradicts it is dropped; a record with no evidence stays with matchState: "no_dob_age_year". Any other date format is refused with 422 invalid_dob. MM/DD/YYYY and YYYYMMDD are read as the same date; a two-digit year is refused with 422 invalid_dob, never guessed. A full dob also changes two defaults: nameStrategy becomes exact, and residenceMode becomes prefer when a residence is sent.Example "1989-04-23" |
| birthYear optional | integer | Year of birth when you do not have the full date. A record whose published year (or full date) conflicts is dropped; a record that publishes only an age, or no birth evidence, is kept and labelled matchState: "no_dob_age_year" (unverified: true). Send dob instead when you have the date.Example 1989 |
| birthMonth optional | integer | Month of birth, 1–12, used with birthYear to compare month and year where a record publishes both.Example 4 |
| age optional | integer | Age in years, compared against a record's full date or published age within ±1 year, or its birth year within ±2. When dob is also sent, the dob decides.Example 36 |
| state optional | string | USPS state code. Under residenceMode: "filter" (the default without a residence) it filters to records in that state. Under prefer it is the residence's state: records in it rank first, a year/age match there is year_or_age_match_same_state, and records from every other state still come back.Example "TX" |
| county optional | string | County (jurisdiction) name, case-insensitive. Keeps records whose county equals it. Always a filter, in either residenceMode.Example "Bexar" |
| jurisdiction optional | string | Alias for county. |
| city optional | string | Residence city. Under residenceMode: "filter" it is compared case-insensitively with the record's address.city, so only records that publish a residence can match. Under prefer (the default with a full dob) it only ranks: a record whose residence is in this city sorts first within its matchTier and reads residenceMatch: "city".Example "Bexar" |
| zipcode optional | string | Residence ZIP; also accepted as zip. Under residenceMode: "filter" it is matched as a prefix of the record's address.zipcode ("750" matches 75001) and records without one are not returned. Under prefer it only ranks (first five digits compared; residenceMatch: "zip").Example "78205" |
| zip optional | string | Alias for zipcode. |
| address optional | string | Street address; also accepted as streetAddress. A one-line address ("123 Main St, Springfield, IL 62701, USA") is split into street, city, state and zipcode when those were not sent on their own. Under residenceMode: "filter" the street text must appear, case-insensitively, in the record's address.line1. Under prefer it only labels (residenceMatch: "address").Example "Main St" |
| streetAddress optional | string | Alias for address. |
| prefixMatch optional | array of string or string | Marks a prefix as deliberate on "lastName", "firstName" or "both" (a list or a comma-separated string also works). A named field shorter than 3 characters is refused with 422 prefix_too_short.Example "lastName" |
| website optional | string | A roster or records website. It scopes the search to the jurisdiction it resolves to; an explicit state or county you also send wins. The outcome is reported in the response's resolution[]. An unsupported site adds no scope and the search still runs.Example "https://sheriff.examplecounty.gov/inmates" |
| nameStrategy optional · default "prefix" | string one of "prefix", "exact" | How the surname is compared. prefix returns surnames equal to or starting with your value; exact returns only equal surnames. An implicit prefix on a surname shorter than 3 characters runs as exact; an explicit one is refused with 422 prefix_too_short. When omitted it is exact if a full dob was sent (one identified person, not a surname family) and prefix otherwise. |
| matchStates optional | array of string one of "dob_match", "year_match", "age_match", "no_dob_age_year" | Serve only records whose matchState is one of these; omitted serves every matched record. ["dob_match"] returns only records whose full date of birth equals your dob — what an identity-confirmed screening needs, and far fewer rows for a common name. An empty or unknown value is refused with 422 invalid_match_states. |
| dobPolicy optional · default "any" | string one of "any", "require" | any (default) serves every matched record. require also drops every matchTier: "name_only" record (no birth evidence to compare, or only an uncorroborated year or age in another state), counted in matchSummary.dobPolicyDropped. Records whose birth evidence contradicts your dob are dropped under either policy. Needs a dob, birthYear or age, else 422 invalid_dob_policy. |
| residenceMode optional | string one of "prefer", "filter" | How city, zipcode, address (and, under prefer, the state sent with them) are used. prefer — the default when a full dob is sent with any of them — ranks records whose residence agrees first within their matchTier, labels each record (residenceMatch) and removes nothing: a person's records in another state, or on a record with no published residence, still come back. filter — the default otherwise — filters, as described on each field. Send prefer explicitly to make a lone state a hint too. Any other value is 422 invalid_residence_mode. |
Sex offender and criminal search in one call
To run this search together with the sex offender search, send this exact body as criminal (and the other search's body as sexOffender) to POST /v1/combined-search, which answers 200 with both, or 202 and a poll link when a half cannot finish in the request — or to POST /v1/combined-searches, which always answers 202 and can call your webhookUrl. Poll either with GET /v1/combined-searches/{id}. Each half comes back as { httpStatus, body } with the body exactly as its own endpoint returns it, it is billed as the two calls, and status is complete only when both halves are.
POST /v1/combined-search
{ "sexOffender": { "query": { "firstName": "John", "lastName": "Doe" } },
"criminal": { "query": { "firstName": "John", "lastName": "Doe" } } }
200 OK
{ "id": "cs_…", "status": "complete",
"sexOffender": { "httpStatus": 200, "body": { …the sex offender search response… } },
"criminal": { "httpStatus": 200, "body": { …this endpoint's response… } } }FCRA-regulated use
Results from POST /v1/criminal/search are not a consumer report and may not be used for FCRA-covered decisions. Approved consumer reporting agencies and screening platforms under a written FCRA agreement place FCRA orders instead, which apply the federal seven-year rule, state conviction limits and re-verification — see the FCRA API.
Hiring or renting to someone? FCRA workflows are meant primarily for tenant screening and hiring decisions. If a result could help decide whether a person gets a job or a home, run it through the FCRA API, not this endpoint.