Se personnummer parse

se-personnummer-parse · version 1.0.0 · Identifiers & check digits · free, no key needed

Parse a Swedish personnummer/samordningsnummer: resolve its century, return birth date, sex and Luhn validity.

Use when you need to: parse a swedish personnummer · get birth date from swedish personal identity number · validate a personnummer checksum.

Decide before calling

Read the versioned contract and the supported scope below. Reuse se-personnummer-parse@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use se-personnummer-parse@1.0.0 for parse a swedish personnummer. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "value": "811218-9876",
  "reference_date": "2026-09-28"
}

Response:

{
  "result": {
    "valid": true,
    "reason": null,
    "birth_date": "1981-12-18",
    "century_resolved": false,
    "is_coordination_number": false,
    "sex": "male",
    "normalized12": "198112189876"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "se-personnummer-parse",
  "version": "1.0.0",
  "input": {
    "value": "811218-9876",
    "reference_date": "2026-09-28"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/se-personnummer-parse/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"value":"811218-9876","reference_date":"2026-09-28"}'

The machine-readable contract is at /v1/tools/se-personnummer-parse/versions/1.0.0.

CLI

node cli.mjs run se-personnummer-parse 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.