Skip to main content
POST
/
api
/
brreg
/
companies
/brreg/companies
curl --request POST \
  --url https://api.anysite.io/api/brreg/companies \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "organization_number": "<string>",
  "timeout": 300
}
'
import requests

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

payload = {
"organization_number": "<string>",
"timeout": 300
}
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({organization_number: '<string>', timeout: 300})
};

fetch('https://api.anysite.io/api/brreg/companies', 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",
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([
'organization_number' => '<string>',
'timeout' => 300
]),
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"

payload := strings.NewReader("{\n \"organization_number\": \"<string>\",\n \"timeout\": 300\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")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"organization_number\": \"<string>\",\n \"timeout\": 300\n}")
.asString();
require 'uri'
require 'net/http'

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

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 \"organization_number\": \"<string>\",\n \"timeout\": 300\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
organization_number
string
required
timeout
integer
default:300
Required range: 20 <= x <= 1500

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