Quick start
-
Get a key
Create an account in the API portal, confirm your email and choose a plan. Then create your key on your account page. It looks like
odb_4ed77cc24842_…and is shown only once, so store it in your secrets manager straight away. Portal keys can screen names; record lookups are arranged with the ODBUK team. -
Check it works
curl -H "Authorization: Bearer $ODBUK_KEY" "https://offenders.info/v1/key"You get your key's status, permissions and remaining allowance. This check is free: it doesn't count towards your limits.
-
Screen an applicant
Send the name from their ID document, plus their date of birth, to the screening endpoint. Hold anyone with a
matchorpossible_matchfor a person to review.
Authentication
Every request needs your key. Send it in the Authorization header:
Authorization: Bearer odb_4ed77cc24842_k7Pq2mZrW…
If your client can't set that header, two alternatives work the same way:
| Method | How to send the key |
|---|---|
| Header | X-API-Key: odb_… |
| HTTP Basic | Any username, with the key as the password: curl -u apikey:odb_… … |
Keep keys on your server. Never put a key in a web page, mobile app or public repository. If one leaks, burn it immediately and ask for a replacement.
Your key
GET/v1/key
Shows your key's current state. Works even when the key is expired, burned or out of requests, and never counts as a use.
{
"key_id": "odb_4ed77cc24842",
"name": "Example Ltd sign-up checks",
"status": "active",
"expires_at": "2027-02-07T16:36:00Z",
"requests_used": 312,
"requests_remaining": null,
"daily_limit": 5000,
"requests_today": 41,
"permissions": ["screen"],
"monthly_limit": 2500,
"checks_this_month": 312
}
| Field | Description |
|---|---|
status | active, suspended (for example, a payment problem), expired, burned or used up. Only active keys can make requests. |
expires_at | When the key stops working (UTC), or null if it doesn't expire. |
requests_remaining | Requests left before the key burns itself, or null if there's no cap. |
daily_limit, requests_today | Your daily allowance and today's use. The count resets at midnight UTC. |
permissions | screen for screening, records for record lookups. |
monthly_limit, checks_this_month | Your plan's monthly allowance and how much you've used. Resets on the 1st of each month (UTC). |
POST/v1/burn
Permanently disables your key. Use it the moment you think a key has leaked: it stops working on the next request and can't be restored. The response confirms with "burned": true and the key's final status.
Screening
Checks one or more applicants against every published record and returns the records that could be them, with how confident the match is and why. Needs the Screen applicant names permission.
POST/v1/screen
Send applicant details as a JSON body. Never put names or dates of birth in the URL: URLs are written to server logs.
Integrations built before November 2026 can keep using /api/v1?action=screen, ?action=key, ?action=burn and /api/v1?id=…: they behave identically.
Request fields
| Field | Type | Description |
|---|---|---|
first_name required | string | First name exactly as on the ID document. |
last_name required | string | Surname as on the ID. Double-barrelled surnames are fine. |
middle_names | string | All middle names, separated by spaces. Used to tell apart people with the same first name and surname. |
full_name | string | Alternative to the three fields above when you only have one name string. The first word is treated as the first name and the last word as the surname. |
date_of_birth recommended | YYYY-MM-DD | Rules out records whose reported age doesn't fit. Without it, everyone who shares a name stays in the results. |
birth_year | integer | Use instead of date_of_birth if you only hold the year. |
sex | string | male or female, if known. Rules out records of the other sex. |
other_names | array | Up to 5 previous or alternative full names. A single word is treated as a previous surname, for example a maiden name. |
reference | string | Your own ID for the applicant, returned unchanged so you can match up results. Up to 100 characters. |
To check up to 25 applicants in one request, send {"applicants": [ {…}, {…} ]}. Each applicant uses one check from your allowance, so a batch of 10 uses 10. Requests that are refused or invalid don't use any checks.
Example
curl -X POST "https://offenders.info/v1/screen" \
-H "Authorization: Bearer $ODBUK_KEY" \
-H "Content-Type: application/json" \
-d '{
"reference": "user-48213",
"first_name": "David",
"middle_names": "Michael",
"last_name": "Jones",
"date_of_birth": "1975-03-14",
"sex": "male"
}'
// Node 18+ (server side only: never expose your key in a browser)
const res = await fetch("https://offenders.info/v1/screen", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.ODBUK_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
reference: "user-48213",
first_name: "David",
middle_names: "Michael",
last_name: "Jones",
date_of_birth: "1975-03-14",
sex: "male",
}),
});
const { results } = await res.json();
if (results[0].review_required) {
// Hold the account and queue it for a person to review
}
$ch = curl_init("https://offenders.info/v1/screen");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("ODBUK_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"reference" => "user-48213",
"first_name" => "David",
"middle_names" => "Michael",
"last_name" => "Jones",
"date_of_birth" => "1975-03-14",
"sex" => "male",
]),
]);
$result = json_decode(curl_exec($ch), true)["results"][0];
if ($result["review_required"]) {
// Hold the account and queue it for a person to review
}
import os, requests
res = requests.post(
"https://offenders.info/v1/screen",
headers={"Authorization": f"Bearer {os.environ['ODBUK_KEY']}"},
json={
"reference": "user-48213",
"first_name": "David",
"middle_names": "Michael",
"last_name": "Jones",
"date_of_birth": "1975-03-14",
"sex": "male",
},
timeout=10,
)
result = res.json()["results"][0]
if result["review_required"]:
pass # Hold the account and queue it for a person to review
Response
One result per applicant, in the order you sent them. Candidates are sorted closest first, up to 10 per applicant.
{
"checked_at": "2026-11-11T14:02:11Z",
"records_checked": 8123,
"results": [{
"reference": "user-48213",
"outcome": "match",
"review_required": true,
"candidates": [{
"record_id": 1042,
"confidence": "high",
"name": "David Jones",
"matched_name": "David Jones",
"city": "Leeds",
"conviction_date": "2020-06-01",
"age_at_conviction": "45",
"estimated_birth_years": [1973, 1976],
"reasons": {
"name": "exact",
"first_name": "exact",
"surname": "exact",
"middle_names": "not compared",
"birth_year": "consistent",
"sex": "consistent",
"matched_on": "record name",
"applicant_name": "legal name"
},
"source": "https://www.example-news.co.uk/…",
"record_url": "https://offenders.org.uk/offender?id=1042"
}],
"warnings": []
}],
"notice": "Results come from published media reports and are for review, not identification. …"
}
| Field | Description |
|---|---|
outcome | no_match, possible_match or match. See outcomes. |
review_required | true for any outcome other than no_match. |
confidence | Per candidate: high (exact name and consistent birth year), medium or low. |
matched_name | The name on the record that matched. Can differ from name when the record lists an alias or more than one person. |
estimated_birth_years | The birth years consistent with the record's age at conviction, or null if the record has no usable age. |
reasons.first_name, reasons.surname | How each part matched: exact, nickname, spelling, sounds alike, middle name or initial. |
reasons.birth_year | consistent, unknown (record has no age) or not provided (you didn't send one). |
record_url | The public record page, with photo and details, for your reviewer to compare. |
warnings | Plain-language notes, for example when no date of birth was sent. |
Outcomes
-
no_matchNo record shares this name, or every record that does contradicts the date of birth or sex you sent.
Continue the sign-up.
-
possible_matchA similar name (nickname, spelling, middle name or alias), or the exact name without a usable birth-year comparison.
Hold for review.
-
matchThe exact name and a birth year consistent with the record. Still not proof that it's the same person.
Hold for review.
How matching works
- Case, accents, apostrophes and titles are ignored, so Shaun O'Connor, shaun oconnor and Mr Shaun O Connor are the same.
- Common nicknames and spellings are recognised: Dave and David, Bill and William, Stephen and Steven.
- One-letter typos and sound-alike surnames (Smith and Smyth) give a
possible_match, never amatch. - People known by a middle name are found, and different middle names lower confidence.
- Records can list aliases in brackets and more than one person; each name is checked separately.
- Records store age at conviction. The birth year is estimated as conviction year minus that age, with a year's leeway either side because press reports may give the age at charge or sentencing.
- A record is only ruled out by something that contradicts it: a birth year outside its range, or the other sex. Records with no recorded age can't be ruled out by date of birth.
- Records of people known to have died are not screened against, since they can't be the person signing up.
Acting on results
Records are compiled from published media reports. A result means a record shares the applicant's name and is consistent with the details you sent. It does not establish that the applicant is the person in the record, and people with common names will be flagged.
- Have a person review every flagged applicant. Don't reject anyone automatically on the API result alone.
- Compare the record's photo, town and source with what you know about the applicant.
- Give the applicant a chance to respond before you make a final decision.
- Screening uses criminal-offence data, which has its own rules under UK GDPR Article 10 and the Data Protection Act 2018. Make sure you have a lawful basis, and tell applicants in your privacy notice.
Applicant details you send are processed in memory and not stored. ODBUK logs only that a screening request happened and how many applicants were flagged.
Record lookups
Fetch published records by ID, ID range or name. Needs the Look up records permission. Send exactly one of the parameters below.
GET/v1/records
| Parameter | Returns |
|---|---|
id | The record with that ID. |
id_start + id_end | Records in that ID range, up to 1,000 at a time. |
name | Records whose name contains this text, case-insensitive, up to 100. For checking applicants, use screening instead. |
latest=1 | The highest record ID, as {"latest_id": 1352}. |
curl -H "Authorization: Bearer $ODBUK_KEY" "https://offenders.info/v1/records?id=1042"
[{
"id": 1042,
"name": "David Jones",
"locations": "Headingley, Leeds",
"short_description": "Jailed for …",
"image": "/uploads/1042.jpg",
"sex": "male",
"age": "45",
"city": "Leeds",
"source": "https://www.example-news.co.uk/…",
"date": "2020-06-01",
"deceased": false
}]
Lookups always return a list, empty if nothing matches. age is the age at conviction; date is the conviction date. deceased is true if the person is known to have died. Records that cover more than one person list comma-separated ages, in the same order as the names.
Errors
Errors return a JSON body with a message you can log or show to your team:
{ "error": "This API key has expired." }
| Status | Meaning | What to do |
|---|---|---|
| 400 | Invalid ID, invalid JSON or an unknown action. | Check the request against this page. |
| 401 | No key, an invalid key, or a key that is burned, expired, suspended or has used all its requests. The message says which, for example suspended: Payment problem. | Check the key with /v1/key, fix billing in the API portal, or create a new key. |
| 403 | The request came from an IP address the key doesn't allow, or the key lacks the permission for this request. | Call from an allowed server, or ask for the permission. |
| 405 | Wrong HTTP method, for example screening with GET. | Use the method shown for the endpoint. |
| 413 | Request body over 256 KB. | Send fewer applicants per request. |
| 422 | Screening input is incomplete or invalid. The message names the applicant and field, for example Applicant 2: date_of_birth must be YYYY-MM-DD. | Fix that field and resend. |
| 429 | Too many requests this minute, or your daily or monthly allowance is used up. The message says how many checks are left. | Back off and retry, wait for the reset, or upgrade your plan in the API portal. |
| 500, 503 | A problem on our side. | Retry shortly. If it keeps happening, contact the ODBUK team. |
Limits
| Requests per minute | 120 per key and 120 per IP address |
|---|---|
| Monthly checks | Set by your plan. One check per screened applicant. Resets on the 1st of each month (UTC). |
| Daily limit | Optional per key. Resets at midnight UTC. |
| Request cap | Optional per key. The key burns itself after its last permitted request. |
| Expiry | Set per key. Check expires_at with /v1/key. |
| Screening batch | Up to 25 applicants, 256 KB per request |
| Record lookups | Up to 1,000 records per ID range, 100 per name search |