# National ID Number Format Validator

> National ID Number Format Validator is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0216/call, status unknown (last checked 2026-09-13).

Validates national identification number formats and checksums for SE, FI, NO, DK, GB, US, and DE — without verifying identity

## Facts

- Endpoint: GET https://api.strale.io/x402/id-number-validate
- Price: $0.0216/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-a31cbd30
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XFhBtBwidsuqWINPIr7Wd

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-strale-io-a31cbd30
```

Example prompt: Can you check whether '8112289874' is a valid Swedish personnummer format — including the checksum?

## When to prefer this

Use this endpoint when you need to validate the format and checksum of a national ID number from Sweden, Finland, Norway, Denmark, UK, US, or Germany before storing or processing user-supplied identity data. Prefer this over generic regex checks because it handles country-specific checksum algorithms (e.g. Luhn-like for personnummer). Do not use this to verify that a person actually exists — it only checks structural validity.

## Known failure modes

- Unsupported country_code returns an error (only SE, FI, NO, DK, GB, US, DE supported)
- Malformed or missing id_number or country_code returns a 400-style error
- Numbers that pass format but fail checksum return invalid with checksum failure reason
- Network or payment (x402) failure returns no result

## How this service works

Validate national identification number formats. Supports Swedish personnummer, Finnish henkilötunnus, Norwegian fødselsnummer, Danish CPR, UK National Insurance, US SSN format, and German Steuer-ID. Checks format and checksum where applicable. Does NOT v…

## Output

Returns a validation result indicating whether the ID number matches the expected format and passes checksum verification for the specified country (SE, FI, NO, DK, GB, US, DE). Does not confirm real-world identity.

## Example request

```json
{
 "id_number": "8112289874",
 "country_code": "SE"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "id_number",
      "country_code"
     ],
     "properties": {
      "id_number": {
       "type": "string",
       "description": "National identification number"
      },
      "country_code": {
       "type": "string",
       "description": "ISO 2-letter country code (SE, FI, NO, DK, GB, US, DE)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-a31cbd30/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
