# Company lookup

> POST /company finds a company in the official business register of its country by registration number, VAT number or name, and returns one normalized record.

`POST https://api.qelka.com/v1/company`

Look up a company by its registration number, its VAT number or its name, and get one record in the same shape for every country: legal name, trade names, identifiers, status with dates, legal form, registered address, activity code with its label, headcount band, share capital, officers where the registry publishes them, LEI, and the registry that answered with its licence and the time it answered. National registries are read at request time; every other country is answered from the GLEIF LEI index. Each lookup that finds a company costs 1 credit; not found, invalid, unsupported and unavailable answers are free.

## Request

Send exactly one of `id`, `vat` or `name`.

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `id` | string | One of `id`, `vat` or `name` | none | Registration number in the registry of `country`: SIREN or SIRET (FR), company number (GB), organisasjonsnummer (NO), Business ID (FI), IČO (CZ), KRS number (PL). In other countries, the number the business register gives the company, as GLEIF records it. A 20-character LEI works without `country`. 1 to 40 characters; spaces, dots and hyphens are ignored. |
| `vat` | string | One of `id`, `vat` or `name` | none | VAT number with its country prefix, 4 to 40 characters. Numbers of countries with a registry connection lead to the full registry record; other EU numbers are checked with VIES. |
| `name` | string | One of `id`, `vat` or `name` | none | Company name to search for, 2 to 200 characters, with `country`. The best match is returned in full, and up to 10 candidates in `matches`. |
| `country` | string | With `name`, and with `id` unless it is an LEI | none | ISO 3166-1 alpha-2 country of the company, such as `FR`. Lower case is accepted. |
| `fresh` | boolean | No | `false` | `true` skips the 24-hour result cache and asks the registry again. |

A body with more than one of `id`, `vat` and `name`, or with none, is a `400 invalid_request`. A `name`, or an `id` that is not an LEI, without `country` is a `422 unprocessable_input`. Each registry call has a 8-second budget and a lookup can make several, so every snippet sets a 30-second client timeout.

```bash title="cURL"
curl https://api.qelka.com/v1/company \
  --max-time 30 \
  -H "Authorization: Bearer $QELKA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id": "552081317", "country": "FR"}'
```
```javascript title="Node.js"
const response = await fetch('https://api.qelka.com/v1/company', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.QELKA_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ id: '552081317', country: 'FR' }),
  signal: AbortSignal.timeout(30_000),
})
const result = await response.json()
console.log(result)
```
```python title="Python"
import os

import requests

api_key = os.environ["QELKA_API_KEY"]
response = requests.post(
    "https://api.qelka.com/v1/company",
    headers={"Authorization": f"Bearer {api_key}"},
    json={"id": "552081317", "country": "FR"},
    timeout=30,
)
result = response.json()
print(result)
```
```php title="PHP"
<?php
$ch = curl_init('https://api.qelka.com/v1/company');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('QELKA_API_KEY'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => json_encode(['id' => '552081317', 'country' => 'FR']),
    CURLOPT_TIMEOUT => 30,
]);
$result = json_decode(curl_exec($ch), true);
print_r($result);
```
```go title="Go"
package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	"net/http"
	"os"
	"time"
)

func main() {
	payload, _ := json.Marshal(map[string]any{"id": "552081317", "country": "FR"})
	request, _ := http.NewRequest(http.MethodPost, "https://api.qelka.com/v1/company", bytes.NewReader(payload))
	request.Header.Set("Authorization", "Bearer "+os.Getenv("QELKA_API_KEY"))
	request.Header.Set("Content-Type", "application/json")

	client := &http.Client{Timeout: 30 * time.Second}
	response, err := client.Do(request)
	if err != nil {
		panic(err)
	}
	defer response.Body.Close()

	var result map[string]any
	if err := json.NewDecoder(response.Body).Decode(&result); err != nil {
		panic(err)
	}
	fmt.Println(result)
}
```
```ruby title="Ruby"
require 'json'
require 'net/http'

uri = URI('https://api.qelka.com/v1/company')
request = Net::HTTP::Post.new(uri)
request['Authorization'] = "Bearer #{ENV.fetch('QELKA_API_KEY')}"
request['Content-Type'] = 'application/json'
request.body = JSON.generate({ id: '552081317', country: 'FR' })

response = Net::HTTP.start(uri.host, uri.port, use_ssl: true, read_timeout: 30) do |http|
  http.request(request)
end
result = JSON.parse(response.body)
puts result
```

