-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathv1.yaml
More file actions
1400 lines (1328 loc) · 52.4 KB
/
v1.yaml
File metadata and controls
1400 lines (1328 loc) · 52.4 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 company search, company counts, full company profiles by KRS,
legal status checks, financial statements, and ownership/roles structure data.
### 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.
### Error Model
`{ "error": { "code": "...", "message": "...", "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`
- 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 request limit that resets every
30 days from your billing start date. 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
servers:
- url: https://compabase.com/api/v1
description: Full URL
tags:
- name: Health
- name: Usage
- name: Companies
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/CompanyFilterLastReportYearMin'
- $ref: '#/components/parameters/CompanyFilterLastReportYearMax'
- $ref: '#/components/parameters/CompanyFilterStatusActive'
- $ref: '#/components/parameters/CompanyFilterLegalForm'
- $ref: '#/components/parameters/CompanyFilterHasEmail'
- $ref: '#/components/parameters/CompanyFilterHasWebsite'
responses:
'200':
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
city: PŁOCK
region: mazowieckie
revenue_total: 304668000000
revenue_total_usd: 76338762214.98372
profit_net: 1383000000
profit_net_usd: 346529691.80656475
operating_costs_total: 301809000000
operating_costs_total_usd: 75622400400.90202
total_assets: 255368000000
total_assets_usd: 63985968428.96517
fixed_assets: 186761000000
fixed_assets_usd: 46795539964.921074
current_assets: 68607000000
current_assets_usd: 17190428464.044098
equity: 146689000000
equity_usd: 36754948634.42746
liabilities_and_provisions: 108679000000
liabilities_and_provisions_usd: 27231019794.53771
has_email: true
has_website: true
full_address: 09-411 Płock, Poland
email: zarzad@orlen.pl
website: orlen.pl
logo_url: https://emjsevwafjsrwhpdijje.supabase.co/storage/v1/object/public/company-logos/ad2ae683-ccbd-49c6-a85c-648024435cb5.ico
currency: PLN
period_to: null
- entity_id: e51db361-6d35-4e91-af8c-5cb8115e1475
company_name: TAURON POLSKA ENERGIA SPÓŁKA AKCYJNA
company_name_display: Tauron Polska Energia
nip: null
regon: null
registry_number: '0000271562'
legal_form: SPÓŁKA AKCYJNA
is_active: true
latest_snapshot_id: 3742a994-dfd1-49a7-bb76-033bf524373d
extracted_at: '2026-03-16T23:08:00.733285+00:00'
state_date: null
postal_code: 40-202
city: KATOWICE
region: śląskie
revenue_total: 35573000000
revenue_total_usd: 8913304936.10624
profit_net: 590000000
profit_net_usd: 147832623.402656
operating_costs_total: 32922000000
operating_costs_total_usd: 8249060385.868203
total_assets: 45714000000
total_assets_usd: 11454272112.25257
fixed_assets: 38069000000
fixed_assets_usd: 9538712102.230017
current_assets: 7645000000
current_assets_usd: 1915560010.0225508
equity: 17754000000
equity_usd: 4448509145.57755
liabilities_and_provisions: 27960000000
liabilities_and_provisions_usd: 7005762966.675019
has_email: true
has_website: true
full_address: 40-202 Katowice, Poland
email: kancelaria@tauron.pl
website: tauron.pl
logo_url: https://emjsevwafjsrwhpdijje.supabase.co/storage/v1/object/public/company-logos/e51db361-6d35-4e91-af8c-5cb8115e1475.ico
currency: PLN
period_to: null
- entity_id: 264b49ba-4c4d-4a04-9eb1-1010a57fecdf
company_name: GRUPA LOTOS SPÓŁKA AKCYJNA
company_name_display: Grupa Lotos
nip: '5830000960'
regon: '19054163600000'
registry_number: '0000106150'
legal_form: SPÓŁKA AKCYJNA
is_active: true
latest_snapshot_id: a368e255-5022-4f02-998b-379609886f51
extracted_at: '2025-12-13T21:23:49.997737+00:00'
state_date: '2025-11-20'
postal_code: 80-718
city: GDAŃSK
region: pomorskie
revenue_total: 33616400000
revenue_total_usd: 8697870578.798935
profit_net: 3211800000
profit_net_usd: 831017620.1195374
operating_costs_total: 28871200000
operating_costs_total_usd: 7470102719.345908
total_assets: 25964800000
total_assets_usd: 6718103961.29266
fixed_assets: 14525600000
fixed_assets_usd: 3758337861.2641983
current_assets: 11439200000
current_assets_usd: 2959766100.0284615
equity: 14793900000
equity_usd: 3827757509.8967633
liabilities_and_provisions: 11170900000
liabilities_and_provisions_usd: 2890346451.3958964
has_email: true
has_website: true
full_address: 80-718 Gdańsk, Poland
email: lotos@grupalotos.pl
website: lotos.pl
logo_url: https://emjsevwafjsrwhpdijje.supabase.co/storage/v1/object/public/company-logos/264b49ba-4c4d-4a04-9eb1-1010a57fecdf.png
currency: PLN
period_to: null
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/CompanyFilterLastReportYearMin'
- $ref: '#/components/parameters/CompanyFilterLastReportYearMax'
- $ref: '#/components/parameters/CompanyFilterStatusActive'
- $ref: '#/components/parameters/CompanyFilterLegalForm'
- $ref: '#/components/parameters/CompanyFilterHasEmail'
- $ref: '#/components/parameters/CompanyFilterHasWebsite'
responses:
'200':
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).
Prefer this in integrations that only know KRS from external sources.
The payload includes:
- `company` (core identifiers, address, activity data, display fields),
- `details` (contacts, suspension/deletion flags, attributes, filings),
- `financials` (full rows from `entity_financial_metrics` grouped by year, including PLN/USD/EUR values),
- optional analytical sections such as `pkdRankings`, `similarCompanies`.
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':
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
logo_url: https://emjsevwafjsrwhpdijje.supabase.co/storage/v1/object/public/company-logos/ad2ae683-ccbd-49c6-a85c-648024435cb5.ico
nip: "7740001454"
regon: "61018820100000"
full_address: CHEMIKÓW 7, 09-411 Płock, PL
street: CHEMIKÓW
building_no: "7"
city: PŁOCK
region: mazowieckie
country: PL
legal_form: SPÓŁKA AKCYJNA
activities:
- code_full: "19.20.Z"
is_primary: true
description: Manufacture of refined petroleum products
- code_full: "20.1"
is_primary: false
description: Manufacture of basic chemicals, fertilisers and nitrogen compounds, plastics and synthetic rubber in primary forms
- code_full: "35.1"
is_primary: false
description: Electric power generation, transmission, distribution and trade
details:
legalForm: SPÓŁKA AKCYJNA
contacts:
email: zarzad@orlen.pl
website: orlen.pl
companySummary:
pl: ORLEN S.A. to jedna z największych zintegrowanych grup multienergetycznych w Europie Środkowej.
en: ORLEN S.A. is one of the largest integrated multi-energy groups in Central Europe.
de: ORLEN S.A. ist eine der größten integrierten Multi-Energie-Gruppen in Mitteleuropa.
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
- party:
name: "IVÁN LIRÓN PORTILLA"
display_name: Iván Lirón Portilla
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
financials:
years:
- "2024"
- "2023"
- "2022"
byYear:
"2024":
- sf_period_from: "2024-01-01"
sf_period_to: "2024-12-31"
currency: PLN
roa: 0.5415713793427525
asset_turnover: 1.1930547288618778
revenue_total: 304668000000
revenue_total_usd: 76338762214.98372
revenue_total_eur: 70672233820.45929
profit_net: 1383000000
profit_net_usd: 346529691.80656475
profit_net_eur: 320807237.2999304
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
"2023":
- sf_period_from: "2023-01-01"
sf_period_to: "2023-12-31"
currency: PLN
roa: 7.845846361165577
asset_turnover: 1.4862592645867558
revenue_total: 392637000000
revenue_total_usd: 93438280859.57022
revenue_total_eur: 86430615479.43999
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
similarCompanies:
- entity_id: 39c4a3d7-144c-45c2-9713-ecd3e8895d4a
registry_number: "0000287699"
company_name: WARTER FUELS SPÓŁKA AKCYJNA
company_name_display: Warter Fuels
legal_form: SPÓŁKA AKCYJNA
website: warterfuels.pl
logo_url: https://emjsevwafjsrwhpdijje.supabase.co/storage/v1/object/public/company-logos/39c4a3d7-144c-45c2-9713-ecd3e8895d4a.png
revenue_total: 224545986
revenue_total_usd: 56263088.449010275
revenue_total_eur: 52086751.565762006
revenue_operating: 223609024
'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:
- Companies
summary: Financial statements
description: |
Returns financial metrics only (without company profile, documents, or metadata),
grouped by statement year. Values include all available PLN/USD/EUR columns from
`entity_financial_metrics`.
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':
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
"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':
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}/status:
get:
tags:
- Companies
summary: Legal status
description: Quick legal-status check (Active, Bankruptcy, Liquidation).
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':
description: Legal status for a company.
content:
application/json:
schema:
type: object
example:
krs: "0000028860"
status: active
label: Active
is_open: true
'404':
$ref: '#/components/responses/NotFound'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/TooManyRequests'
/usage:
get:
tags:
- Usage
summary: Monthly quota usage for this API key
description: 'Returns how many requests this key has used in the current UTC calendar month against its limit.
This endpoint does not consume quota (usage counter is not incremented).
'
security:
- ApiKeyAuth: []
- BearerAuth: []
responses:
'200':
description: Usage snapshot
content:
application/json:
schema:
type: object
required:
- used
- limit
- remaining
- monthUtc
- resetsAtUtc
properties:
used:
type: integer
limit:
type: integer
remaining:
type: integer
monthUtc:
type: string
example: 2026-03
resetsAtUtc:
type: string
format: date-time
example: '2026-04-01T00:00:00Z'
'401':
$ref: '#/components/responses/Unauthorized'
components:
responses:
BadRequest:
description: Invalid request parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
invalidKrs:
summary: Invalid KRS value
value:
error:
code: INVALID_KRS
message: KRS must contain 10 digits after normalization.
details:
parameter: krs
reason: invalid_format
invalidCursor:
summary: Invalid cursor format
value:
error:
code: INVALID_CURSOR
message: Cursor must be a valid UUID.
details:
parameter: cursor
reason: invalid_uuid
invalidRange:
summary: Invalid numeric range
value:
error:
code: INVALID_RANGE
message: revenue_min cannot be greater than revenue_max.
details:
parameter: revenue_min,revenue_max
reason: min_greater_than_max
Unauthorized:
description: Missing, invalid, or revoked API key.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error:
code: UNAUTHORIZED
message: Missing or invalid API key.
NotFound:
description: Resource not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error:
code: NOT_FOUND
message: Company not found.
TooManyRequests:
description: Monthly quota exceeded for this API key.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error:
code: QUOTA_EXCEEDED
message: Monthly quota exceeded for this API key.
schemas:
ErrorResponse:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
description: Domain error code.
enum:
- INVALID_KRS
- INVALID_CURSOR
- INVALID_RANGE
- INVALID_PARAMETER
- CONFLICTING_PARAMETERS
- INVALID_BOOLEAN
- INVALID_KEYWORDS
- UNAUTHORIZED
- NOT_FOUND
- QUOTA_EXCEEDED
message:
type: string
details:
type: object
additionalProperties: true
CompanyListPagination:
type: object
required:
- limit
- offset
- total
- hasMore
properties:
limit:
type: integer
description: Page size (capped at 100 for normal requests; export may allow higher).
offset:
type: integer
total:
type: integer
description: Total rows matching filters. May be `-1` when not computed (e.g. some cursor-based responses).
hasMore:
type: boolean
cursor:
type: string
description: Last `entity_id` from this page; pass as `cursor` query param for the next page when supported.
CompanyListItem:
type: object
description: 'Row from `company_search` (fields depend on query path) plus enrichment: `email`, `website`, `logo_url`,
`currency`, `period_to`, and normalized `company_name_display`. `full_address` is derived from postal data when present.
'
properties:
entity_id:
type: string
format: uuid
company_name:
type: string
company_name_display:
type: string
nullable: true
registry_number:
type: string
nullable: true
nip:
type: string
nullable: true
regon:
type: string
nullable: true
legal_form:
type: string
nullable: true
city:
type: string
nullable: true
postal_code:
type: string
nullable: true
county:
type: string
nullable: true
municipality:
type: string
nullable: true
region:
type: string
nullable: true
full_address:
type: string
nullable: true
primary_pkd:
type: string
nullable: true
all_pkd_codes:
type: array
items:
type: string
is_active:
type: boolean
nullable: true
latest_snapshot_id:
type: string
format: uuid
nullable: true
revenue_total:
type: number
nullable: true
revenue_total_usd:
type: number
nullable: true
revenue_operating:
type: number
nullable: true
profit_operating:
type: number
nullable: true
profit_net:
type: number
nullable: true
profit_net_usd:
type: number
nullable: true
operating_costs_total:
type: number
nullable: true
income_tax:
type: number
nullable: true
cost_wages:
type: number
nullable: true
cost_amortization:
type: number
nullable: true
total_assets:
type: number
nullable: true
capital_total:
type: number
nullable: true
has_email:
type: boolean
nullable: true
has_website:
type: boolean
nullable: true
extracted_at:
type: string
format: date-time
nullable: true
state_date:
type: string
format: date
nullable: true
email:
type: string
nullable: true
website:
type: string
nullable: true
logo_url:
type: string
nullable: true
currency: