Criminal Records API · v1.0.0

Quickstart

Your first authenticated criminal search, and the five checks to read off every response.

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

Authenticate

Every request carries your secret key in the X-API-Key header — the same key you already use for the Sex Offender API. Criminal Search is a product on your existing account, not a separate credential. Create one in your dashboard and export it.

export OFFENDERSEARCH_BASE=https://api.offendersearch.app
export OFFENDERSEARCH_KEY="os_live_…"

Read the response, in this order, every time

  1. status — "complete" means the search finished. "partial" means at least one live source could not be checked to the end. A cached search is always "complete".
  2. counts.sourcesIncomplete — > 0 means a live source fell short, so an empty result is a lower bound, not a confirmed absence. Always 0 on a cached search. See Result completeness.
  3. warnings — [] means nothing shortened this answer, so warnings == [] is a valid completeness assertion. An entry begins INCOMPLETE SEARCH: and names the sources when a live source fell short.
  4. counts.records — the total matched, before your page slice. records.length (and counts.recordsReturned) is only the current page.
  5. matchTier, matchState, matchConfidence, matchBasis, per record — how strong is the identity match, did the date of birth verify, and how did the name match? Records come back best matchTier first, and identity says how much the agreement is worth for that name. See Searching by date of birth and Matching & confidence.
Check 2 is the one that gets skipped, and on a live search it is the one that hurts. On a cached search an empty records array genuinely means nobody in the corpus matched. On a live search, read counts.sourcesIncomplete first — a > 0 is not determined, never not found.

Get the per-source annex

There is no separate annex to fetch: every normalized field is already on the record in every response, including the residence address, sentence, parole, custody, priorFelony and veteranStatus. omittedFields reads ["sourceData"] by default and [] when you send include: ["sourceData"]; the records are identical either way. See the CriminalRecord object for every field.

Where to go next

  • Search — every parameter, both modes, and worked examples.
  • Matching & confidence — the required surname anchor and the confidence arithmetic.
  • Date of birth — how one dob query reaches date, year and age evidence.
  • Coverage today — the public source of truth for what is covered right now.

Test the criminal search API in the sandbox

Run POST /v1/criminal/search against the sandbox with a test key (os_test_…): fixed test names return a clear record, a felony and a misdemeanor conviction, an arrest, a warrant, a person in custody and possible matches, the same every time and never billed.

Base URL
https://sandbox.offendersearch.app Not https://api.offendersearch.app, which takes live keys only.
Test key
In the dashboard, Developers → API keys → Create test key. Test keys begin os_test_; send yours in the X-API-Key header.
POST /v1/criminal/search
curl -X POST "https://sandbox.offendersearch.app/v1/criminal/search" \
  -H "X-API-Key: $OFFENDERSEARCH_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "query": {
        "firstName": "Felony",
        "lastName": "Record",
        "dob": "1975-06-15"
      }
    }'

Try it here

Pick a scenario, edit the request, and run it against the sandbox from this page. The explorer accepts os_test_ keys only and never reaches the live host, so nothing here is billed; the “production” code it copies is for your own backend with a live key.

Create a test key under Dashboard → API keys. Live keys are refused here.
Copy this request as code

Sandbox code uses your test key. Production code calls the live host and is billed per call; run it from your backend with an os_live_… key.

curl -X POST https://sandbox.offendersearch.app/v1/criminal/search \
  -H "X-API-Key: $OFFENDERSEARCH_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "query": { "firstName": "Clear", "lastName": "Record" } }'

Product overview