NAME

no_brreg.pl

DESCRIPTION

Uses NOLookup::Brreg::DataLookup to perform lookup on an orgnumber or an orgname and fetch and print the matching information.

The data found are stored as NOLookup::Brreg::Entry data objects.

USAGE

no_brreg.pl -o 985821585

no_brreg.pl -n norid Note that only orgs starting with -n are listed due to a limitation in the Brreg API service.

no_brreg.pl -f 2017-04-29 -t 2017-04-30 -i 2 -p 1

Up to a maximum of 1000 matches (10 json pages) are listed.

Examples:

perl no_brreg.pl -o 985821585

   Found 1 matching entries:
   985821585  AS      2003-06-30      UNINETT NORID AS

perl no_brreg.pl -n uninett 

   Found 3 matching entries:
   968100211  AS      1995-02-20      UNINETT AS
   985821585  AS      2003-06-30      UNINETT NORID AS
   814864332  AS      2015-01-26      UNINETT SIGMA2 AS

   If name consists of several words, hits on each word is also
   found.

perl no_brreg.pl -n uninett -u
   Found 3 matching entries:
   973897187 BEDR    1995-02-23      UNINETT AS      (UnderEnhet)
   986671773 BEDR    2004-03-11      UNINETT NORID AS        (UnderEnhet)
   987631473 BEDR    2004-12-22      UNINETT SIGMA2 AS       (UnderEnhet)

perl no_brreg.pl -n "regnskap as" -u
   Found 3 matching entries:
   973897187 BEDR    1995-02-23      UNINETT AS      (UnderEnhet)
   986671773 BEDR    2004-03-11      UNINETT NORID AS        (UnderEnhet)
   987631473 BEDR    2004-12-22      UNINETT SIGMA2 AS       (UnderEnhet)

   Lists max. 3 pages, each 100 hits. Default max. pages are 10, e.g. 1000 hits.

perl no_brreg.pl  -f 2017-04-10 -t 2017-04-11

   Found 167 matching entries:
   917416699  ENK     2017-04-10      ARVID KROGSTAD
   917853711  FLI     2017-04-10      DIA- KJEMISKE AVD. 231
   818822022  ENK     2017-04-10      ANDERSEN ENTERTAINMENT
    :

perl no_brreg.pl  -d 2017-04-10
   Found 167 matching entries:
   917416699  ENK     2017-04-10      ARVID KROGSTAD

Arguments:

-o: orgnumber (9 digits)

-n: orgname (complete name or start of name, minimum 2 chars)

To list entries registered in period from/to date:
-f: from registration date (2017-04-10)
-t: to registration date   (2017-04-11)

To list entries updated/changed since update date/id:
-d: from update date       (2017-04-11)
-x: from update id         (1234)

When -n, -f, -t, -d or -i is specifed, also:
-u: search in underenheter, else enheter.
-p: max number of pages (1..x, default 10). 100 hits per page.
-i: page index (0..x), which page to start on

Other:
-h: help
-v: verbose dump of the complete JSON data structure