Skip to main content
POST
/
api
/
brreg
/
companies
/
search
/brreg/companies/search
curl --request POST \
  --url https://api.anysite.io/api/brreg/companies/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "name": "<string>",
  "organization_number": "<string>",
  "industry_code": "<string>",
  "municipality_number": "<string>",
  "county": "<string>",
  "from_employee_count": 1,
  "to_employee_count": 1,
  "from_registration_date": "<string>",
  "to_registration_date": "<string>",
  "bankruptcy": true,
  "under_liquidation": true,
  "under_forced_liquidation": true,
  "registered_in_business_register": true,
  "registered_in_vat_register": true,
  "registered_in_voluntary_register": true,
  "registered_in_foundation_register": true
}
'
import requests

url = "https://api.anysite.io/api/brreg/companies/search"

payload = {
"count": 2,
"timeout": 300,
"name": "<string>",
"organization_number": "<string>",
"industry_code": "<string>",
"municipality_number": "<string>",
"county": "<string>",
"from_employee_count": 1,
"to_employee_count": 1,
"from_registration_date": "<string>",
"to_registration_date": "<string>",
"bankruptcy": True,
"under_liquidation": True,
"under_forced_liquidation": True,
"registered_in_business_register": True,
"registered_in_vat_register": True,
"registered_in_voluntary_register": True,
"registered_in_foundation_register": True
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
count: 2,
timeout: 300,
name: '<string>',
organization_number: '<string>',
industry_code: '<string>',
municipality_number: '<string>',
county: '<string>',
from_employee_count: 1,
to_employee_count: 1,
from_registration_date: '<string>',
to_registration_date: '<string>',
bankruptcy: true,
under_liquidation: true,
under_forced_liquidation: true,
registered_in_business_register: true,
registered_in_vat_register: true,
registered_in_voluntary_register: true,
registered_in_foundation_register: true
})
};

