Information about persons registered in Sweden
Population Register
https://api.roaring.io/person/2.0/current/{personId}Parameters path
personIdrequired | stringperson id |
Response schema: application/json
https://api.roaring.io/person/2.0/full/{personId}Parameters path
personIdrequired | stringperson id |
Reach out to our support team.

Retrieve and Monitor Identity Data with Population Register API. The Population Register API provides verified identity and residency information, helping businesses strengthen due diligence, meet AML/KYC requirements, and prevent fraud. It enables secure, compliant decision-making by ensuring access to up-to-date personal data. With this API, you can:
Use case:
A financial institution onboarding a new private (B2C) customer uses the Population Register API to instantly verify the customer's identity and address, ensuring fast, secure registration while meeting compliance requirements.
In order to access population registry data through Roaring you need to apply for access via the admin pages of app.roaring.io.
This API requires permission. In order for you to get started you need to apply for this through your account. Access ADMIN, Account information, Permissions. In the message you send to request access please include information on which redirection mode you want to use for your access.
This api has different kinds of access options available. Information can either be fetched directly from the population registry or via cached data from one of our data partners. The reason for having multiple ways of fetching population registry data is the unstable nature of the government managed API’s.
In order to get access to the government managed API’s for population registry information you need a permission from the tax authority (Skatteverket). Roaring will help you with the application process towards Skatteverket this usually takes 2-3 weeks from start to finish.
The cached version of the population registry is updated from the population registry on a daily basis at our data partner and does not need an access application to any third party. The caveat with the cached version of the population registry is that it doesn’t include people with coordination number (samordningsnummer) and people under the age of 16.
NOTE: Important to notice is that the cached version of the population registry does not include people with coordination number (samordningsnummer) and people under the age of 16.
Having access to a cached source for the population registry gives us the flexibility of some different setup options for usage and gives you the option of choosing how you want the API to handle your request. There are (at the moment) three different redirect modes to the API:
NEVER The API directly call the government population registry API for every request.
FALLBACK The API directly calls the government population registry API for every request. But if there is an error returned or if the call takes more than one second, the call is redirected to our data partner´s API to retrieve a response from the cached population registry record.
ALWAYS The API always redirect the calls to our data partners API to retrieve a response from the cached population registry. This option does not need you to apply for population registry access but can be added to your account directly
Important note: There is some data difference between the government managed API’s and our Fallback data partners API. Below is the limitations of the Fallback (cached copy)
General:
Data details which are not available in the fallback/cached copy
The population register API is built against SPAR schemaversion "2021.1" while the population register webhook is built against schemaversion "2019.1.".
Note that small discrepancies can occur between these two versions.
Below is a list of available deregistration codes for a person.
Code | Explanation (Svenska) | Explanation (English) | Notes |
|---|---|---|---|
| AS | Annullerat samordningsnummer | Annulled Coordination Number | — |
| AV | Avliden | Deceased | — |
| FI | Falsk identitet | False identity | — |
| GN | Bytt personnummer | Changed social security number | Reference is made to the new number |
| GS | Bytt samordningsnummer | Changed coordination number | Reference is made to the new number |
| OB | Försvunnen | Disappeared | — |
| TA | Teknisk avregistrering | Technical deregistration | — |
| UV | Utvandrad | Emigrated | — |
| A | Avliden | Deceased | Old code, corresponds to the new code AV |
| G | Bytt personnummer | Changed social security number | Old code, corresponds to the new codes GN/GS. Reference is made to the new number |
Rows per page
Countries are written as a string, based on the code table in the pdf document "Landskoder i folkbokföringen", published here: Skatteverket
Below is a list of counties and municipalities. The first two digits = county. The last two digits = municipality(commune)
Code | Name |
|---|---|
| 01 | Stockholms län |
| 0114 | Upplands Väsby |
| 0115 | Vallentuna |
| 0117 | Österåker |
| 0120 | Värmdö |
| 0123 | Järfälla |
| 0125 | Ekerö |
| 0126 | Huddinge |
| 0127 | Botkyrka |
| 0128 | Salem |
Rows per page
Code | Explanation (Svenska) | Explanation (English) |
|---|---|---|
| PERSONNUMMER | Personnummer | Swedish national social security number |
| SAMORDNINGSNUMMER | Samordningsnummer | Coordination number |
| IMMUNITETSNUMMER | Immunitetsnummer | Immunity number |
Code | Explanation (Svenska) | Explanation (English) |
|---|---|---|
| MUNICIPAL | Personen saknar bostad, men nås via adressen | The person does not have a residence, but can be reached via the address |
| RESIDENTIAL | Folkbokföringsadressen är där personen är folkbokörd | The residential address is where the person lives |
| UNKNOWN | Ej känt var personen bor | The person does not have a known residence |
Source: Statistiska centralbyrån