## Response

Every lookup gets a `200`, found or not. Read `status` first: `found`, `not_found`, `invalid`, `unsupported` or `unavailable`. Fields a registry does not publish are `null`, or an empty list.

| Field | Type | Description |
|---|---|---|
| `id` | string | Identifier of this lookup: `lkp_` followed by 26 characters. |
| `object` | string | Always `company`. |
| `input` | string | The `id`, `vat` or `name` you sent, without surrounding spaces. |
| `query` | string | `id`, `vat` or `name`: how the lookup was made. |
| `status` | string | `found`, `not_found`, `invalid`, `unsupported` or `unavailable`. Only `found` is billed. |
| `reason` | string or null | Why no record is returned. `null` when one is found. See [Act on the status](#act-on-the-status). |
| `country` | string or null | ISO 3166-1 alpha-2 country of the registry. |
| `legal_name` | string or null | The registered legal name. |
| `trade_names` | array of strings | Trade names, acronyms, auxiliary and parallel names. |
| `previous_names` | array of strings | Former names, when the registry lists them. |
| `identifiers` | array of objects | Every identifier the registry gives. |
| `identifiers.type` | string | `siren`, `siret`, `orgnr`, `business_id`, `ico`, `krs`, `nip`, `regon`, `company_number`, `vat`, `lei`, `registered_as`, `rna` or `eu_id`. |
| `identifiers.value` | string | The identifier, without spaces. |
| `company_status` | string or null | `active`, or `closed` (struck off, dissolved, ceased). `null` when the registry does not say. |
| `status_detail` | string or null | Insolvency or winding-up state when the registry reports one: liquidation, bankruptcy, administration, reorganisation, or the status wording of Companies House. |
| `incorporated_on` | string or null | Date of creation or incorporation, `YYYY-MM-DD`. |
| `closed_on` | string or null | Date the company closed, `YYYY-MM-DD`. |
| `legal_form` | object or null | The legal form. |
| `legal_form.code` | string or null | The code of the legal form in the national list, such as an INSEE category. |
| `legal_form.name` | string or null | The name of the legal form, in the registry's language. |
| `registered_address` | object or null | The registered office. |
| `registered_address.lines` | array of strings | Street lines. |
| `registered_address.postal_code` | string or null | Postal code. |
| `registered_address.city` | string or null | City. |
| `registered_address.region` | string or null | Region or county, when the registry gives one. |
| `registered_address.country` | string or null | ISO 3166-1 alpha-2 code. |
| `activity` | object or null | The main activity. |
| `activity.code` | string | Main activity code as the registry publishes it. |
| `activity.scheme` | string | Classification of the code: `NAF rév. 2`, `UK SIC 2007`, `SN`, `TOL`, `CZ-NACE`, `PKD` or `NACE`. |
| `activity.label` | string or null | Label from the registry, in its language, or the English NACE Rev. 2 label when the registry gives none. |
| `activity.nace` | string or null | NACE Rev. 2 class, when the national code maps to one. |
| `headcount` | object or null | The headcount band. |
| `headcount.min` | integer or null | Lower bound of the band. |
| `headcount.max` | integer or null | Upper bound. `null` for an open-ended band such as 10,000 and more; equal to `min` when the registry publishes an exact count. |
| `headcount.year` | string or null | Year the band refers to. |
| `share_capital` | object or null | Share capital. |
| `share_capital.amount` | number | Amount. |
| `share_capital.currency` | string | ISO 4217 currency code. |
| `website` | string or null | Website, when the registry lists one. |
| `officers` | array of objects or null | Current officers and directors, up to 50. `null` when the registry does not publish them, an empty list when it publishes none. |
| `officers.name` | string | Name of the person or company. |
| `officers.role` | string or null | Role as the registry words it, in its language. |
| `officers.kind` | string | `person` or `company`. |
| `officers.appointed_on` | string or null | Date of appointment, `YYYY-MM-DD`. |
| `officers.birth_date` | string or null | Year and month of birth, `YYYY-MM`, when the registry publishes it. Never the full date. |
| `officers.identifier` | string or null | Registration number of a company officer, such as the SIREN of an auditor. |
| `financials` | object or null | Latest revenue and net income the registry publishes (France). |
| `financials.year` | string | Financial year. |
| `financials.revenue` | number or null | Revenue. |
| `financials.net_income` | number or null | Net income. |
| `financials.currency` | string | ISO 4217 currency code. |
| `establishments` | object or null | Number of establishments (France). |
| `establishments.total` | integer | Every establishment ever registered. |
| `establishments.open` | integer | Establishments open today. |
| `lei` | string or null | Legal Entity Identifier, from GLEIF, when the company has one. |
| `matches` | array of objects or null | For a name search: up to 10 candidates, best first. `null` otherwise. |
| `matches.name` | string | Name of the candidate. |
| `matches.id` | string | Identifier to send as `id`, with `country`, for the full record. |
| `matches.country` | string | ISO 3166-1 alpha-2 code. |
| `matches.city` | string or null | City of the registered office. |
| `matches.company_status` | string or null | `active` or `closed`. |
| `source` | object or null | The registry that answered. `null` when none did. |
| `source.registry` | string | `fr_sirene`, `gb_companies_house`, `no_brreg`, `fi_prh`, `cz_ares`, `pl_krs`, `gleif` or `vies`. |
| `source.name` | string | Name of the register. |
| `source.url` | string | Where to see the register. |
| `source.license` | string | The terms the registry publishes its data under. |
| `source.fetched_at` | string | When the registry was read, ISO 8601. A cached result keeps the time of the original read. |
| `credits_used` | integer | Credits debited for this call: 1 for a `found` answer with a live key, else `0`. |
| `cached` | boolean | `true` when the answer came from the 24-hour cache. |

```json title="Response"
{
  "id": "lkp_01M8CEK7VK89EW6H0XK5NB2S54",
  "object": "company",
  "input": "552081317",
  "query": "id",
  "status": "found",
  "reason": null,
  "country": "FR",
  "legal_name": "ELECTRICITE DE FRANCE",
  "trade_names": ["EDF"],
  "previous_names": [],
  "identifiers": [
    { "type": "siren", "value": "552081317" },
    { "type": "siret", "value": "55208131766522" },
    { "type": "vat", "value": "FR03552081317" },
    { "type": "lei", "value": "549300X3UK4GG3FNMO06" }
  ],
  "company_status": "active",
  "status_detail": null,
  "incorporated_on": "1955-01-01",
  "closed_on": null,
  "legal_form": { "code": "5599", "name": "SA à conseil d'administration (s.a.i.)" },
  "registered_address": {
    "lines": ["22-30", "22 AVENUE DE WAGRAM"],
    "postal_code": "75008",
    "city": "PARIS",
    "region": null,
    "country": "FR"
  },
  "activity": { "code": "35.11Z", "scheme": "NAF rév. 2", "label": "Production of electricity", "nace": "35.11" },
  "headcount": { "min": 10000, "max": null, "year": "2024" },
  "share_capital": null,
  "website": null,
  "officers": [
    { "name": "CLAIRE PEDINI (BACONNET)", "role": "Administrateur", "kind": "person", "appointed_on": null, "birth_date": null, "identifier": null },
    { "name": "CHRISTOPHE BEGUINET", "role": "Administrateurs représentant les salariés", "kind": "person", "appointed_on": null, "birth_date": null, "identifier": null }
  ],
  "financials": { "year": "2024", "revenue": 118690000000, "net_income": 11854000000, "currency": "EUR" },
  "establishments": { "total": 9159, "open": 3511 },
  "lei": "549300X3UK4GG3FNMO06",
  "matches": null,
  "source": {
    "registry": "fr_sirene",
    "name": "Annuaire des Entreprises (INSEE Sirene and the national business register RNE)",
    "url": "https://annuaire-entreprises.data.gouv.fr",
    "license": "Licence Ouverte 2.0",
    "fetched_at": "2026-11-26T17:31:31.672Z"
  },
  "credits_used": 1,
  "cached": false
}
```

## Coverage

These registries are read directly. Every field of the response that a registry does not publish is `null` or an empty list.

| Country | Registry | Look up by | Name search | Officers | Fields returned |
| --- | --- | --- | --- | --- | --- |
| France (FR) | [Annuaire des Entreprises (INSEE Sirene and the national business register RNE)](https://annuaire-entreprises.data.gouv.fr) | SIREN, SIRET, VAT number | Yes | Yes | trade names, status, incorporation date, closure date, legal form, registered address, activity code, headcount band, revenue and net income, establishments, VAT number, LEI |
| Norway (NO) | [Enhetsregisteret, the Central Coordinating Register for Legal Entities](https://data.brreg.no/enhetsregisteret/oppslag/enheter) | Organisasjonsnummer, VAT number | Yes | Yes | previous names, status, incorporation date, closure date, legal form, registered address, activity code, headcount band, share capital, website, VAT number, LEI |
| Finland (FI) | [YTJ Business Information System, open data](https://tietopalvelu.ytj.fi) | Business ID (Y-tunnus), VAT number | Yes | No | trade names, previous names, status, incorporation date, closure date, legal form, registered address, activity code, website, VAT number, LEI |
| Czechia (CZ) | [ARES, the Administrative Register of Economic Subjects](https://ares.gov.cz) | IČO, VAT number | Yes | Yes | previous names, status, incorporation date, closure date, legal form, registered address, activity code, headcount band, share capital, VAT number, LEI |
| Poland (PL) | [National Court Register (KRS), current extract](https://ekrs.ms.gov.pl) | KRS number | No | No | status, incorporation date, legal form, registered address, activity code, share capital, website, LEI |
| United Kingdom (GB) | [Companies House register](https://find-and-update.company-information.service.gov.uk), coming soon | Not connected yet: lookups in this country answer `unavailable` with the reason `registry_not_configured`, free | No | No | None yet |
| Any other country | [Global LEI Index](https://search.gleif.org) | LEI, Registration number held by GLEIF | Yes | No | status, incorporation date, legal form, registered address, LEI |
| Other EU member states | [VIES VAT number validation](https://ec.europa.eu/taxation_customs/vies/) | VAT number | No | No | registered address, VAT number |

A VAT number of a country in this table leads to the registry record when the registry can be searched by VAT number. Other EU VAT numbers are checked with VIES, which returns a name and an address at most, and only when the member state shares them. A United Kingdom or Swiss VAT number cannot be tied to a registry record: send the company number instead.

## Act on the status

| `status` | `reason` | What it means | What to do |
|---|---|---|---|
| `found` | `null` | The registry, GLEIF or VIES returned a record. | Check `company_status` and `status_detail`. After a name search, confirm that `legal_name` and the address are the company you meant: the other candidates are in `matches`. |
| `invalid` | `invalid_format` | The number does not have the format of this registry. No registry is called. | Ask for the number again, or check `country`. |
| `invalid` | `invalid_checksum` | The check digit does not match. No registry is called. | It is usually a typo: ask the user to check each digit. |
| `not_found` | `not_in_registry` | The number is well formed but the registry has no company under it. | Check `country`, or search by name. |
| `not_found` | `no_match` | No company name matches the search. `matches` is empty. | Try the legal name as registered, legal form included. |
| `not_found` | `not_in_gleif` | For a country without a registry connection: GLEIF has no record. The company can still exist. | Ask for an LEI, or check the national register yourself. |
| `not_found` | `vat_not_registered` | VIES says the VAT number is not active. | Ask for the number again. |
| `not_found` | `name_search_unsupported` | The registry has no name search, and GLEIF found no match. | Send the registration number. |
| `unsupported` | `vat_not_linked` | The VAT number is valid but cannot be tied to a registry record: VIES returned no name, or the country (GB, CH) keeps VAT apart from its register. | Send the registration number. |
| `unavailable` | `registry_unavailable` | The registry did not answer in time, or answered with an error. | Retry later. |
| `unavailable` | `registry_not_configured` | This registry is not connected on our side yet. | Retry later, or use another identifier. |

Only `found` is billed. Test keys never call a registry: every request returns the sample company `EXAMPLE TRADING`, with the identifier type of the registry of `country`.

## How names are matched

A name search asks the registry of `country` for candidates, then ranks them: an exact match first, then the same name without its legal form (`SA`, `GmbH`, `Ltd`, `AS`, `Oy`, `s.r.o.`, `sp. z o.o.` and the like), then names that start with or contain the search, with active companies ahead of closed ones. The best candidate's full record is returned, and every candidate is in `matches`. When the registry has no name search, or for a country without a registry connection, GLEIF is searched instead.

## Officers and personal data

Officers come from the public part of each register: names, roles, appointment dates, and the year and month of birth when the registry publishes them. The full date of birth and home addresses are never returned. Beneficial ownership registers are not read. Officers are public data about people: use them to know who you deal with, not to profile individuals.

## Where the data comes from

Each registry is read at request time and named in `source`, with the terms it publishes its data under in `source.license`. The open licences, such as the Licence Ouverte, the Open Government Licence, NLOD and CC BY 4.0, ask you to credit the source when you reuse the data. Activity labels missing from a registry come from the Eurostat NACE Rev. 2 list. See the [data sources page](https://qelka.com/data-sources).

## Examples

### Search by name

Send `name` with `country`. The best candidate's full record comes back, and every candidate is in `matches`, best first.

```bash title="cURL"
curl https://api.qelka.com/v1/company \
  --max-time 30 \
  -H "Authorization: Bearer $QELKA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Equinor", "country": "NO"}'
```
```javascript title="Node.js"
const response = await fetch('https://api.qelka.com/v1/company', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.QELKA_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ name: 'Equinor', country: 'NO' }),
  signal: AbortSignal.timeout(30_000),
})
const result = await response.json()
console.log(result.legal_name, result.matches)
```
```python title="Python"
import os

import requests

api_key = os.environ["QELKA_API_KEY"]
response = requests.post(
    "https://api.qelka.com/v1/company",
    headers={"Authorization": f"Bearer {api_key}"},
    json={"name": "Equinor", "country": "NO"},
    timeout=30,
)
result = response.json()
print(result["legal_name"], result["matches"])
```

### Look up a VAT number

Send `vat` alone: the country comes from its prefix. A Norwegian number with or without `MVA` leads to the Enhetsregisteret record.

```bash title="cURL"
curl https://api.qelka.com/v1/company \
  --max-time 30 \
  -H "Authorization: Bearer $QELKA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"vat": "NO923609016MVA"}'
```
```javascript title="Node.js"
const response = await fetch('https://api.qelka.com/v1/company', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.QELKA_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ vat: 'NO923609016MVA' }),
  signal: AbortSignal.timeout(30_000),
})
const result = await response.json()
console.log(result)
```
```python title="Python"
import os

import requests

api_key = os.environ["QELKA_API_KEY"]
response = requests.post(
    "https://api.qelka.com/v1/company",
    headers={"Authorization": f"Bearer {api_key}"},
    json={"vat": "NO923609016MVA"},
    timeout=30,
)
result = response.json()
print(result)
```

### Catch a mistyped number

The last digit of this SIREN is wrong, so its Luhn check fails and no registry is called. The answer is free.

```bash title="cURL"
curl https://api.qelka.com/v1/company \
  --max-time 30 \
  -H "Authorization: Bearer $QELKA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id": "552081318", "country": "FR"}'
```

```json title="Response"
{
  "id": "lkp_01M8CEMB3H2K9XQ6V4T7R1N5WD",
  "object": "company",
  "input": "552081318",
  "query": "id",
  "status": "invalid",
  "reason": "invalid_checksum",
  "country": "FR",
  "legal_name": null,
  "trade_names": [],
  "previous_names": [],
  "identifiers": [],
  "company_status": null,
  "status_detail": null,
  "incorporated_on": null,
  "closed_on": null,
  "legal_form": null,
  "registered_address": null,
  "activity": null,
  "headcount": null,
  "share_capital": null,
  "website": null,
  "officers": null,
  "financials": null,
  "establishments": null,
  "lei": null,
  "matches": null,
  "source": null,
  "credits_used": 0,
  "cached": false
}
```

## Errors

| Status | Type | When |
|---|---|---|
| 400 | [invalid_request](https://qelka.com/docs/errors#invalid_request) | More than one of `id`, `vat` and `name`, or none; a field out of its length limits; a `country` that is not two letters; a body that is not a JSON object, or a field the request table does not list |
| 401 | [invalid_api_key](https://qelka.com/docs/errors#invalid_api_key) | The key is missing, unknown or revoked |
| 402 | [insufficient_credits](https://qelka.com/docs/errors#insufficient_credits) | Your balance is less than 1 credit (live keys only) |
| 403 | [forbidden](https://qelka.com/docs/errors#forbidden) | The key is restricted to other endpoints |
| 405 | [invalid_request](https://qelka.com/docs/errors#invalid_request) | The method is not `POST` |
| 422 | [unprocessable_input](https://qelka.com/docs/errors#unprocessable_input) | `name`, or an `id` that is not an LEI, without `country` |
| 429 | [rate_limited](https://qelka.com/docs/errors#rate_limited) | Too many requests: wait `Retry-After` seconds |
| 500 | [internal_error](https://qelka.com/docs/errors#internal_error) | Unexpected error on our side: retry with backoff |

No error is billed. A registry that does not answer is not an error: it is a `200` with `status: "unavailable"`, free.

## Related

- [Company lookup API](https://qelka.com/products/company-lookup)
- Free tools: [Company lookup](https://qelka.com/tools/company-lookup), [SIREN lookup](https://qelka.com/tools/siren-lookup), [Business owner search](https://qelka.com/tools/business-owner-search), [Org number lookup](https://qelka.com/tools/org-number-lookup), [IČO lookup](https://qelka.com/tools/ico-lookup)
- [LEI lookup](https://qelka.com/docs/api-reference/lei), [VAT validation](https://qelka.com/docs/api-reference/vat), [Sanctions screening](https://qelka.com/docs/api-reference/sanctions)
- [Batch](https://qelka.com/docs/api-reference/batch): up to 100 lookups in one call, each item with `type: "company"`
- [Bulk](https://qelka.com/docs/api-reference/bulk): a whole file of numbers or names with `type=company`
- [Caching](https://qelka.com/docs/caching), [Errors](https://qelka.com/docs/errors), [Test mode](https://qelka.com/docs/test-mode)
