ssb

v4.0.0
Use Statistics Norway's API

js-standard-style

ssb

Node.js/CLI app for Statistics Norway’s API

The data is available through the NLOD License

Installation

$ npm install ssb

Or globally if you want to use the CLI app

$ npm install ssb -g

Usage - Module

Pass an object with params.

dataset ID of dataset required

format Format of response. csv og json (default)

lang Language of response. en or no (default)

var ssb = require('ssb')
var options = {dataset: '1120'}

ssb(options, function (error, data) {
  if (error) {
    console.error(error)
  } else {
    console.log(data)
  }
})

Usage - CLI

$ ssb --dataset=<dataset>

Optional supply other arguments.

See http://www.ssb.no/en/omssb/tjenester-og-verktoy/api/brukerveiledning for details

$ ssb --dataset=<dataset> --format=<json|csv> --lang=<no|en>`

Test

$ npm test

License

MIT

Metadata

  • MIT
  • >=12.16.3
  • Geir Gåsodden
  • released 5/15/2020

Downloads

Maintainers