fetch('https://api.anysite.io/api/brreg/companies/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/brreg/companies/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'count' => 2,
'timeout' => 300,
'name' => '<string>',
'organization_number' => '<string>',
'industry_code' => '<string>',
'municipality_number' => '<string>',
'county' => '<string>',
'from_employee_count' => 1,
'to_employee_count' => 1,
'from_registration_date' => '<string>',
'to_registration_date' => '<string>',
'bankruptcy' => true,
'under_liquidation' => true,
'under_forced_liquidation' => true,
'registered_in_business_register' => true,
'registered_in_vat_register' => true,
'registered_in_voluntary_register' => true,
'registered_in_foundation_register' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.anysite.io/api/brreg/companies/search"

payload := strings.NewReader("{\n \"count\": 2,\n \"timeout\": 300,\n \"name\": \"<string>\",\n \"organization_number\": \"<string>\",\n \"industry_code\": \"<string>\",\n \"municipality_number\": \"<string>\",\n \"county\": \"<string>\",\n \"from_employee_count\": 1,\n \"to_employee_count\": 1,\n \"from_registration_date\": \"<string>\",\n \"to_registration_date\": \"<string>\",\n \"bankruptcy\": true,\n \"under_liquidation\": true,\n \"under_forced_liquidation\": true,\n \"registered_in_business_register\": true,\n \"registered_in_vat_register\": true,\n \"registered_in_voluntary_register\": true,\n \"registered_in_foundation_register\": true\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/brreg/companies/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"count\": 2,\n \"timeout\": 300,\n \"name\": \"<string>\",\n \"organization_number\": \"<string>\",\n \"industry_code\": \"<string>\",\n \"municipality_number\": \"<string>\",\n \"county\": \"<string>\",\n \"from_employee_count\": 1,\n \"to_employee_count\": 1,\n \"from_registration_date\": \"<string>\",\n \"to_registration_date\": \"<string>\",\n \"bankruptcy\": true,\n \"under_liquidation\": true,\n \"under_forced_liquidation\": true,\n \"registered_in_business_register\": true,\n \"registered_in_vat_register\": true,\n \"registered_in_voluntary_register\": true,\n \"registered_in_foundation_register\": true\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.anysite.io/api/brreg/companies/search")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"count\": 2,\n \"timeout\": 300,\n \"name\": \"<string>\",\n \"organization_number\": \"<string>\",\n \"industry_code\": \"<string>\",\n \"municipality_number\": \"<string>\",\n \"county\": \"<string>\",\n \"from_employee_count\": 1,\n \"to_employee_count\": 1,\n \"from_registration_date\": \"<string>\",\n \"to_registration_date\": \"<string>\",\n \"bankruptcy\": true,\n \"under_liquidation\": true,\n \"under_forced_liquidation\": true,\n \"registered_in_business_register\": true,\n \"registered_in_vat_register\": true,\n \"registered_in_voluntary_register\": true,\n \"registered_in_foundation_register\": true\n}"

response = http.request(request)
puts response.read_body
[
  {
    "organization_number": "<string>",
    "name": "<string>",
    "@type": "BrregCompany",
    "organization_form": "<string>",
    "organization_form_description": "<string>",
    "registration_date": "<string>",
    "foundation_date": "<string>",
    "statute_date": "<string>",
    "deregistered_date": "<string>",
    "homepage": "<string>",
    "email": "<string>",
    "phone": "<string>",
    "mobile": "<string>",
    "language_form": "<string>",
    "employee_count": 123,
    "has_registered_employee_count": false,
    "business_address": {
      "@type": "BrregAddress",
      "address": [],
      "postal_code": "<string>",
      "city": "<string>",
      "municipality": "<string>",
      "municipality_number": "<string>",
      "country": "<string>",
      "country_code": "<string>"
    },
    "postal_address": {
      "@type": "BrregAddress",
      "address": [],
      "postal_code": "<string>",
      "city": "<string>",
      "municipality": "<string>",
      "municipality_number": "<string>",
      "country": "<string>",
      "country_code": "<string>"
    },
    "industry_code_1": {
      "@type": "BrregIndustryCode",
      "code": "<string>"
    },
    "industry_code_2": {
      "@type": "BrregIndustryCode",
      "code": "<string>"
    },
    "industry_code_3": {
      "@type": "BrregIndustryCode",
      "code": "<string>"
    },
    "sector": {
      "@type": "BrregSector",
      "code": "<string>"
    },
    "capital": {
      "@type": "BrregCapital",
      "capital_amount": 123,
      "capital_currency": "<string>",
      "capital_type": "<string>",
      "share_count": 123,
      "registered_at": "<string>"
    },
    "historic_names": [],
    "purpose": [],
    "activity": [],
    "last_submitted_annual_accounts": "<string>",
    "in_group": false,
    "bankruptcy": false,
    "under_liquidation": false,
    "under_forced_liquidation": false,
    "registered_in_business_register": false,
    "registered_in_vat_register": false,
    "registered_in_foundation_register": false,
    "registered_in_voluntary_register": false,
    "registered_in_party_register": false
  }
]
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required
Required range: x >= 1
timeout
integer
default:300
Required range: 20 <= x <= 1500
name
string | null
organization_number
string | null
organization_form
enum<string> | null
Available options:
AAFY,
ADOS,
ANNA,
ANS,
AS,
ASA,
BA,
BBL,
BEDR,
BO,
BRL,
DA,
ENK,
EOFG,
ESEK,
FKF,
FLI,
FYLK,
GFS,
IKJP,
IKS,
KBO,
KF,
KIRK,
KOMM,
KS,
KTRF,
NUF,
OPMV,
ORGL,
PERS,
PK,
PRE,
SA,
SAM,
SE,
SF,
SPA,
STAT,
STI,
SÆR,
TVAM,
UTLA,
VPFO
industry_code
string | null
municipality_number
string | null
county
string | null
from_employee_count
integer | null
Required range: x >= 0
to_employee_count
integer | null
Required range: x >= 0
from_registration_date
string | null
to_registration_date
string | null
bankruptcy
boolean | null
under_liquidation
boolean | null
under_forced_liquidation
boolean | null
registered_in_business_register
boolean | null
registered_in_vat_register
boolean | null
registered_in_voluntary_register
boolean | null
registered_in_foundation_register
boolean | null

Response

Successful Response

organization_number
string
required
name
string
required
@type
string
default:BrregCompany
organization_form
string | null
organization_form_description
string | null
registration_date
string | null
foundation_date
string | null
statute_date
string | null
deregistered_date
string | null
homepage
string | null
email
string | null
phone
string | null
mobile
string | null
language_form
string | null
employee_count
integer | null
has_registered_employee_count
boolean
default:false
business_address
object | null
postal_address
object | null
industry_code_1
object | null
industry_code_2
object | null
industry_code_3
object | null
sector
object | null
capital
object | null
historic_names
object[]
purpose
string[]
activity
string[]
last_submitted_annual_accounts
string | null
in_group
boolean
default:false
bankruptcy
boolean
default:false
under_liquidation
boolean
default:false
under_forced_liquidation
boolean
default:false
registered_in_business_register
boolean
default:false
registered_in_vat_register
boolean
default:false
registered_in_foundation_register
boolean
default:false
registered_in_voluntary_register
boolean
default:false
registered_in_party_register
boolean
default:false