GET /v1/fetch-organization
fetch-organization
The company profile: basic data and the requested features, by name, register number or entity_id.
Costs and limits
You pay the base price for the basic data plus each requested feature that returns data. AI Mode and Realtime come on top: AI Mode even without a match, Realtime for every successful live fetch.
| What | Credits |
|---|---|
| Company profile with the basic data | 5 |
| Each feature, only when it returns data | 1 to 80 |
| AI Mode, even without a match | +20 |
| Realtime, for every successful live fetch | +10 |
Limit: 60 requests per minute.
What a request actually cost is in every response under meta.request_credit_cost.
Request
Our example request fetches the company profile of Hetzner Online GmbH, Ansbach HRB 6089, with the basic data only. Instead of the name you can also send the register court with the register number, so Ansbach HRB 6089, or the entity_id.
curl -G "https://handelsregister.ai/api/v1/fetch-organization" \ -H "x-api-key: YOUR_API_KEY" \ --data-urlencode 'q=Hetzner Online GmbH'
import requests response = requests.get( "https://handelsregister.ai/api/v1/fetch-organization", headers={"x-api-key": "YOUR_API_KEY"}, params={ "q": "Hetzner Online GmbH", }, ) data = response.json()
const url = new URL("https://handelsregister.ai/api/v1/fetch-organization"); url.searchParams.append("q", "Hetzner Online GmbH"); const response = await fetch(url, { headers: { "x-api-key": "YOUR_API_KEY" }, }); const data = await response.json();
Parameters
| Name | Type | Description | Example |
|---|---|---|---|
| qQuery | stringrequired |
The company: name, register court with register type and register number, or the entity_id. A name matches most reliably with the legal form, and the city if needed. |
Hetzner Online GmbH |
| featureQuery | list of stringoptional |
A feature from the table below. For several features, repeat the parameter or write them comma-separated in features.Plan: shareholders_deepMax
, networkPro / Max
|
related_persons |
| ai_searchQuery | stringoptional |
With on-default you turn on AI Mode. Any other value leaves it off.Values: on-default |
on-default |
| realtime_modeQuery | stringoptional |
With handelsregister-default you query the Handelsregister live (Realtime).Values: handelsregister-default |
handelsregister-default |
| financial_statement_typeQuery | stringoptional |
annual returns only individual statements, consolidated only consolidated statements. With auto or without a value, each financial feature chooses for itself.Values: auto, annual, consolidatedDefault: auto |
consolidated |
| financial_yearsQuery | integeroptional | Number of the latest financial years. Without it you get all available years, for the annual financial statements the latest five.Limits: 1 to 30 |
3 |
| Idempotency-KeyHeader | stringoptional | A value of your own per request. If you repeat the same request with the same key, it is charged only once. More under Limits.Limits: 1 to 128 characters | – |
The two financial parameters apply to the features Financial KPIs, Balance sheet, Profit and loss statement and Annual financial statements. The API rejects an invalid value with 422 before anything is charged.
Features
The basic data always comes. You request everything else as a feature. A feature costs only when it returns data. If it returns null or an empty list, it is free, insolvency_publications included.
Features with a plan label come with the named credit subscription. For other accounts we leave them out without an error, and they cost nothing. The API also ignores unknown feature names.
| Feature | Content | Credits |
|---|---|---|
| related_persons | ManagementManaging directors, management board, Prokura (registered power of attorney) and other registered people, current and former. | 2 |
| shareholders Beta | ShareholdersThe shareholders with share and contribution, plus earlier states. | 5 |
| shareholders_deep Max | Deep ShareholdersThe shareholders per Gesellschafterliste (shareholder list), with shares, nominal amounts and the changes from the previous list. | 80 |
| ubos Beta |
Beneficial owners (UBO)The natural persons behind the company, calculated from the shareholder lists across all levels. Shares that cannot be traced to a person are listed with a reason in unresolved_beneficial_owners.
|
10 |
| shareholdings Beta | ShareholdingsCompanies the company holds shares in, with the share. | 5 |
| mergers_and_acquisitions Beta | Mergers & Acquisitions (M&A)Mergers, spin-offs and business transfers, plus who controls the company. | 20 |
| network Pro / Max Beta | Company networkConnected companies and people through positions and shareholdings. The network reaches two levels deep. | 25 |
| publications |
HistoryThe company's register notices. They come in the key history.
|
1 |
| insolvency_publications | Insolvency noticesNotices from insolvency proceedings. | 5 |
| financial_kpi | Financial KPIsKPIs per financial year, such as revenue, net income and employees. Pro and Max add the extended KPIs. | 1 |
| balance_sheet_accounts | Balance sheetThe balance sheet per financial year with all items. With Max also the activity statements of energy utilities (§ 6b EnWG). | 3 |
| profit_and_loss_account | Profit and loss statementThe profit and loss statement per financial year with all items. | 3 |
| annual_financial_statements | Annual financial statements (Markdown)The annual financial statements in full text as Markdown, with audit details. | 5 |
| annual_financial_statements__html | Annual financial statements (HTML)The same annual financial statements as HTML. | 5 |
| news | NewsArticles from the web about the company. For smaller companies the selection is naturally smaller. | 10 |
| website_content | Website contentThe text of the company website as Markdown. Only together with AI Mode, with no price of its own. | free |
Several features in one request: repeat the feature parameter or write features=related_persons,financial_kpi.
curl -G "https://handelsregister.ai/api/v1/fetch-organization" \ -H "x-api-key: YOUR_API_KEY" \ --data-urlencode 'q=Hetzner Online GmbH' \ --data-urlencode 'feature=related_persons' \ --data-urlencode 'feature=financial_kpi'
import requests response = requests.get( "https://handelsregister.ai/api/v1/fetch-organization", headers={"x-api-key": "YOUR_API_KEY"}, params={ "q": "Hetzner Online GmbH", "feature": ["related_persons", "financial_kpi"], }, ) data = response.json()
const url = new URL("https://handelsregister.ai/api/v1/fetch-organization"); url.searchParams.append("q", "Hetzner Online GmbH"); url.searchParams.append("feature", "related_persons"); url.searchParams.append("feature", "financial_kpi"); const response = await fetch(url, { headers: { "x-api-key": "YOUR_API_KEY" }, }); const data = await response.json();
Response
The response is a JSON object with the basic data. Each requested feature sits next to it as a key of its own. At the end comes meta with the cost of the request and your balance.
Read the fields by their names; the order of the keys can change. Empty values are null or an empty list.
| Field | Meaning |
|---|---|
| entity_id | The ID of the company. Use it to fetch the company profile and documents directly later. |
| name, legal_form, status |
Company name, legal form and status, such as ACTIVE or INSOLVENT.
|
| registration | Register court, register type and register number. |
| address, seat | Business address with coordinates, registered seat according to the register. |
| registration_date | Date of registration, if known. |
| purpose | The registered business purpose (Unternehmensgegenstand), in AI Mode a short summary. |
| industry_classification | Industries according to WZ 2008 and WZ 2025. |
| keywords, products_and_services | Keywords plus the company's products and services. |
| contact_data | Website, phone and email. |
| capital |
Share capital, for an eG the liability amount, with history. For partnerships and sole traders current is null.
|
| representation_scheme | The representation rules, with history. |
| meta | Credits charged for this request and your balance afterwards. |
All fields with meaning, example and availability are in the data catalog, starting with Core data.
1{2 "entity_id": "94eb910fef13f94585c48c263fa446d4",3 "name": "Hetzner Online GmbH",4 "status": "ACTIVE",5 "legal_form": "GmbH",6 "registration": {7 "court": "Ansbach",8 "register_type": "HRB",9 "register_number": "6089"10 },11 "keywords": [12 "Dedicated Server",13 "Cloud Hosting",14 "Webhosting",15 "Colocation",16 "Object Storage",17 "Domainregistrierung",18 "SSL-Zertifikate",19 "Web-Hosting-Unternehmen"20 ],21 "products_and_services": [22 "Dedizierte Root-Server (Dedicated Servers)",23 "Cloud-Server und virtuelle Server",24 "Managed Server",25 "Webhosting (Shared Hosting)",26 "Colocation Rack / Rechenzentrumsflächen",27 "Storage Box / Object Storage / Storage Share",28 "Domain-Registrierung",29 "SSL-Zertifikate",30 "Load Balancer",31 "DNS Console",32 "Registration Robot",33 "Custom Solutions"34 ],35 "industry_classification": {36 "WZ2008": [37 {38 "code": "62.01.0",39 "label": "Erbringung von Dienstleistungen der Informationstechnologie"40 },41 {42 "code": "63.11.0",43 "label": "Datenverarbeitung, Hosting und damit verbundene Tätigkeiten"44 },45 {46 "code": "61.90.0",47 "label": "Telekommunikation, sonstige"48 }49 ],50 "WZ2025": [51 {52 "code": "62.20.1",53 "label": "Erbringung von Beratungsleistungen auf dem Gebiet der Informationstechnologie"54 },55 {56 "code": "46.50.1",57 "label": "Großhandel mit Datenverarbeitungsgeräten, peripheren Geräten und Software"58 },59 {60 "code": "62.90.0",61 "label": "Erbringung von sonstigen Dienstleistungen der Informationstechnologie"62 }63 ]64 },65 "contact_data": {66 "website": "https://www.hetzner.com/",67 "phone_number": "09831 5050",68 "email": "[email protected]"69 },70 "address": {71 "house_number": "25",72 "street": "Industriestraße",73 "postal_code": "91710",74 "city": "Gunzenhausen",75 "county": "Weißenburg-Gunzenhausen",76 "state": "Bayern",77 "country": "DEU",78 "coordinates": {79 "latitude": 49.12483,80 "longitude": 10.7805281 }82 },83 "seat": {84 "city": "Gunzenhausen"85 },86 "registration_date": null,87 "representation_scheme": {88 "current": [89 "Ist nur ein Geschäftsführer bestellt, so vertritt er die Gesellschaft allein. Sind mehrere Geschäftsführer bestellt, so wird die Gesellschaft durch zwei Geschäftsführer oder durch einen Geschäftsführer gemeinsam mit einem Prokuristen vertreten."90 ],91 "history": [92 {93 "value": [94 "Ist nur ein Vorstandsmitglied bestellt, so vertritt es die Gesellschaft allein. Sind mehrere Vorstandsmitglieder bestellt, so wird die Gesellschaft durch zwei Vorstandsmitglieder oder durch ein Vorstandsmitglied gemeinsam mit einem Prokuristen vertreten."95 ],96 "effective_from": "2002-10-15",97 "effective_to": "2015-07-28"98 },99 {100 "value": [101 "Ist nur ein Geschäftsführer bestellt, so vertritt er die Gesellschaft allein. Sind mehrere Geschäftsführer bestellt, so wird die Gesellschaft durch zwei Geschäftsführer oder durch einen Geschäftsführer gemeinsam mit einem Prokuristen vertreten."102 ],103 "effective_from": "2015-07-28",104 "effective_to": null105 }106 ]107 },108 "capital": {109 "current": {110 "amount": 50000,111 "currency": "EUR",112 "kind": "STAMMKAPITAL"113 },114 "history": [115 {116 "value": {117 "amount": 50000,118 "currency": "EUR",119 "kind": "GRUNDKAPITAL"120 },121 "effective_from": "2002-10-15",122 "effective_to": null123 }124 ]125 },126 "purpose": "Die Durchführung von Internet- und Netzwerkdienstleistungen, das Erstellen und Vertreiben von Software, der Handel mit Hard- und Software, der Betrieb einer Werbeagentur,darüber hinaus der Im- und Export von Waren aller Art, soweit sie keiner Einfuhr- oder Ausfuhrbeschränkung unterliegen und soweit keine Genehmigungen erforderlich sind.",127 "meta": {128 "request_credit_cost": 5,129 "credits_remaining": 145130 }131}
Errors
| Status | Cause | What you can do |
|---|---|---|
| 401 | No API key or an invalid one. |
Send the key in the x-api-key header. |
| 402 | Your balance does not cover the maximum price of this request. | We check the maximum price with all requested features and surcharges in advance. Request fewer features or top up credits. |
| 403 | Your account's email address is not confirmed yet, or the account is blocked. | Open the link in the confirmation email. If the account is blocked, contact support. |
| 404 |
No company matches q, or the name matches several companies. |
Add the legal form or city, query with register court and register number, or use AI Mode. |
| 408 | The request took too long, for example because the register answers slowly during a Realtime fetch. | Retry later. Nothing is charged, not even AI Mode. |
| 422 |
financial_statement_type or financial_years has an invalid value. |
Correct the value as shown in the parameter table. meta.message gives the reason. |
| 422 |
The Idempotency-Key was already used with different parameters. |
Use a new key for a new request. |
| 429 | More requests than the per-minute limit allows. |
Wait as many seconds as Retry-After says, then retry. |
| 500 | The data source was briefly unreachable. | Retry after a short pause. Only a chosen AI Mode is charged. |
Rejected requests cost no credits. The only exception is the AI Mode surcharge: we charge it even on 404 and 500, only not on 408. How an error response is built is described under Errors.
Good to know
AI Mode. With ai_search=on-default the API finds the company even from vague input, such as q=Hetzner. To do so it researches the web. On request it then also returns the feature website_content.
In AI Mode, purpose contains a short summary of the business instead of the registered business purpose. AI Mode adds contact data, keywords and products and services from the web.
AI Mode also finds companies that are not in the Handelsregister (commercial register). It then evaluates publicly available data from the web, and the response is a profile from web sources. You can tell it by registration: null and an entity_id that starts with AI_TMP_.
We charge the surcharge as soon as the research has run, so even without a match. If the request ends with 408, it is dropped.
Realtime. With realtime_mode=handelsregister-default the API queries the Handelsregister live. The response then contains the currently registered people in related_persons.current. You do not need the feature related_persons for this. If you do not request it, it is not charged either.
_realtime_mode.status shows the result of the fetch. Realtime is charged only if it says success, but then regardless of what the fetch returns. Any other value means the live fetch failed. You then get the company profile with the stored data, without the Realtime surcharge. With Realtime the representation rules come in their current state, without history.
1{2 "related_persons": {3 "current": [4 {5 "entity_id": "78ad32e16ff779f589a9e88d23356f74",6 "label": "MANAGING_DIRECTOR",7 "role": {8 "en": {9 "long": "Managing Director",10 "short": "MD"11 },12 "de": {13 "long": "Geschäftsführer",14 "short": "GF"15 }16 },17 "name": "Max Mustermann",18 "name_parts": {19 "given": "Max",20 "family": "Mustermann",21 "maiden": null,22 "canonical_name": "Mustermann, Max",23 "aliases": [24 "Mustermann, Max"25 ],26 "previous_names": null27 },28 "start_date": null,29 "end_date": null,30 "birth_date": "1976-01-15",31 "location": {32 "home": {33 "city": "Musterheim"34 }35 },36 "organization_representation_scheme": {37 "current": [38 "Ist nur ein Geschäftsführer bestellt, so vertritt er die Gesellschaft allein. Sind mehrere Geschäftsführer bestellt, so wird die Gesellschaft durch zwei Geschäftsführer oder durch einen Geschäftsführer gemeinsam mit einem Prokuristen vertreten."39 ],40 "history": []41 },42 "role_representation_scheme": {43 "current": [44 "einzelvertretungsberechtigt",45 "mit der Befugnis, im Namen der Gesellschaft mit sich im eigenen Namen oder als Vertreter eines Dritten Rechtsgeschäfte abzuschließen"46 ],47 "history": []48 }49 },50 {51 "entity_id": "73549375ff7d709b9e7e2941ad1ffaa3",52 "label": "MANAGING_DIRECTOR",53 "role": {54 "en": {55 "long": "Managing Director",56 "short": "MD"57 },58 "de": {59 "long": "Geschäftsführer",60 "short": "GF"61 }62 },63 "name": "Paul Musterwald",64 "name_parts": {65 "given": "Paul",66 "family": "Musterwald",67 "maiden": null,68 "canonical_name": "Musterwald, Paul",69 "aliases": [70 "Musterwald, Paul"71 ],72 "previous_names": null73 },74 "start_date": null,75 "end_date": null,76 "birth_date": "1989-07-18",77 "location": {78 "home": {79 "city": "Probebrück"80 }81 },82 "organization_representation_scheme": {83 "current": [84 "Ist nur ein Geschäftsführer bestellt, so vertritt er die Gesellschaft allein. Sind mehrere Geschäftsführer bestellt, so wird die Gesellschaft durch zwei Geschäftsführer oder durch einen Geschäftsführer gemeinsam mit einem Prokuristen vertreten."85 ],86 "history": []87 },88 "role_representation_scheme": {89 "current": [90 "einzelvertretungsberechtigt"91 ],92 "history": []93 }94 },95 {96 "entity_id": "cfecded2c1d17946c8ab0379aa786eed",97 "label": "MANAGING_DIRECTOR",98 "role": {99 "en": {100 "long": "Managing Director",101 "short": "MD"102 },103 "de": {104 "long": "Geschäftsführer",105 "short": "GF"106 }107 },108 "name": "Jan Musterhuber",109 "name_parts": {110 "given": "Jan",111 "family": "Musterhuber",112 "maiden": null,113 "canonical_name": "Musterhuber, Jan",114 "aliases": [115 "Musterhuber, Jan"116 ],117 "previous_names": null118 },119 "start_date": null,120 "end_date": null,121 "birth_date": "1955-11-06",122 "location": {123 "home": {124 "city": "Probeingen"125 }126 },127 "organization_representation_scheme": {128 "current": [129 "Ist nur ein Geschäftsführer bestellt, so vertritt er die Gesellschaft allein. Sind mehrere Geschäftsführer bestellt, so wird die Gesellschaft durch zwei Geschäftsführer oder durch einen Geschäftsführer gemeinsam mit einem Prokuristen vertreten."130 ],131 "history": []132 },133 "role_representation_scheme": {134 "current": [135 "einzelvertretungsberechtigt"136 ],137 "history": []138 }139 }140 ]141 },142 "_realtime_mode": {143 "mode": "handelsregister-default",144 "status": "success"145 },146 "meta": {147 "request_credit_cost": 15,148 "credits_remaining": 145149 }150}
Companies with the same name. If several companies share a name, the API may return one of them, not necessarily the one you want, or answer with 404. When the right company matters, query with register court and register number, such as Ansbach HRB 6089, or with the entity_id.
The register number alone is not enough, because every register court assigns its own numbers. Register type and register court always belong with it.
Retry safely. Send a value of your own in the Idempotency-Key header. The same request with the same key is then charged only once within 24 hours. The retry returns the full result again and costs nothing. You can tell it by meta.request_credit_cost: 0 and the header Idempotency-Status: replayed. More under Limits.
The same key with different parameters returns 422. A key has up to 128 characters from letters, digits and . _ : - and starts with a letter or digit. The API ignores a key in any other format, and the request then runs without this protection. Only a delivered response binds the key; after an error you can use it again.
Client timeout. Set your client's timeout to at least 120 seconds. If the data source does not answer in time, you get 408 and nothing is charged. Without surcharges a company profile usually arrives within a few seconds. AI Mode, Realtime and features such as News take longer.