Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Repository files navigation

Build Statusjs-standard-style

node-dsf

Node.js module for looking up data from DSF (Det sentrale folkeregister). DSF is register of residents in Norway.

To obtain login credentials and other permissions go to infotorg.no

Installation

From npm

$ npm i node-dsf

Usage

Promises

constdsfLookup=require('node-dsf')constconfig={url: 'http://ws-test.infotorg.no/xml/ErgoGroup/DetSentraleFolkeregister1_4/2015-08-10/DetSentraleFolkeregister1_4.wsdl',// PROD url: 'http://ws.infotorg.no/xml/ErgoGroup/DetSentraleFolkeregister1_4/2015-08-10/DetSentraleFolkeregister1_4.wsdl',namespaceBrukersesjon: 'http://ws.infotorg.no/xml/Admin/Brukersesjon/2006-07-07/Brukersesjon.xsd',distribusjonskanal: 'PTP',systemnavn: 'systemnavn',brukernavn: 'brukernavn',passord: 'passord'}constmethod='hentDetaljer'// See supported methodsconstquery={saksref: 'your-reference',foedselsnr: '26118633333',// requires this or foedselsdatofoedselsdato: '261186',// requires this or foedselsnretternavn: 'Enge',fornavn: 'Jonas'}constoptions={
method,
config,
query
}dsfLookup(options).then(data=>console.log(JSON.stringify(data))).catch(error=>console.error(error))

Callback

constdsfLookup=require('node-dsf')constconfig={url: 'http://ws-test.infotorg.no/xml/ErgoGroup/DetSentraleFolkeregister1_4/2015-08-10/DetSentraleFolkeregister1_4.wsdl',// PROD url: 'http://ws.infotorg.no/xml/ErgoGroup/DetSentraleFolkeregister1_4/2015-08-10/DetSentraleFolkeregister1_4.wsdl',namespaceBrukersesjon: 'http://ws.infotorg.no/xml/Admin/Brukersesjon/2006-07-07/Brukersesjon.xsd',distribusjonskanal: 'PTP',systemnavn: 'systemnavn',brukernavn: 'brukernavn',passord: 'passord'}constmethod='hentDetaljer'// See supported methodsconstquery={saksref: 'your-reference',foedselsnr: '26118633333',// requires this or foedselsdatofoedselsdato: '261186',// requires this or foedselsnretternavn: 'Enge',fornavn: 'Jonas'}constoptions={
method,
config,
query
}dsfLookup(options,function(error,data){if(error){console.error(error)}console.log(JSON.stringify(data))})

Supported methods

You must get access to these methods from both skattedirektoratet and evry (see https://www.infotorg.no/)

(Don't be in a hurry)

  • hentDetaljer
  • hentDetaljer_v2
  • hentForeldre
  • hentForeldre_v2
  • hentRelatertePersoner
  • hentRelatertePersoner_v2
  • hentBarn
  • hentBarn_v2
  • hentEktefelle
  • hentEktefelle_v2
  • hentKjernefamilie
  • hentKjernefamilie_v2

License

MIT

About

Node.js module for looking up data from DSF (Det sentrale folkeregister)

Resources

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages