Criminal Records API · v1.0.0

Matching, confidence & partial names

The surname anchor, name strategies, the closed match vocabulary, and how matchConfidence is built.

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

The surname is the anchor

The surname rules hold in every mode — on the cache and on a live source — because the same matcher scores every source’s output.

  • lastName is required. A query with no surname is refused with 422 guard_unbounded_query. Both lastName and the shorthand last are accepted.
  • The surname must corroborate. A record whose surname neither equals nor prefix-matches your lastName is dropped. On a cached search a firstName narrows too: the record’s first name must start with the value you send.
  • On a live check, a record missing a first name is KEPT and flagged firstName:absent with a small confidence penalty — we cannot disprove your firstName. On a cached search a firstName you send requires one, so such a record is not returned; omit firstName to see it.
  • Case-, accent- and punctuation-insensitive. smith, Smith and SMITH are identical; so are José and JOSE, O'Brien and OBRIEN, De La Cruz and DELACRUZ, Garcia-Lopez and GARCIA LOPEZ. A trailing generational suffix is ignored, so Smith matches SMITH JR; the suffix is returned in name.suffix.
  • Aliases are returned, not searched. A record’s aliases are the other names its source published; a search matches on the record’s name.

The two surname strategies — nameStrategy

nameStrategySurname matchesDefault?
prefixthe record’s surname equals your value, or starts with itYes, unless you send a full dob
exactthe record’s surname equals your valueWhen you send a full dob

A query with a full dob identifies one person, so without a nameStrategy or prefixMatch its surname is read exact: Lee does not also read LEEDS or LEEPER. Send nameStrategy: "prefix" to widen it.

There is no fuzzy (typo) surname matching in this API. Smyth does not match Smith; Ross does not match Rose. In this domain a false positive is the expensive error — telling a customer that an innocent person has a criminal record is materially worse than a miss — so the matcher never introduces a surname it was not given.

First-name matching and nicknames

When you supply firstName, it is scored after the surname corroborates. Both sides are folded through a small, conservative nickname table first — Bob/Bobby/Rob → Robert, Bill/Will → William, Jim → James — in both directions. A nickname hit reads as firstName:exact (the two folded names became equal).

On a cached search the record’s first name must also start with the value you send, case-insensitively — so Rob reaches ROBERT (and scores firstName:exact), Alex reaches ALEXANDER (firstName:prefix), and Bob does not reach ROBERT. On a live check the source’s own candidates are scored, and there a first-name mismatch does not drop the record — it only lowers its confidence.

Prefix (partial-name) matching — prefixMatch

prefixMatch requests prefix matching on a named field explicitly, and is where the 3-character floor lives. It accepts "firstName", "lastName", "both", or a list.

{ "query": { "lastName": "hamil", "firstName": "al", "prefixMatch": "lastName" } }
You sent2-char surname behaviour
nothing (default)falls back to exact — no error (so Li, Ng, Ho, Vo work)
nameStrategy: "prefix"422 prefix_too_short — you asked for prefix
prefixMatch: "lastName"422 prefix_too_short — you asked for prefix
nameStrategy: "exact"exact — no error, no floor

The floor guards the bulk-download shape, not short surnames. A 2-character exact surname is always fine.

The match vocabulary on the wire

Every record tells you how it matched, in matchBasis (space-separated field:how tokens) and matchDetail (one plain sentence). The surname tokens are exact and prefix; the given tokens are exact, prefix, absent, mismatch, notQueried; the middle-name tokens (present only when you send middleName and the record publishes one) are match, initial, mismatch; the dob tokens are match, year, monthYear, age, ageFromDob, absent, sourceConfirmed, sourceNotConfirmed.

{
  "name": { "first": "ROBERT", "middle": "E", "last": "SMITH", "suffix": "" },
  "matchConfidence": 0.99,
  "matchBasis": "lastName:exact firstName:exact dob:match",
  "matchDetail": "name and full date of birth agree",
  "matchState": "dob_match",
  "unverified": false
}

Exclusion-list records and the date of birth

Exclusion-list records go through the same matcher as every other kind, and what they can reach depends on what the list publishes. Most entries on the HHS-OIG list carry a full date of birth, so a dob in the query reaches matchState: "dob_match" and the record scores like a court record with the same evidence. SAM.gov entries and most state Medicaid lists publish no date of birth: those records are kept and flagged unverified: true (matchState: "no_dob_age_year"), rank below every record with birth evidence, and are never dropped for a date they could not disagree with. Where a list publishes an address it is carried on the record, so city, zipcode and address narrow those records the way they narrow a registry entry.

The conviction tier and the administrative tier match identically; the difference is only whether the record is returned at all without include: ["exclusions"] — see the search page.

Identity strength: matchTier, identity and personGroup

matchState and matchConfidence describe one record against your query. Three more fields say how far to trust that, and tie the answer together:

  • matchTier — dob_match, year_or_age_match_same_state, year_or_age_match or name_only. records[] is sorted by it, best first, then by matchConfidence. A bare year or age that agrees in another state needs corroboration (a full middle name, the residence city or ZIP, a published birth month) to rise above name_only. Definitions are in Searching by date of birth.
  • identity — how much the agreement is worth for this name. confidence is high (a full date agreed and fewer than one other person is expected to share name and date), medium, low or insufficient_information (only the name agreed and other people carry it); expectedPeople, nameholders and band give the numbers behind it. On a scored search it also carries a probability (0 to 1), a verdict and the evidence[] weighed. Advisory: it never drops or reorders a record.
  • personGroup — records in one answer that are the same person by the identity rule (same last name, same nickname-folded first name, same full date of birth) share it, across sources. A record without a full date of birth is its own group.
  • residenceMatch — when you send a residence with a full dob, the residence ranks records rather than filtering them (residenceMode: "prefer", the default then), and each record says how its published residence compares: address, zip, city, state, none or unknown. null when no residence was sent.

The answer-level matchSummary counts records and distinct people per tier and names the best tier (clear when nothing matched). To keep only the strongest records, send matchStates: ["dob_match"], or dobPolicy: "require" to drop every name_only record; the default keeps every record, labelled.

How matchConfidence is built

matchConfidence is not a probability — it is a sum of fixed evidence contributions, clamped to [0.0, 0.99], so a name-only match can never present as certainty.

ContributionAdds
Surname exact (base)+0.55
Surname prefix (weaker than exact)+0.42
First name exact (after nickname folding)+0.25
First name prefix (Alex → Alexander)+0.12
First name absent (record publishes none — live checks only)−0.05
First name mismatch (present, does not line up — live checks only)−0.20
Middle name agrees (when you send middleName)+0.03
Middle initial agrees+0.01
Middle name conflicts−0.15
DOB dob_match+0.40
DOB year_match+0.30
DOB age_match+0.18
DOB no_dob_age_year+0.00
DOB not confirmed by the source (dob:sourceNotConfirmed)−0.15
A high matchConfidence on a name-only match is still a candidate, not a confirmation. For anything consequential, gate on matchState: "dob_match" with lastName:exact and firstName:exact — and honour the FCRA restriction: results from this endpoint may not be used for FCRA-covered decisions (those run as orders on the FCRA API). See Searching by date of birth.

Product overview