Repository navigation
Expand file tree
/
Copy pathv1.yaml
More file actions
6248 lines (6138 loc) · 247 KB
/
Copy pathv1.yaml
File metadata and controls
6248 lines (6138 loc) · 247 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.1.0
info:
title: Compabase API
version: 1.0.0
description: |
### Introduction
Versioned JSON API for Polish company data: KRS search and full profiles, CEIDG (sole
proprietors) by NIP, financial statements and document inventory, peer statistics,
company connections, news/UGC, Warsaw Stock Exchange (GPW) listings, and watchlist management.
### Base URL
`https://compabase.com/api/v1/`
### Authentication
Send your key in header `X-API-Key: <key>` or `Authorization: Bearer <key>`.
API keys are self-service: create a free account, then generate and manage your keys in the
<a href="/api-keys" target="_blank" rel="noopener noreferrer">API key dashboard</a>.
Usage is billed according to your plan. See the
<a href="/pricing" target="_blank" rel="noopener noreferrer">pricing page</a> for details.
Authenticated requests return **contact email** on company profiles and search rows when
available (same data as the logged-in web UI). Public unauthenticated site pages still gate emails.
### Error Model
`{ "statusCode": 400, "statusMessage": "...", "message": "...", "data": { "error": { "code": "...", "message": "...", "details": { ... } } } }`
The outer envelope (`statusCode`, `statusMessage`, `message`) is set by the Nitro server framework.
The domain error object lives under `data.error` with a machine-readable `code`, a human-readable
`message`, and optional `details`.
### Validation Rules
- invalid numeric ranges (`*_min > *_max`) -> `400 INVALID_RANGE`
- invalid booleans (`primary_only`, `has_email`, `has_website`, `status_active`) -> `400 INVALID_BOOLEAN`
- invalid cursor UUID -> `400 INVALID_CURSOR`
- invalid KRS format -> `400 INVALID_KRS`
- invalid NIP format -> `400 INVALID_NIP`
- too-short keyword token (<2 chars) -> `400 INVALID_KEYWORDS`
- mutually exclusive parameters supplied together (e.g. `cursor` and `offset`) -> `400 CONFLICTING_PARAMETERS`
### Quota Accounting
Each key is tied to your account plan and has a monthly `api_requests` limit that resets
with the UTC calendar month (see `GET /usage` for `monthUtc` / `resetsAtUtc`). Limits by
plan: Free 100, Pro 5 000, Scale 100 000, Enterprise – custom.
- quota is consumed by authenticated `/api/v1` requests, except `GET /usage`
- requests that fail before authentication succeeds (`401`) do not consume quota
- requests rejected because quota is already exhausted (`429`) do not consume additional quota
- other authenticated responses, including `200`, `400`, and `404`, consume quota
### Bulk pulls
Use `GET /companies/export` (or `GET /companies` with `limit` up to **500**) plus cursor
pagination (`cursor` = last `entity_id`) to enrich large lists. Each page consumes **one**
`api_requests` unit — not the portal/MCP `export_companies` meter. For a full profile,
call `GET /companies/krs/{krs}` once per company.
servers:
- url: https://compabase.com/api/v1
description: Full URL
tags:
- name: Health
- name: Usage
- name: Companies
- name: Financials
description: Financial statements, original filings and financial statistics of one company.
- name: Registers
description: Public-register data of one company (CRBR, MSiG, KRZ, URE, BDO, SUDOP, KNF, FE, FTS, BZP/TED, NFZ contracts and waiting lists, sanctions and PEP lists, Warsaw Stock Exchange, real estate, secured liabilities, website facts).
- name: Tenders
- name: News
- name: Watchlist
- name: Persons
paths:
/health:
get:
tags:
- Health
summary: API v1 health
description: Public uptime/status endpoint for API v1 (no API key required).
security: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
status:
type: string
example: ok
api:
type: string
example: v1
timestamp:
type: string
format: date-time
example: '2026-03-25T12:00:00Z'
/companies:
get:
tags:
- Companies
summary: Search and list companies
description: |
Uses the same search dataset as the public site. Filters combine with **AND** where applicable.
**Response:** `data` is one page of rows; `pagination` has `limit`, `offset`, `total`, `hasMore`, and optionally `cursor` when cursor-based paging is used.
For a single company’s full profile, use `GET /companies/krs/{krs}` (KRS court number).
Parameter details are documented on each query field below.
**Pagination mode**
`offset` and `cursor` are mutually exclusive in client usage. If both are sent, the server returns `400 CONFLICTING_PARAMETERS`.
Use `offset` for shallow interactive browsing and `cursor` for deep paging/export flows.
Cursor pagination is ordered by `entity_id` ascending; `cursor` is the last `entity_id` from the prior page.
Because datasets can change between requests, deep paging may still observe occasional duplicates or skips.
With cursor mode, `pagination.total` may be unavailable and returned as `-1`; rely on `hasMore`.
**Default ordering (offset mode)**
- without `q`: `has_email` desc, then `has_website` desc, then `revenue_total` desc, then `extracted_at` desc, then `entity_id` asc.
- with `q`: same ordering as above (not TF-IDF/full-text relevance ranking).
- offset pagination is intended for interactive browsing; for deterministic deep traversal use cursor mode.
**Financial filter semantics** (for `/companies` and `/companies/count`)
- financial range filters are evaluated on the latest indexed financial snapshot per company (search index row).
- companies with `null` value for a filtered metric do not match that metric filter.
- when `last_report_year_*` is combined with financial metric filters, both are evaluated against the same indexed reporting snapshot.
security:
- ApiKeyAuth: []
- BearerAuth: []
parameters:
- $ref: '#/components/parameters/CompanyFilterQ'
- $ref: '#/components/parameters/CompanyFilterKeywords'
- $ref: '#/components/parameters/CompanyFilterLimit'
- $ref: '#/components/parameters/CompanyFilterOffset'
- $ref: '#/components/parameters/CompanyFilterCursor'
- $ref: '#/components/parameters/CompanyFilterPkd'
- $ref: '#/components/parameters/CompanyFilterPrimaryOnly'
- $ref: '#/components/parameters/CompanyFilterCurrency'
- $ref: '#/components/parameters/CompanyFilterVoivodeship'
- $ref: '#/components/parameters/CompanyFilterPostalCode'
- $ref: '#/components/parameters/CompanyFilterCity'
- $ref: '#/components/parameters/CompanyFilterRevenueMin'
- $ref: '#/components/parameters/CompanyFilterRevenueMax'
- $ref: '#/components/parameters/CompanyFilterRevenueOperatingMin'
- $ref: '#/components/parameters/CompanyFilterRevenueOperatingMax'
- $ref: '#/components/parameters/CompanyFilterProfitOperatingMin'
- $ref: '#/components/parameters/CompanyFilterProfitOperatingMax'
- $ref: '#/components/parameters/CompanyFilterProfitNetMin'
- $ref: '#/components/parameters/CompanyFilterProfitNetMax'
- $ref: '#/components/parameters/CompanyFilterIncomeTaxMin'
- $ref: '#/components/parameters/CompanyFilterIncomeTaxMax'
- $ref: '#/components/parameters/CompanyFilterCostWagesMin'
- $ref: '#/components/parameters/CompanyFilterCostWagesMax'
- $ref: '#/components/parameters/CompanyFilterCostAmortizationMin'
- $ref: '#/components/parameters/CompanyFilterCostAmortizationMax'
- $ref: '#/components/parameters/CompanyFilterTotalAssetsMin'
- $ref: '#/components/parameters/CompanyFilterTotalAssetsMax'
- $ref: '#/components/parameters/CompanyFilterEbitdaMin'
- $ref: '#/components/parameters/CompanyFilterEbitdaMax'
- $ref: '#/components/parameters/CompanyFilterCapitalMin'
- $ref: '#/components/parameters/CompanyFilterCapitalMax'
- $ref: '#/components/parameters/CompanyFilterEstimatedValueMin'
- $ref: '#/components/parameters/CompanyFilterEstimatedValueMax'
- $ref: '#/components/parameters/CompanyFilterRegistrationYearMin'
- $ref: '#/components/parameters/CompanyFilterRegistrationYearMax'
- $ref: '#/components/parameters/CompanyFilterRegistrationDateMin'
- $ref: '#/components/parameters/CompanyFilterRegistrationDateMax'
- $ref: '#/components/parameters/CompanyFilterLastReportYearMin'
- $ref: '#/components/parameters/CompanyFilterLastReportYearMax'
- $ref: '#/components/parameters/CompanyFilterStatusActive'
- $ref: '#/components/parameters/CompanyFilterLegalForm'
- $ref: '#/components/parameters/CompanyFilterHasEmail'
- $ref: '#/components/parameters/CompanyFilterHasWebsite'
- $ref: '#/components/parameters/CompanySort'
- $ref: '#/components/parameters/CompanySortDir'
responses:
'200':
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
description: 'Paginated search results: **`data`** is an array of companies (one object per row on this page).
Fields per row depend on filters and internal path; optional keys may be omitted or null.
'
content:
application/json:
schema:
$ref: '#/components/schemas/CompanyListResponse'
example:
data:
- entity_id: ad2ae683-ccbd-49c6-a85c-648024435cb5
company_name: ORLEN SPÓŁKA AKCYJNA
company_name_display: Orlen
nip: null
regon: null
registry_number: "0000028860"
legal_form: SPÓŁKA AKCYJNA
is_active: true
latest_snapshot_id: 1956bcf0-34f4-4ab1-98af-eddf75c0d40a
extracted_at: '2026-03-19T13:41:20.998732+00:00'
state_date: null
postal_code: "09-411"
pagination:
limit: 3
offset: 0
total: 1045904
hasMore: true
'401':
$ref: '#/components/responses/Unauthorized'
'400':
$ref: '#/components/responses/BadRequest'
'429':
$ref: '#/components/responses/TooManyRequests'
/companies/count:
get:
tags:
- Companies
summary: Count companies for current filters
description: |
Returns how many companies match the same **filter set** as `GET /companies`, without returning rows.
Use the **same query parameters** as list/search (except pagination: no `limit`, `offset`, or `cursor`).
Filters combine with **AND** where applicable.
**Response:** a single integer `count`; total matching companies for the current filters.
security:
- ApiKeyAuth: []
- BearerAuth: []
parameters:
- $ref: '#/components/parameters/CompanyFilterQ'
- $ref: '#/components/parameters/CompanyFilterKeywords'
- $ref: '#/components/parameters/CompanyFilterPkd'
- $ref: '#/components/parameters/CompanyFilterPrimaryOnly'
- $ref: '#/components/parameters/CompanyFilterCurrency'
- $ref: '#/components/parameters/CompanyFilterVoivodeship'
- $ref: '#/components/parameters/CompanyFilterPostalCode'
- $ref: '#/components/parameters/CompanyFilterCity'
- $ref: '#/components/parameters/CompanyFilterRevenueMin'
- $ref: '#/components/parameters/CompanyFilterRevenueMax'
- $ref: '#/components/parameters/CompanyFilterRevenueOperatingMin'
- $ref: '#/components/parameters/CompanyFilterRevenueOperatingMax'
- $ref: '#/components/parameters/CompanyFilterProfitOperatingMin'
- $ref: '#/components/parameters/CompanyFilterProfitOperatingMax'
- $ref: '#/components/parameters/CompanyFilterProfitNetMin'
- $ref: '#/components/parameters/CompanyFilterProfitNetMax'
- $ref: '#/components/parameters/CompanyFilterIncomeTaxMin'
- $ref: '#/components/parameters/CompanyFilterIncomeTaxMax'
- $ref: '#/components/parameters/CompanyFilterCostWagesMin'
- $ref: '#/components/parameters/CompanyFilterCostWagesMax'
- $ref: '#/components/parameters/CompanyFilterCostAmortizationMin'
- $ref: '#/components/parameters/CompanyFilterCostAmortizationMax'
- $ref: '#/components/parameters/CompanyFilterTotalAssetsMin'
- $ref: '#/components/parameters/CompanyFilterTotalAssetsMax'
- $ref: '#/components/parameters/CompanyFilterEbitdaMin'
- $ref: '#/components/parameters/CompanyFilterEbitdaMax'
- $ref: '#/components/parameters/CompanyFilterCapitalMin'
- $ref: '#/components/parameters/CompanyFilterCapitalMax'
- $ref: '#/components/parameters/CompanyFilterEstimatedValueMin'
- $ref: '#/components/parameters/CompanyFilterEstimatedValueMax'
- $ref: '#/components/parameters/CompanyFilterRegistrationYearMin'
- $ref: '#/components/parameters/CompanyFilterRegistrationYearMax'
- $ref: '#/components/parameters/CompanyFilterRegistrationDateMin'
- $ref: '#/components/parameters/CompanyFilterRegistrationDateMax'
- $ref: '#/components/parameters/CompanyFilterLastReportYearMin'
- $ref: '#/components/parameters/CompanyFilterLastReportYearMax'
- $ref: '#/components/parameters/CompanyFilterStatusActive'
- $ref: '#/components/parameters/CompanyFilterLegalForm'
- $ref: '#/components/parameters/CompanyFilterHasEmail'
- $ref: '#/components/parameters/CompanyFilterHasWebsite'
responses:
'200':
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
description: Total number of companies matching the request filters.
content:
application/json:
schema:
$ref: '#/components/schemas/CompanyCountResponse'
example:
count: 1045904
'401':
$ref: '#/components/responses/Unauthorized'
'400':
$ref: '#/components/responses/BadRequest'
'429':
$ref: '#/components/responses/TooManyRequests'
/companies/krs/{krs}:
get:
tags:
- Companies
summary: Full company profile
description: |
Returns full company profile addressed by **KRS** (Polish court registry number).
Digits only; leading zeros are optional (normalized to 10 digits server-side).
Integrations that only have a KRS number can call this directly.
One request typically covers enrichment for a company. The payload includes:
- `company` (identifiers, address, PKD, logo, capital),
- `companyNiche` (detailed industry in words, an AI classification of what the company actually does, in the `lang` language: pl, en or de) and `companyNaics` (its 6-digit NAICS code),
- `details.contacts` (email, phone, website, deliverability flags; email/phone revealed for API keys),
- `details.vat` (VAT whitelist status + bank accounts when known),
- `details.filings` / attributes / operational status,
- `roles` and `ownership`,
- `financials.byYear` (metrics + `esf_statement_lines` when present; XML files are on the documents endpoint),
- `krz` (restructuring/insolvency proceedings summary),
- `sanctions` (sanctions and PEP screening of the company and its people; `{ "entries": [] }` when screened with no matches; dedicated read is `/companies/krs/{krs}/sanctions`),
- `sudop` (public aid / de minimis when checked),
- `bzp` (public procurement summary when present),
- `ure` (URE energy concessions when checked),
- `bdo` (BDO waste/packaging register when present),
- `gpw` (Warsaw Stock Exchange listing snapshot when the NIP is matched — no full OHLCV; use `/companies/krs/{krs}/gpw`),
- `crbr` (beneficial owners when present and RODO-eligible),
- `changeHistory` when non-empty,
- `similarCompanies`, `subsidiaryCompanies`, `pkdRankings`, `faq`, `insightsByYear`,
- `hasStatistics` (boolean; full peer benchmarks via `/statistics`).
security:
- ApiKeyAuth: []
- BearerAuth: []
parameters:
- name: krs
in: path
required: true
schema:
type: string
description: KRS input is normalized by stripping non-digits and left-padding to 10 digits.
After normalization, KRS must contain exactly 10 digits; otherwise request fails with `400 INVALID_KRS`.
example: "0000028860"
- name: lang
in: query
required: false
schema:
type: string
enum: [pl, en, de]
description: Language of `company_summary`, `companyNiche` and of translated labels (default pl for `company_summary`,
en for `companyNiche` and labels). When the description is missing in that language, `company_summary` falls back to en, pl, de.
responses:
'200':
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
description: Full company profile object resolved from KRS.
content:
application/json:
schema:
type: object
example:
company:
entity_id: ad2ae683-ccbd-49c6-a85c-648024435cb5
registry_number: "0000028860"
company_name: ORLEN SPÓŁKA AKCYJNA
company_name_display: Orlen
companyNiche: Rafineria i sprzedaż paliw
companyNaics: "324110"
details:
legalForm: SPÓŁKA AKCYJNA
operational_status: active
contacts:
email: zarzad@orlen.pl
emailGated: false
phone: null
phoneGated: false
vat:
status: Czynny
status_date: "2024-03-01"
accounts:
- "25114020040000380284611780"
companySummary:
pl: Orlen jest liderem na rynku paliw, dostarczając energię i paliwa do ponad 100 milionów Europejczyków.
company_summary: Orlen jest liderem na rynku paliw, dostarczając energię i paliwa do ponad 100 milionów Europejczyków.
company_summary_lang: pl
roles:
- party:
name: ALEJANDRO MARTINEZ RUIZ
display_name: Alejandro Martinez Ruiz
role_name: President of the Management Board
ownership:
- owner:
name: RYSZARD CIEŚLAR
type: person
display_name: Ryszard Cieślar
holding_text: 100 shares with a total value of PLN 5,000.00
has_all_shares: true
holding_percent: 100
financials:
years:
- "2024"
byYear:
"2024":
- sf_period_from: "2024-01-01"
sf_period_to: "2024-12-31"
currency: PLN
roa: 0.5415713793427525
"2023":
- sf_period_from: "2023-01-01"
sf_period_to: "2023-12-31"
currency: PLN
roa: 7.845846361165577
hasStatistics: true
'404':
$ref: '#/components/responses/NotFound'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/TooManyRequests'
/companies/krs/{krs}/financial-statements:
get:
tags:
- Financials
summary: Financial statements
description: |
Returns financial metrics only (without company profile or document files),
grouped by statement year. Values include PLN/USD/EUR columns from
`entity_financial_metrics` and structured `esf_statement_lines` when extracted.
XML files are on the documents endpoint.
Every row has `insights` — the financial signals shown on the Compabase profile for that
year and scope (standalone or consolidated) — and `metric_summaries` — the sentences next to
each statement line on the profile (`revenue_total`, `ebitda`, `equity`, `cash_and_equivalents`, …:
value, y/y change and structure). Plain text in `lang`, amounts in `currency`; empty when none.
security:
- ApiKeyAuth: []
- BearerAuth: []
parameters:
- name: krs
in: path
required: true
schema:
type: string
description: KRS input is normalized by stripping non-digits and left-padding to 10 digits.
After normalization, KRS must contain exactly 10 digits; otherwise request fails with `400 INVALID_KRS`.
example: "0000028860"
- name: lang
in: query
required: false
schema:
type: string
enum: [pl, en, de]
default: pl
description: Language of `insights` and `metric_summaries`.
- name: currency
in: query
required: false
schema:
type: string
enum: [PLN, EUR, USD]
default: PLN
description: Currency of amounts inside `insights` and `metric_summaries` (statement figures keep their PLN/USD/EUR columns).
responses:
'200':
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
description: Financial metrics grouped by year.
content:
application/json:
schema:
type: object
example:
financials:
years:
- "2024"
- "2023"
byYear:
"2024":
- sf_period_from: "2024-01-01"
sf_period_to: "2024-12-31"
currency: PLN
ebit: 2484000000
ebitda: 0
roa: 0.5415713793427525
net_margin: 0.4538198626668145
asset_turnover: 1.1930547288618778
revenue_operating: 303192000000
revenue_total: 304668000000
operating_costs_total: 301809000000
financial_income: 1476000000
financial_costs: 1908000000
profit_gross: 1571000000
income_tax: null
revenue_total_usd: 76338762214.98372
revenue_total_eur: 70672233820.45929
revenue_operating_usd: 75969071685.3297
revenue_operating_eur: 70329936094.86815
operating_costs_total_usd: 75622400400.90202
operating_costs_total_eur: 70009128857.56822
profit_net: 1383000000
profit_net_usd: 346529691.80656475
profit_net_eur: 320807237.2999304
financial_income_usd: 369869938.4584869
financial_income_eur: 342297725.591141
financial_costs_usd: 478544714.9568987
financial_costs_eur: 442881221.5274784
total_assets: 255368000000
total_assets_usd: 63985968428.96517
total_assets_eur: 59236372071.44514
fixed_assets_eur: 43321967061.00673
current_assets_eur: 15914405010.438414
equity_eur: 34026675945.25632
liabilities_and_provisions_eur: 25209696126.18882
metric_summaries:
revenue_total:
- "In 2024, the revenue of Orlen amounted to PLN 216bn (-20.1% y/y, versus PLN 270bn in 2023)."
- "Sales revenue amounted to PLN 201bn (93.4% of the total). Other inflows (operating and financial) were PLN 14.2bn."
- "Operating costs absorbed 88.9% of generated revenue over that period."
insights:
- "Minimal cash position: At an operating scale of around PLN 216bn in revenue, the company holds just PLN 1.37bn in cash (0.6% of turnover). Day-to-day servicing of liabilities (PLN 41.0bn) therefore rests almost entirely on timely inventory turnover and collection of receivables from counterparties."
- "Capital-intensive profile: Fixed assets make up 77% of total assets (PLN 152bn) – the predominance of fixed over current assets ties up capital long term and entails lower asset turnover than in capital-light models."
"2023":
- sf_period_from: "2023-01-01"
sf_period_to: "2023-12-31"
currency: PLN
roa: 7.845846361165577
asset_turnover: 1.4862592645867558
revenue_operating: 389584000000
revenue_total: 392637000000
operating_costs_total: 362463000000
profit_gross: 26365000000
income_tax: null
revenue_total_usd: 93438280859.57022
revenue_total_eur: 86430615479.43999
revenue_operating_usd: 92711915658.9751
revenue_operating_eur: 85758485784.99783
operating_costs_total_usd: 86223593016.49176
operating_costs_total_eur: 79759037499.87363
profit_net: 20727000000
profit_net_usd: 4932533733.133433
profit_net_eur: 4562604561.063662
total_assets: 264178000000
total_assets_usd: 62868089764.64149
total_assets_eur: 58153121422.91098
fixed_assets_eur: 37596856564.23351
current_assets_eur: 20556264858.677467
equity_eur: 33719292066.566875
liabilities_and_provisions_eur: 24433829356.344105
'404':
$ref: '#/components/responses/NotFound'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/TooManyRequests'
/companies/krs/{krs}/structure-people:
get:
tags:
- Companies
summary: Structure & People
description: |
Returns ownership and management structure only (without profile or financial data):
`roles` and `ownership`.
security:
- ApiKeyAuth: []
- BearerAuth: []
parameters:
- name: krs
in: path
required: true
schema:
type: string
description: KRS input is normalized by stripping non-digits and left-padding to 10 digits.
After normalization, KRS must contain exactly 10 digits; otherwise request fails with `400 INVALID_KRS`.
example: "0000028860"
responses:
'200':
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
description: Roles and ownership structure.
content:
application/json:
schema:
type: object
example:
roles:
- party:
name: "ALEJANDRO MARTINEZ RUIZ"
display_name: Alejandro Martinez Ruiz
role_name: President of the Management Board
- party:
name: MARCIN ANDRZEJ DREKSLER
display_name: Marcin Andrzej Dreksler
role_name: Management Board Member
ownership:
- owner:
name: RYSZARD CIEŚLAR
type: person
display_name: Ryszard Cieślar
holding_text: 100 shares with a total value of PLN 5,000.00
has_all_shares: true
holding_percent: 100
holding_value_pln: 5000
holding_value_usd: 1350.621285791464
holding_value_eur: 1204.2389210019267
holding_share_count: 100
'404':
$ref: '#/components/responses/NotFound'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/TooManyRequests'
/companies/krs/{krs}/connections:
get:
tags:
- Companies
summary: Company connections
description: |
Graph of related companies and people linked through shared roles/ownership
(same payload as the profile Connections UI).
security:
- ApiKeyAuth: []
- BearerAuth: []
parameters:
- name: krs
in: path
required: true
schema:
type: string
description: KRS input is normalized by stripping non-digits and left-padding to 10 digits.
example: "0000028860"
responses:
'200':
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
description: Connections payload.
content:
application/json:
schema:
type: object
example:
entity_id: ad2ae683-ccbd-49c6-a85c-648024435cb5
registry_number: "0000028860"
company_name: Orlen
company_name_display: Orlen
legal_form: SPÓŁKA AKCYJNA
logo_url: https://img.compabase.com/storage/v1/object/public/company-logos/ad2ae683-ccbd-49c6-a85c-648024435cb5.webp
website: orlen.pl
show_logo: true
logo_stored_priority: true
people:
- person_id: a0afa35d-c36f-4e7b-a97f-35992dd7e061
display_name: Robert Soszyński
birth_year: 1964
age: 62
relationships:
- kind: management
role: "167"
display_role: WICEPREZES ZARZĄDU DS. OPERACYJNYCH
has_other_connections: true
other_companies_count: 2
other_companies:
- entity_id: 6de105f8-9075-4040-9b05-ea7382a28fff
registry_number: "0000154129"
name: Intelli
company_name_display: Intelli
legal_form: SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ
role: PREZES ZARZĄDU
linkable: true
show_logo: true
logo_stored_priority: false
graph:
nodes:
- id: ad2ae683-ccbd-49c6-a85c-648024435cb5
type: company
name: Orlen
krs: "0000028860"
edges:
- source: ad2ae683-ccbd-49c6-a85c-648024435cb5
target: a0afa35d-c36f-4e7b-a97f-35992dd7e061
sourceType: company
targetType: person
role: "167"
relationship_kind: management
'404':
$ref: '#/components/responses/NotFound'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/TooManyRequests'
/companies/krs/{krs}/statistics:
get:
tags:
- Financials
summary: Peer statistics & rankings
description: |
Industry / region / country peer benchmarks and the company's rank positions.
Use when `hasStatistics` on the full profile is `true`.
Response shape:
- `company` – latest indexed figures (PLN/EUR/USD) for the company
- `scopes` – rank in each peer group (`pkd_full`, `pkd_division`, `pkd_section`, `region`, `country`)
- `benchmarks` – peer distribution per scope key (`median`, `p25`/`p75`/`p90`, `n_companies`, …)
security:
- ApiKeyAuth: []
- BearerAuth: []
parameters:
- name: krs
in: path
required: true
schema:
type: string
example: "0001088645"
- name: locale
in: query
required: false
schema:
type: string
default: en
responses:
'200':
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
description: |
Rankings (`scopes`) plus peer distributions (`benchmarks` keyed by
`scope_type::scope_key`). Company figures are the latest indexed snapshot.
content:
application/json:
schema:
type: object
example:
hasData: true
company:
registry_number: "0001088645"
primary_pkd: 73.11.Z
region: wielkopolskie
period_to: "2025-12-31"
scopes:
- scope_type: pkd_full
scope_key: 73.11.Z
label: Advertising agencies
rank_position: 2811
benchmarks:
pkd_full::73.11.Z:
label: Advertising agencies
metrics:
revenue_total:
PLN:
n_companies: 6859
median: 437040.24
mean: 4143982.87
winsor_mean: 2544201.61
EUR:
n_companies: 6857
median: 101158.92
mean: 963908.02
winsor_mean: 590328.7
profit_net:
PLN:
n_companies: 6859
median: 15200.4
mean: 288817.1
winsor_mean: 160485.18
total_assets:
PLN:
n_companies: 6811
median: 230483.3
mean: 2547678.84
winsor_mean: 1277411.54
country::PL:
label: Polska
metrics:
revenue_total:
PLN:
n_companies: 479837
median: 695181.35
mean: 15874161.59
winsor_mean: 6549627.07
'404':
$ref: '#/components/responses/NotFound'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/TooManyRequests'
/companies/krs/{krs}/financial-documents:
get:
tags:
- Financials
summary: Financial document inventory
description: |
Metadata list of financial documents for the company (periods, types, names).
Returns metadata only. Structured metrics and `esf_statement_lines` are on the
profile and financial-statements endpoints.
security:
- ApiKeyAuth: []
- BearerAuth: []
parameters:
- name: krs
in: path
required: true
schema:
type: string
example: "0000028860"
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 25
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
responses:
'200':
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
description: Document metadata page.
content:
application/json:
schema:
type: object
example:
krs: "0000028860"
entity_id: ad2ae683-ccbd-49c6-a85c-648024435cb5
documents:
- id: b20af05c-b310-46d8-a68c-827209257fed
document_type_ui: Dokument RDF PDF (rodzaj 9)
period_from: "2025-01-01"
period_to: "2025-12-31"
extracted_at: '2026-10-12T09:04:04.965Z'
- id: fbb530f9-4c6a-4331-af77-073d20146d70
document_type_ui: Dokument RDF (rodzaj 22)
period_from: "2025-01-01"
period_to: "2025-12-31"
extracted_at: '2026-08-17T15:14:26.060Z'
pagination:
docsLimit: 25
docsOffset: 0
hasMore: true
'404':
$ref: '#/components/responses/NotFound'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/TooManyRequests'
/companies/krs/{krs}/news:
get:
tags:
- News
summary: Company news & UGC
description: |
Published news articles and optional claimed description / logo from company UGC.
Coverage is uneven (only companies with portal/UGC content).
security:
- ApiKeyAuth: []
- BearerAuth: []
parameters:
- name: krs
in: path
required: true
schema:
type: string
example: "0000057567"
- name: locale
in: query
required: false
schema:
type: string
default: en
responses:
'200':
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
description: News and optional UGC fields (empty arrays/nulls when none).
content:
application/json:
schema:
type: object
example:
krs: "0000057567"
entity_id: 6fbbff6c-f836-4d5e-b5d4-9833b1fb1840
newsArticles:
- id: 941a76b0-7187-42be-8798-7341a61a3a30
title: Comarch official sponsor of Mateusz Kusznierewicz's SSL Team Poland crew at the sailing world championship
in Rio
url: https://www.comarch.pl/o-firmie/centrum-prasowe/aktualnosci/korporacja/comarch-oficjalnym-sponsorem-zalogi-mateusza-kusznierewicza-ssl-team-poland-na-zeglarski-mundial-w-rio/
imageUrl: http://www.comarch.pl/files-pl/miniatures/file_1201/Internet_SSL_Poland_Lodka_030_RHajduk.600x315.5f4506ae.jpg
publishedAt: "2026-11-03"
section: o-firmie
language: pl
- id: c9b6ba08-0db2-4d70-8233-9207ef515c4a
title: Accounting firms implement AI Agents from Comarch ERP
url: https://www.comarch.pl/erp/aktualnosci/biura-rachunkowe-wdrazaja-agentow-ai-od-comarch-erp/
imageUrl: http://www.comarch.pl/files-pl/miniatures/file_1202/Biura_rachunkowe_wdrazaja_Agentow_AI_od_Comarch_ERP.600x315.e20689ac.jpg
publishedAt: "2026-11-03"
section: o-firmie
language: pl
'404':
$ref: '#/components/responses/NotFound'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/TooManyRequests'
/companies/krs/{krs}/sanctions:
get:
tags:
- Registers
summary: Sanctions and PEP screening
description: |
Sanctions and PEP screening for a KRS company.
Entries with `kind: entity` (or no `kind`) are the company itself on a sanctions list
(MSWiA, EU, US, UK, World Bank), matched by KRS, NIP or REGON: the name on the list,
listed and removed dates, restrictive measures and the legal grounds. Polish text stays
in `measures` / `justification`; English and German are in `measures_i18n` /
`justification_i18n`.
Entries with `kind: person` are board members, proxies, owners and beneficial owners
matched to sanctions lists (EU, UN, US, UK, MSWiA) or to PEP sources (Sejm, Wikidata,
boards of companies majority-owned by the State Treasury): `list_kind`, `confidence`,
the role in the company and public positions.
`sanctions` is `null` when nothing matched.
security:
- ApiKeyAuth: []
- BearerAuth: []
parameters:
- name: krs
in: path
required: true
schema:
type: string
description: KRS input is normalized by stripping non-digits and left-padding to 10 digits.
responses:
'200':
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
description: Sanctions and PEP payload. `sanctions` is null when nothing matched.
content:
application/json: