ID Number Validation
Check national ID formats and available checksums for seven supported countries. Returns validation details without confirming identity.
Pay by wallet (x402)
id-number-validate Example
Example answer
{
"error": "Country 'INVALID_TEST_VALUE_12345' not supported. Supported: SE, FI, NO, DK, GB, UK, US, DE",
"valid": false,
"id_type": "unknown",
"normalized": "INVALID_TEST_VALUE_12345",
"country_code": "INVALID_TEST_VALUE_12345",
"checksum_valid": null,
"extracted_info": null,
"format_correct": false
} Inputs
| Field | Type | Required | What it is |
|---|---|---|---|
id_number | string | Yes | National identification number |
country_code | string | Yes | ISO 2-letter country code (SE, FI, NO, DK, GB, US, DE) |
Output fields
How reliably each field appears in a successful answer.
| Field | Type | Appears |
|---|---|---|
valid | boolean | Always (present in every successful answer) |
id_type | string | Always (present in every successful answer) |
normalized | string | Always (present in every successful answer) |
country_code | string | Always (present in every successful answer) |
checksum_valid | boolean | Always (present in every successful answer) |
extracted_info | object | Usually (present for most inputs) |
format_correct | boolean | Always (present in every successful answer) |
How to call it
The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.
# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
-H "Authorization: Bearer $STRALE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"capability_slug": "id-number-validate",
"inputs": {
"id_number": "811228-9874",
"country_code": "SE"
},
"max_price_cents": 2
}' {
"tool": "strale_execute",
"arguments": {
"slug": "id-number-validate",
"inputs": {
"id_number": "811228-9874",
"country_code": "SE"
},
"max_price_cents": 2
}
} import { Strale } from "straleio";
const strale = new Strale({ apiKey: process.env.STRALE_API_KEY! });
const result = await strale.do({
capability_slug: "id-number-validate",
inputs: {
"id_number": "811228-9874",
"country_code": "SE"
},
max_price_cents: 2,
}); import os
from straleio import Strale, DoRequest
strale = Strale(api_key=os.environ["STRALE_API_KEY"])
result = strale.do(DoRequest(
capability_slug="id-number-validate",
inputs={
"id_number": "811228-9874",
"country_code": "SE",
},
max_price_cents=2,
)) # No account. The first request answers 402 with the price in USDC;
# an x402 client pays it from your wallet and repeats the request.
curl -i 'https://api.strale.io/x402/v2/id-number-validate?id_number=811228-9874&country_code=SE' Limitations
Format validation only
Validates format and checksum — does not verify the number is assigned to a real person
Country coverage
Supports SE, FI, NO, DK, GB, US, DE — other countries return unsupported error
Related tools
- Address Validation €0.03
- Age Check €0.02
- Bank BIC Lookup €0.05
- Bulk Email Validation €0.15
- Business Day Check €0.02
- Company ID Detection €0.05