Base URL: https://swekit-api.erikssonanton2001.workers.dev · JSON only · CORS enabled · GET (and POST with JSON body for the same parameters).
{"valid": bool, "errors": [codes]} plus parsed fields. HTTP 200 even if the number is invalid; HTTP 400 only for missing/malformed parameters.{"error":{"code","message"}}. Rate limit: HTTP 429 with Retry-After.X-Plan: free | pro | gateway.curl -X POST https://swekit-api.erikssonanton2001.workers.dev/v1/personnummer -H 'content-type: application/json' -d '{"value":"811218-9876"}'Anonymous demo: 20 requests/min/IP. Higher limits: send X-API-Key: <license key> (600 req/min). Marketplace subscribers use the marketplace's own key and quota. A "Pro" listing is being set up; until it is live, contact the operator via the repository issues.
Remote MCP endpoint https://swekit-api.erikssonanton2001.workers.dev/mcp (POST JSON-RPC 2.0: initialize, tools/list, tools/call). Tools: validate_personnummer, validate_orgnr, validate_bankgiro, validate_plusgiro, validate_ocr, generate_ocr, swedish_account_to_iban, validate_iban, lookup_clearing_number, swedish_holidays, swedish_date_info, add_business_days, count_business_days.
mode=work for plain weekday-minus-red-day logic. Check your own contracts for company-specific rules.+ = 100+). Gender is from the 9th digit (registered legal sex). Use for validation, not identification.GET /v1/personnummerValidate & parse a Swedish personnummer / samordningsnummer
value | string | Personnummer in any common format (YYMMDD-NNNC, YYYYMMDDNNNC, with + for 100+). Prefer POST JSON {"value": "..."} so the number never appears in a URL. |
curl "https://swekit-api.erikssonanton2001.workers.dev/v1/personnummer?value=811218-9876&at=2026-10-16"
GET /v1/orgnrValidate organisationsnummer, derive legal form and Swedish VAT number (SE#########01)
value | string | Org no. like 556036-0793, 5560360793, SE556036079301 |
curl "https://swekit-api.erikssonanton2001.workers.dev/v1/orgnr?value=556036-0793"
GET /v1/bankgiroValidate bankgiro number (Luhn) and format it
value | string | 7-8 digits, with or without dash |
curl "https://swekit-api.erikssonanton2001.workers.dev/v1/bankgiro?value=5402-9681"
GET /v1/plusgiroValidate plusgiro number
value | string | 2-8 digits |
curl "https://swekit-api.erikssonanton2001.workers.dev/v1/plusgiro?value=4-8"
GET /v1/ocr/validateValidate an OCR / payment reference (Luhn check digit, optional length digit)
value | string | OCR digits |
curl "https://swekit-api.erikssonanton2001.workers.dev/v1/ocr/validate?value=12351"
GET /v1/ocr/generateGenerate an OCR reference from a base number
base | string | Digits, e.g. invoice number |
length_digit | boolean | Add length digit (default false) |
curl "https://swekit-api.erikssonanton2001.workers.dev/v1/ocr/generate?base=123&length_digit=true"
GET /v1/accountValidate a Swedish bank account (clearing + account, per Bankgirot rules) and convert to IBAN
number | string | Full account digits (clearing first), OR |
clearing | string | Clearing number (4 digits; 5 for Swedbank 8xxx) |
account | string | Account number without clearing |
curl "https://swekit-api.erikssonanton2001.workers.dev/v1/account?clearing=7507&account=1211203"
GET /v1/ibanValidate any IBAN (ISO 13616 mod-97, country length) and identify Swedish banks
value | string | IBAN, spaces allowed |
curl "https://swekit-api.erikssonanton2001.workers.dev/v1/iban?value=SE45 5000 0000 0583 9825 7466"
GET /v1/bicValidate BIC/SWIFT format
value | string | 8 or 11 characters |
curl "https://swekit-api.erikssonanton2001.workers.dev/v1/bic?value=ESSESESS"
GET /v1/clearingLook up bank, BIC, IBAN id and account type for a clearing number
value | string | First 4 digits of the account number |
curl "https://swekit-api.erikssonanton2001.workers.dev/v1/clearing?value=8327"
GET /v1/holidaysSwedish public holidays and eves for a year
year | integer | 1900-2200 (default: current year) |
curl "https://swekit-api.erikssonanton2001.workers.dev/v1/holidays?year=2026"
GET /v1/dateInfo about a date: weekday (sv/en), ISO week, holiday names, business-day status
date | string | YYYY-MM-DD |
mode | string | "bank" (default; midsommarafton, julafton, nyårsafton also excluded) or "work" |
curl "https://swekit-api.erikssonanton2001.workers.dev/v1/date?date=2026-12-24"
GET /v1/business-days/addAdd (or subtract) N business days to a date
date | string | YYYY-MM-DD |
days | integer | Positive or negative, |n| <= 3650 |
mode | string | bank (default) or work |
curl "https://swekit-api.erikssonanton2001.workers.dev/v1/business-days/add?date=2026-12-22&days=2"
GET /v1/business-days/betweenCount business days between two dates
from | string | YYYY-MM-DD |
to | string | YYYY-MM-DD |
mode | string | bank (default) or work |
curl "https://swekit-api.erikssonanton2001.workers.dev/v1/business-days/between?from=2026-10-16&to=2026-11-16"