Latest commit

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

🇵🇱 Polish Companies Data API (KRS & CEIDG) — Compabase

API DocsLicenseOpenAPIFree Tier

Compabase is a developer-first REST API to search, filter, and analyze over 3 million Polish companies from the KRS (Krajowy Rejestr Sądowy — National Court Register) and CEIDG (Centralna Ewidencja i Informacja o Działalności Gospodarczej). Access normalized company profiles, multi-year financial statements (P&L, balance sheet, ratios), KRS ownership structures, and management roles — all from a single consistent JSON API.

Compabase API Data Flow


Quick Start

# Get a full company profile by KRS number
curl "https://compabase.com/api/v1/companies/krs/0000028860" \
-H "X-API-Key: YOUR_API_KEY"
📄 Show example response
{
"company": {
"entity_id": "ad2ae683-ccbd-49c6-a85c-648024435cb5",
"registry_number": "0000028860",
"company_name": "ORLEN SPÓŁKA AKCYJNA",
"company_name_display": "Orlen",
"nip": "7740001454",
"regon": "61018820100000",
"legal_form": "SPÓŁKA AKCYJNA",
"city": "PŁOCK",
"region": "mazowieckie",
"full_address": "CHEMIKÓW 7, 09-411 Płock, PL",
"activities": [
{ "code_full": "19.20.Z", "is_primary": true, "description": "Manufacture of refined petroleum products" }
]
},
"details": {
"contacts": { "email": "zarzad@orlen.pl", "website": "orlen.pl" }
},
"financials": {
"years": ["2024", "2023"],
"byYear": {
"2024": [{
"revenue_total": 304668000000,
"revenue_total_usd": 76338762214.98,
"revenue_total_eur": 70672233820.46,
"profit_net": 1383000000,
"ebit": 2484000000,
"total_assets": 255368000000,
"equity": 146689000000,
"roa": 0.54,
"net_margin": 0.45
}]
}
},
"roles": [
{ "party": { "display_name": "Alejandro Martinez Ruiz" }, "role_name": "President of the Management Board" }
],
"ownership": [
{ "owner": { "display_name": "Skarb Państwa" }, "holding_percent": 49.9, "holding_value_pln": 4200000000 }
]
}

What You Can Build

  • Polish B2B database API — search and filter the full KRS company register by industry, location, revenue, and legal form
  • KRS search by PKD code — find all active companies in a specific industry sector across Poland
  • Validate KRS number — check legal status (active, bankruptcy, liquidation) in a single lightweight call
  • Polish companies financial statements API — pull multi-year P&L, balance sheet, and ratio data (PLN / USD / EUR)
  • KRS ownership structure API — explore shareholder structures and management boards for due diligence
  • Company revenue data Poland — rank companies by revenue, EBITDA, or total assets within any sector or region
  • Active company verification Poland — integrate status checks into onboarding or KYC flows
  • Lead generation & B2B enrichment — filter by has_email, has_website, voivodeship, and financial thresholds

Endpoints

MethodPathDescription
GET/companiesSearch & filter Polish companies (3M+ records, KRS & CEIDG)
GET/companies/countCount matching companies without fetching rows
GET/companies/krs/{krs}Full company profile by KRS number
GET/companies/krs/{krs}/financial-statementsMulti-year financial statements only
GET/companies/krs/{krs}/structure-peopleOwnership & management structure only
GET/companies/krs/{krs}/statusLightweight legal status check
GET/usageMonthly quota usage for the current API key
GET/healthPublic uptime check (no key required)

GET /companies — Search & Filter Polish Companies

Search over 3 million Polish companies from KRS and CEIDG using combined AND filters. Returns paginated results with financial metrics per row. Supports both offset and cursor-based pagination.

# Active manufacturing companies in Mazovia with revenue > 10M PLN
curl "https://compabase.com/api/v1/companies?pkd=28&voivodeship=mazowieckie&revenue_min=10000000&status_active=true&limit=10" \
-H "X-API-Key: YOUR_API_KEY"

Pagination

ModeParametersBest for
Offsetoffset, limitInteractive browsing, UI tables
Cursorcursor, limitDeep export, large dataset traversal

offset and cursor are mutually exclusive. Use cursor mode for deterministic deep paging; pagination.total may be -1 in cursor mode — rely on hasMore instead.

📋 Show all available filter parameters
ParameterTypeDescription
qstringFull-text company name search
keywordsstringKeyword token search
pkdstringPKD industry code — e.g. 46.90.Z. Combine with primary_only=true to match primary activity only
voivodeshipstringPolish voivodeship, lowercase — e.g. mazowieckie, śląskie, wielkopolskie
citystringCity name, uppercase — e.g. WARSZAWA, KRAKÓW
postal_codestringPostal code prefix
legal_formstringLegal form — e.g. SPÓŁKA AKCYJNA, SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ
status_activebooltrue = active companies only, false = inactive only
has_emailboolFilter by email presence
has_websiteboolFilter by website presence
currencystringCurrency for financial thresholds: PLN (default), USD, EUR
revenue_min / revenue_maxnumberTotal revenue range
revenue_operating_min / revenue_operating_maxnumberOperating revenue range
profit_net_min / profit_net_maxnumberNet profit range
profit_operating_min / profit_operating_maxnumberOperating profit range
ebitda_min / ebitda_maxnumberEBITDA range
total_assets_min / total_assets_maxnumberTotal assets range
capital_min / capital_maxnumberShare capital range
estimated_value_min / estimated_value_maxnumberEstimated company value range
cost_wages_min / cost_wages_maxnumberWage cost range
cost_amortization_min / cost_amortization_maxnumberAmortization cost range
income_tax_min / income_tax_maxnumberIncome tax range
registration_year_min / registration_year_maxintegerRegistration year range
last_report_year_min / last_report_year_maxintegerLast financial report year range

Financial range filters are evaluated against the latest indexed financial snapshot per company. Companies with null for a filtered metric do not match that filter.


GET /companies/count — Count Matching Companies

Returns a single count integer for the same filter set as /companies — without fetching rows. Ideal for faceted search UIs, dashboards, and estimating export volume before paginating.

curl "https://compabase.com/api/v1/companies/count?pkd=46.90.Z&voivodeship=śląskie&status_active=true" \
-H "X-API-Key: YOUR_API_KEY"# → { "count": 3142 }

GET /companies/krs/{krs} — Full Company Profile

Returns the complete profile for a Polish company identified by KRS number. Leading zeros are optional — the API normalizes the value to 10 digits server-side.

Response sections:

KeyContents
companyCore identifiers, address, PKD activities, display fields
detailsContacts (email, website), suspension/deletion flags, filings
financialsMulti-year P&L + balance sheet metrics in PLN / USD / EUR
rolesManagement board, supervisory board, proxies
ownershipShareholder structure — holding %, share count, values in PLN / USD / EUR
companySummaryAI-generated short description (PL / EN / DE)
similarCompaniesRelated companies by industry and size
curl "https://compabase.com/api/v1/companies/krs/0000028860" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/financial-statements — Financial Statements

Polish companies financial statements API — returns all financial metrics grouped by reporting year, without any profile or metadata. Values are available in PLN, USD and EUR.

📊 Show available financial fields

P&Lrevenue_total, revenue_operating, profit_net, profit_gross, ebit, ebitda, operating_costs_total, financial_income, financial_costs, income_tax

Balance sheettotal_assets, fixed_assets, current_assets, equity, liabilities_and_provisions

Ratiosroa, net_margin, asset_turnover

All fields are also available with _usd and _eur suffixes.

curl "https://compabase.com/api/v1/companies/krs/0000028860/financial-statements" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/structure-people — Ownership & Management Structure

Returns roles (management board, supervisory board, proxies) and ownership (shareholders with holding percentage, share count, and PLN / USD / EUR values) — without profile or financial data. Purpose-built for KRS ownership structure API integrations and corporate due diligence workflows.

curl "https://compabase.com/api/v1/companies/krs/0000028860/structure-people" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/status — Legal Status Check

Lightweight endpoint for active company verification in Poland. Returns status (active, bankruptcy, liquidation) and is_open flag. Validate KRS numbers or monitor status changes without pulling the full profile.

curl "https://compabase.com/api/v1/companies/krs/0000028860/status" \
-H "X-API-Key: YOUR_API_KEY"# → { "krs": "0000028860", "status": "active", "label": "Active", "is_open": true }

GET /usage — Quota Usage

Returns current-month usage for the authenticated key. Does not consume quota.

curl "https://compabase.com/api/v1/usage" \
-H "X-API-Key: YOUR_API_KEY"# → { "used": 42, "limit": 5000, "remaining": 4958, "monthUtc": "2026-06", "resetsAtUtc": "2026-07-01T00:00:00Z" }

GET /health — API Health

Public endpoint (no API key required). Returns { "status": "ok", "api": "v1", "timestamp": "..." }.


Authentication

Send your key in one of the supported headers:

X-API-Key: <your_key>
Authorization: Bearer <your_key>

Get a Free API Key instantly →


Plans & Quota

Each API key has a monthly request quota that resets every 30 days from your billing start date.

PlanRequests / month
Free100
Pro5 000
Scale100 000
EnterpriseCustom
  • GET /usage does not consume quota
  • 401 responses (auth fails before processing) do not consume quota
  • 429 responses (quota exhausted) do not consume additional quota
  • All other authenticated responses (200, 400, 404) do consume quota

OpenAPI Specification

  • v1.yaml — source of truth for the API contract (OpenAPI 3.1)
  • Base URL: https://compabase.com/api/v1/

Read the Full Interactive API Documentation →


Related

  • Compabase MCP Server — connect Claude, Cursor, and other AI assistants directly to Polish company data via the Model Context Protocol

License

MIT

About

Official OpenAPI specification for the Compabase API. Developer-first REST API for Polish companies data (KRS, CEIDG, RDF financial statements) normalized into JSON. Fast search, filtering, and B2B enrichment.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Latest commit

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

🇵🇱 Polish Companies Data API (KRS & CEIDG) — Compabase

API DocsLicenseOpenAPIFree Tier

Compabase is a developer-first REST API to search, filter, and analyze over 3 million Polish companies from the KRS (Krajowy Rejestr Sądowy — National Court Register) and CEIDG (Centralna Ewidencja i Informacja o Działalności Gospodarczej). Access normalized company profiles, multi-year financial statements (P&L, balance sheet, ratios), KRS ownership structures, and management roles — all from a single consistent JSON API.

Compabase API Data Flow


Quick Start

# Get a full company profile by KRS number
curl "https://compabase.com/api/v1/companies/krs/0000028860" \
-H "X-API-Key: YOUR_API_KEY"
📄 Show example response
{
"company": {
"entity_id": "ad2ae683-ccbd-49c6-a85c-648024435cb5",
"registry_number": "0000028860",
"company_name": "ORLEN SPÓŁKA AKCYJNA",
"company_name_display": "Orlen",
"nip": "7740001454",
"regon": "61018820100000",
"legal_form": "SPÓŁKA AKCYJNA",
"city": "PŁOCK",
"region": "mazowieckie",
"full_address": "CHEMIKÓW 7, 09-411 Płock, PL",
"activities": [
{ "code_full": "19.20.Z", "is_primary": true, "description": "Manufacture of refined petroleum products" }
]
},
"details": {
"contacts": { "email": "zarzad@orlen.pl", "website": "orlen.pl" }
},
"financials": {
"years": ["2024", "2023"],
"byYear": {
"2024": [{
"revenue_total": 304668000000,
"revenue_total_usd": 76338762214.98,
"revenue_total_eur": 70672233820.46,
"profit_net": 1383000000,
"ebit": 2484000000,
"total_assets": 255368000000,
"equity": 146689000000,
"roa": 0.54,
"net_margin": 0.45
}]
}
},
"roles": [
{ "party": { "display_name": "Alejandro Martinez Ruiz" }, "role_name": "President of the Management Board" }
],
"ownership": [
{ "owner": { "display_name": "Skarb Państwa" }, "holding_percent": 49.9, "holding_value_pln": 4200000000 }
]
}

What You Can Build

  • Polish B2B database API — search and filter the full KRS company register by industry, location, revenue, and legal form
  • KRS search by PKD code — find all active companies in a specific industry sector across Poland
  • Validate KRS number — check legal status (active, bankruptcy, liquidation) in a single lightweight call
  • Polish companies financial statements API — pull multi-year P&L, balance sheet, and ratio data (PLN / USD / EUR)
  • KRS ownership structure API — explore shareholder structures and management boards for due diligence
  • Company revenue data Poland — rank companies by revenue, EBITDA, or total assets within any sector or region
  • Active company verification Poland — integrate status checks into onboarding or KYC flows
  • Lead generation & B2B enrichment — filter by has_email, has_website, voivodeship, and financial thresholds

Endpoints

MethodPathDescription
GET/companiesSearch & filter Polish companies (3M+ records, KRS & CEIDG)
GET/companies/countCount matching companies without fetching rows
GET/companies/krs/{krs}Full company profile by KRS number
GET/companies/krs/{krs}/financial-statementsMulti-year financial statements only
GET/companies/krs/{krs}/structure-peopleOwnership & management structure only
GET/companies/krs/{krs}/statusLightweight legal status check
GET/usageMonthly quota usage for the current API key
GET/healthPublic uptime check (no key required)

GET /companies — Search & Filter Polish Companies

Search over 3 million Polish companies from KRS and CEIDG using combined AND filters. Returns paginated results with financial metrics per row. Supports both offset and cursor-based pagination.

# Active manufacturing companies in Mazovia with revenue > 10M PLN
curl "https://compabase.com/api/v1/companies?pkd=28&voivodeship=mazowieckie&revenue_min=10000000&status_active=true&limit=10" \
-H "X-API-Key: YOUR_API_KEY"

Pagination

ModeParametersBest for
Offsetoffset, limitInteractive browsing, UI tables
Cursorcursor, limitDeep export, large dataset traversal

offset and cursor are mutually exclusive. Use cursor mode for deterministic deep paging; pagination.total may be -1 in cursor mode — rely on hasMore instead.

📋 Show all available filter parameters
ParameterTypeDescription
qstringFull-text company name search
keywordsstringKeyword token search
pkdstringPKD industry code — e.g. 46.90.Z. Combine with primary_only=true to match primary activity only
voivodeshipstringPolish voivodeship, lowercase — e.g. mazowieckie, śląskie, wielkopolskie
citystringCity name, uppercase — e.g. WARSZAWA, KRAKÓW
postal_codestringPostal code prefix
legal_formstringLegal form — e.g. SPÓŁKA AKCYJNA, SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ
status_activebooltrue = active companies only, false = inactive only
has_emailboolFilter by email presence
has_websiteboolFilter by website presence
currencystringCurrency for financial thresholds: PLN (default), USD, EUR
revenue_min / revenue_maxnumberTotal revenue range
revenue_operating_min / revenue_operating_maxnumberOperating revenue range
profit_net_min / profit_net_maxnumberNet profit range
profit_operating_min / profit_operating_maxnumberOperating profit range
ebitda_min / ebitda_maxnumberEBITDA range
total_assets_min / total_assets_maxnumberTotal assets range
capital_min / capital_maxnumberShare capital range
estimated_value_min / estimated_value_maxnumberEstimated company value range
cost_wages_min / cost_wages_maxnumberWage cost range
cost_amortization_min / cost_amortization_maxnumberAmortization cost range
income_tax_min / income_tax_maxnumberIncome tax range
registration_year_min / registration_year_maxintegerRegistration year range
last_report_year_min / last_report_year_maxintegerLast financial report year range

Financial range filters are evaluated against the latest indexed financial snapshot per company. Companies with null for a filtered metric do not match that filter.


GET /companies/count — Count Matching Companies

Returns a single count integer for the same filter set as /companies — without fetching rows. Ideal for faceted search UIs, dashboards, and estimating export volume before paginating.

curl "https://compabase.com/api/v1/companies/count?pkd=46.90.Z&voivodeship=śląskie&status_active=true" \
-H "X-API-Key: YOUR_API_KEY"# → { "count": 3142 }

GET /companies/krs/{krs} — Full Company Profile

Returns the complete profile for a Polish company identified by KRS number. Leading zeros are optional — the API normalizes the value to 10 digits server-side.

Response sections:

KeyContents
companyCore identifiers, address, PKD activities, display fields
detailsContacts (email, website), suspension/deletion flags, filings
financialsMulti-year P&L + balance sheet metrics in PLN / USD / EUR
rolesManagement board, supervisory board, proxies
ownershipShareholder structure — holding %, share count, values in PLN / USD / EUR
companySummaryAI-generated short description (PL / EN / DE)
similarCompaniesRelated companies by industry and size
curl "https://compabase.com/api/v1/companies/krs/0000028860" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/financial-statements — Financial Statements

Polish companies financial statements API — returns all financial metrics grouped by reporting year, without any profile or metadata. Values are available in PLN, USD and EUR.

📊 Show available financial fields

P&Lrevenue_total, revenue_operating, profit_net, profit_gross, ebit, ebitda, operating_costs_total, financial_income, financial_costs, income_tax

Balance sheettotal_assets, fixed_assets, current_assets, equity, liabilities_and_provisions

Ratiosroa, net_margin, asset_turnover

All fields are also available with _usd and _eur suffixes.

curl "https://compabase.com/api/v1/companies/krs/0000028860/financial-statements" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/structure-people — Ownership & Management Structure

Returns roles (management board, supervisory board, proxies) and ownership (shareholders with holding percentage, share count, and PLN / USD / EUR values) — without profile or financial data. Purpose-built for KRS ownership structure API integrations and corporate due diligence workflows.

curl "https://compabase.com/api/v1/companies/krs/0000028860/structure-people" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/status — Legal Status Check

Lightweight endpoint for active company verification in Poland. Returns status (active, bankruptcy, liquidation) and is_open flag. Validate KRS numbers or monitor status changes without pulling the full profile.

curl "https://compabase.com/api/v1/companies/krs/0000028860/status" \
-H "X-API-Key: YOUR_API_KEY"# → { "krs": "0000028860", "status": "active", "label": "Active", "is_open": true }

GET /usage — Quota Usage

Returns current-month usage for the authenticated key. Does not consume quota.

curl "https://compabase.com/api/v1/usage" \
-H "X-API-Key: YOUR_API_KEY"# → { "used": 42, "limit": 5000, "remaining": 4958, "monthUtc": "2026-06", "resetsAtUtc": "2026-07-01T00:00:00Z" }

GET /health — API Health

Public endpoint (no API key required). Returns { "status": "ok", "api": "v1", "timestamp": "..." }.


Authentication

Send your key in one of the supported headers:

X-API-Key: <your_key>
Authorization: Bearer <your_key>

Get a Free API Key instantly →


Plans & Quota

Each API key has a monthly request quota that resets every 30 days from your billing start date.

PlanRequests / month
Free100
Pro5 000
Scale100 000
EnterpriseCustom
  • GET /usage does not consume quota
  • 401 responses (auth fails before processing) do not consume quota
  • 429 responses (quota exhausted) do not consume additional quota
  • All other authenticated responses (200, 400, 404) do consume quota

OpenAPI Specification

  • v1.yaml — source of truth for the API contract (OpenAPI 3.1)
  • Base URL: https://compabase.com/api/v1/

Read the Full Interactive API Documentation →


Related

  • Compabase MCP Server — connect Claude, Cursor, and other AI assistants directly to Polish company data via the Model Context Protocol

License

MIT

About

Official OpenAPI specification for the Compabase API. Developer-first REST API for Polish companies data (KRS, CEIDG, RDF financial statements) normalized into JSON. Fast search, filtering, and B2B enrichment.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

🇵🇱 Polish Companies Data API (KRS & CEIDG) — Compabase

API DocsLicenseOpenAPIFree Tier

Compabase is a developer-first REST API to search, filter, and analyze over 3 million Polish companies from the KRS (Krajowy Rejestr Sądowy — National Court Register) and CEIDG (Centralna Ewidencja i Informacja o Działalności Gospodarczej). Access normalized company profiles, multi-year financial statements (P&L, balance sheet, ratios), KRS ownership structures, and management roles — all from a single consistent JSON API.

Compabase API Data Flow


Quick Start

# Get a full company profile by KRS number
curl "https://compabase.com/api/v1/companies/krs/0000028860" \
-H "X-API-Key: YOUR_API_KEY"
📄 Show example response
{
"company": {
"entity_id": "ad2ae683-ccbd-49c6-a85c-648024435cb5",
"registry_number": "0000028860",
"company_name": "ORLEN SPÓŁKA AKCYJNA",
"company_name_display": "Orlen",
"nip": "7740001454",
"regon": "61018820100000",
"legal_form": "SPÓŁKA AKCYJNA",
"city": "PŁOCK",
"region": "mazowieckie",
"full_address": "CHEMIKÓW 7, 09-411 Płock, PL",
"activities": [
{ "code_full": "19.20.Z", "is_primary": true, "description": "Manufacture of refined petroleum products" }
]
},
"details": {
"contacts": { "email": "zarzad@orlen.pl", "website": "orlen.pl" }
},
"financials": {
"years": ["2024", "2023"],
"byYear": {
"2024": [{
"revenue_total": 304668000000,
"revenue_total_usd": 76338762214.98,
"revenue_total_eur": 70672233820.46,
"profit_net": 1383000000,
"ebit": 2484000000,
"total_assets": 255368000000,
"equity": 146689000000,
"roa": 0.54,
"net_margin": 0.45
}]
}
},
"roles": [
{ "party": { "display_name": "Alejandro Martinez Ruiz" }, "role_name": "President of the Management Board" }
],
"ownership": [
{ "owner": { "display_name": "Skarb Państwa" }, "holding_percent": 49.9, "holding_value_pln": 4200000000 }
]
}

What You Can Build

  • Polish B2B database API — search and filter the full KRS company register by industry, location, revenue, and legal form
  • KRS search by PKD code — find all active companies in a specific industry sector across Poland
  • Validate KRS number — check legal status (active, bankruptcy, liquidation) in a single lightweight call
  • Polish companies financial statements API — pull multi-year P&L, balance sheet, and ratio data (PLN / USD / EUR)
  • KRS ownership structure API — explore shareholder structures and management boards for due diligence
  • Company revenue data Poland — rank companies by revenue, EBITDA, or total assets within any sector or region
  • Active company verification Poland — integrate status checks into onboarding or KYC flows
  • Lead generation & B2B enrichment — filter by has_email, has_website, voivodeship, and financial thresholds

Endpoints

MethodPathDescription
GET/companiesSearch & filter Polish companies (3M+ records, KRS & CEIDG)
GET/companies/countCount matching companies without fetching rows
GET/companies/krs/{krs}Full company profile by KRS number
GET/companies/krs/{krs}/financial-statementsMulti-year financial statements only
GET/companies/krs/{krs}/structure-peopleOwnership & management structure only
GET/companies/krs/{krs}/statusLightweight legal status check
GET/usageMonthly quota usage for the current API key
GET/healthPublic uptime check (no key required)

GET /companies — Search & Filter Polish Companies

Search over 3 million Polish companies from KRS and CEIDG using combined AND filters. Returns paginated results with financial metrics per row. Supports both offset and cursor-based pagination.

# Active manufacturing companies in Mazovia with revenue > 10M PLN
curl "https://compabase.com/api/v1/companies?pkd=28&voivodeship=mazowieckie&revenue_min=10000000&status_active=true&limit=10" \
-H "X-API-Key: YOUR_API_KEY"

Pagination

ModeParametersBest for
Offsetoffset, limitInteractive browsing, UI tables
Cursorcursor, limitDeep export, large dataset traversal

offset and cursor are mutually exclusive. Use cursor mode for deterministic deep paging; pagination.total may be -1 in cursor mode — rely on hasMore instead.

📋 Show all available filter parameters
ParameterTypeDescription
qstringFull-text company name search
keywordsstringKeyword token search
pkdstringPKD industry code — e.g. 46.90.Z. Combine with primary_only=true to match primary activity only
voivodeshipstringPolish voivodeship, lowercase — e.g. mazowieckie, śląskie, wielkopolskie
citystringCity name, uppercase — e.g. WARSZAWA, KRAKÓW
postal_codestringPostal code prefix
legal_formstringLegal form — e.g. SPÓŁKA AKCYJNA, SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ
status_activebooltrue = active companies only, false = inactive only
has_emailboolFilter by email presence
has_websiteboolFilter by website presence
currencystringCurrency for financial thresholds: PLN (default), USD, EUR
revenue_min / revenue_maxnumberTotal revenue range
revenue_operating_min / revenue_operating_maxnumberOperating revenue range
profit_net_min / profit_net_maxnumberNet profit range
profit_operating_min / profit_operating_maxnumberOperating profit range
ebitda_min / ebitda_maxnumberEBITDA range
total_assets_min / total_assets_maxnumberTotal assets range
capital_min / capital_maxnumberShare capital range
estimated_value_min / estimated_value_maxnumberEstimated company value range
cost_wages_min / cost_wages_maxnumberWage cost range
cost_amortization_min / cost_amortization_maxnumberAmortization cost range
income_tax_min / income_tax_maxnumberIncome tax range
registration_year_min / registration_year_maxintegerRegistration year range
last_report_year_min / last_report_year_maxintegerLast financial report year range

Financial range filters are evaluated against the latest indexed financial snapshot per company. Companies with null for a filtered metric do not match that filter.


GET /companies/count — Count Matching Companies

Returns a single count integer for the same filter set as /companies — without fetching rows. Ideal for faceted search UIs, dashboards, and estimating export volume before paginating.

curl "https://compabase.com/api/v1/companies/count?pkd=46.90.Z&voivodeship=śląskie&status_active=true" \
-H "X-API-Key: YOUR_API_KEY"# → { "count": 3142 }

GET /companies/krs/{krs} — Full Company Profile

Returns the complete profile for a Polish company identified by KRS number. Leading zeros are optional — the API normalizes the value to 10 digits server-side.

Response sections:

KeyContents
companyCore identifiers, address, PKD activities, display fields
detailsContacts (email, website), suspension/deletion flags, filings
financialsMulti-year P&L + balance sheet metrics in PLN / USD / EUR
rolesManagement board, supervisory board, proxies
ownershipShareholder structure — holding %, share count, values in PLN / USD / EUR
companySummaryAI-generated short description (PL / EN / DE)
similarCompaniesRelated companies by industry and size
curl "https://compabase.com/api/v1/companies/krs/0000028860" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/financial-statements — Financial Statements

Polish companies financial statements API — returns all financial metrics grouped by reporting year, without any profile or metadata. Values are available in PLN, USD and EUR.

📊 Show available financial fields

P&Lrevenue_total, revenue_operating, profit_net, profit_gross, ebit, ebitda, operating_costs_total, financial_income, financial_costs, income_tax

Balance sheettotal_assets, fixed_assets, current_assets, equity, liabilities_and_provisions

Ratiosroa, net_margin, asset_turnover

All fields are also available with _usd and _eur suffixes.

curl "https://compabase.com/api/v1/companies/krs/0000028860/financial-statements" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/structure-people — Ownership & Management Structure

Returns roles (management board, supervisory board, proxies) and ownership (shareholders with holding percentage, share count, and PLN / USD / EUR values) — without profile or financial data. Purpose-built for KRS ownership structure API integrations and corporate due diligence workflows.

curl "https://compabase.com/api/v1/companies/krs/0000028860/structure-people" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/status — Legal Status Check

Lightweight endpoint for active company verification in Poland. Returns status (active, bankruptcy, liquidation) and is_open flag. Validate KRS numbers or monitor status changes without pulling the full profile.

curl "https://compabase.com/api/v1/companies/krs/0000028860/status" \
-H "X-API-Key: YOUR_API_KEY"# → { "krs": "0000028860", "status": "active", "label": "Active", "is_open": true }

GET /usage — Quota Usage

Returns current-month usage for the authenticated key. Does not consume quota.

curl "https://compabase.com/api/v1/usage" \
-H "X-API-Key: YOUR_API_KEY"# → { "used": 42, "limit": 5000, "remaining": 4958, "monthUtc": "2026-06", "resetsAtUtc": "2026-07-01T00:00:00Z" }

GET /health — API Health

Public endpoint (no API key required). Returns { "status": "ok", "api": "v1", "timestamp": "..." }.


Authentication

Send your key in one of the supported headers:

X-API-Key: <your_key>
Authorization: Bearer <your_key>

Get a Free API Key instantly →


Plans & Quota

Each API key has a monthly request quota that resets every 30 days from your billing start date.

PlanRequests / month
Free100
Pro5 000
Scale100 000
EnterpriseCustom
  • GET /usage does not consume quota
  • 401 responses (auth fails before processing) do not consume quota
  • 429 responses (quota exhausted) do not consume additional quota
  • All other authenticated responses (200, 400, 404) do consume quota

OpenAPI Specification

  • v1.yaml — source of truth for the API contract (OpenAPI 3.1)
  • Base URL: https://compabase.com/api/v1/

Read the Full Interactive API Documentation →


Related

  • Compabase MCP Server — connect Claude, Cursor, and other AI assistants directly to Polish company data via the Model Context Protocol

License

MIT

About

Official OpenAPI specification for the Compabase API. Developer-first REST API for Polish companies data (KRS, CEIDG, RDF financial statements) normalized into JSON. Fast search, filtering, and B2B enrichment.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

🇵🇱 Polish Companies Data API (KRS & CEIDG) — Compabase

API DocsLicenseOpenAPIFree Tier

Compabase is a developer-first REST API to search, filter, and analyze over 3 million Polish companies from the KRS (Krajowy Rejestr Sądowy — National Court Register) and CEIDG (Centralna Ewidencja i Informacja o Działalności Gospodarczej). Access normalized company profiles, multi-year financial statements (P&L, balance sheet, ratios), KRS ownership structures, and management roles — all from a single consistent JSON API.

Compabase API Data Flow


Quick Start

# Get a full company profile by KRS number
curl "https://compabase.com/api/v1/companies/krs/0000028860" \
-H "X-API-Key: YOUR_API_KEY"
📄 Show example response
{
"company": {
"entity_id": "ad2ae683-ccbd-49c6-a85c-648024435cb5",
"registry_number": "0000028860",
"company_name": "ORLEN SPÓŁKA AKCYJNA",
"company_name_display": "Orlen",
"nip": "7740001454",
"regon": "61018820100000",
"legal_form": "SPÓŁKA AKCYJNA",
"city": "PŁOCK",
"region": "mazowieckie",
"full_address": "CHEMIKÓW 7, 09-411 Płock, PL",
"activities": [
{ "code_full": "19.20.Z", "is_primary": true, "description": "Manufacture of refined petroleum products" }
]
},
"details": {
"contacts": { "email": "zarzad@orlen.pl", "website": "orlen.pl" }
},
"financials": {
"years": ["2024", "2023"],
"byYear": {
"2024": [{
"revenue_total": 304668000000,
"revenue_total_usd": 76338762214.98,
"revenue_total_eur": 70672233820.46,
"profit_net": 1383000000,
"ebit": 2484000000,
"total_assets": 255368000000,
"equity": 146689000000,
"roa": 0.54,
"net_margin": 0.45
}]
}
},
"roles": [
{ "party": { "display_name": "Alejandro Martinez Ruiz" }, "role_name": "President of the Management Board" }
],
"ownership": [
{ "owner": { "display_name": "Skarb Państwa" }, "holding_percent": 49.9, "holding_value_pln": 4200000000 }
]
}

What You Can Build

  • Polish B2B database API — search and filter the full KRS company register by industry, location, revenue, and legal form
  • KRS search by PKD code — find all active companies in a specific industry sector across Poland
  • Validate KRS number — check legal status (active, bankruptcy, liquidation) in a single lightweight call
  • Polish companies financial statements API — pull multi-year P&L, balance sheet, and ratio data (PLN / USD / EUR)
  • KRS ownership structure API — explore shareholder structures and management boards for due diligence
  • Company revenue data Poland — rank companies by revenue, EBITDA, or total assets within any sector or region
  • Active company verification Poland — integrate status checks into onboarding or KYC flows
  • Lead generation & B2B enrichment — filter by has_email, has_website, voivodeship, and financial thresholds

Endpoints

MethodPathDescription
GET/companiesSearch & filter Polish companies (3M+ records, KRS & CEIDG)
GET/companies/countCount matching companies without fetching rows
GET/companies/krs/{krs}Full company profile by KRS number
GET/companies/krs/{krs}/financial-statementsMulti-year financial statements only
GET/companies/krs/{krs}/structure-peopleOwnership & management structure only
GET/companies/krs/{krs}/statusLightweight legal status check
GET/usageMonthly quota usage for the current API key
GET/healthPublic uptime check (no key required)

GET /companies — Search & Filter Polish Companies

Search over 3 million Polish companies from KRS and CEIDG using combined AND filters. Returns paginated results with financial metrics per row. Supports both offset and cursor-based pagination.

# Active manufacturing companies in Mazovia with revenue > 10M PLN
curl "https://compabase.com/api/v1/companies?pkd=28&voivodeship=mazowieckie&revenue_min=10000000&status_active=true&limit=10" \
-H "X-API-Key: YOUR_API_KEY"

Pagination

ModeParametersBest for
Offsetoffset, limitInteractive browsing, UI tables
Cursorcursor, limitDeep export, large dataset traversal

offset and cursor are mutually exclusive. Use cursor mode for deterministic deep paging; pagination.total may be -1 in cursor mode — rely on hasMore instead.

📋 Show all available filter parameters
ParameterTypeDescription
qstringFull-text company name search
keywordsstringKeyword token search
pkdstringPKD industry code — e.g. 46.90.Z. Combine with primary_only=true to match primary activity only
voivodeshipstringPolish voivodeship, lowercase — e.g. mazowieckie, śląskie, wielkopolskie
citystringCity name, uppercase — e.g. WARSZAWA, KRAKÓW
postal_codestringPostal code prefix
legal_formstringLegal form — e.g. SPÓŁKA AKCYJNA, SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ
status_activebooltrue = active companies only, false = inactive only
has_emailboolFilter by email presence
has_websiteboolFilter by website presence
currencystringCurrency for financial thresholds: PLN (default), USD, EUR
revenue_min / revenue_maxnumberTotal revenue range
revenue_operating_min / revenue_operating_maxnumberOperating revenue range
profit_net_min / profit_net_maxnumberNet profit range
profit_operating_min / profit_operating_maxnumberOperating profit range
ebitda_min / ebitda_maxnumberEBITDA range
total_assets_min / total_assets_maxnumberTotal assets range
capital_min / capital_maxnumberShare capital range
estimated_value_min / estimated_value_maxnumberEstimated company value range
cost_wages_min / cost_wages_maxnumberWage cost range
cost_amortization_min / cost_amortization_maxnumberAmortization cost range
income_tax_min / income_tax_maxnumberIncome tax range
registration_year_min / registration_year_maxintegerRegistration year range
last_report_year_min / last_report_year_maxintegerLast financial report year range

Financial range filters are evaluated against the latest indexed financial snapshot per company. Companies with null for a filtered metric do not match that filter.


GET /companies/count — Count Matching Companies

Returns a single count integer for the same filter set as /companies — without fetching rows. Ideal for faceted search UIs, dashboards, and estimating export volume before paginating.

curl "https://compabase.com/api/v1/companies/count?pkd=46.90.Z&voivodeship=śląskie&status_active=true" \
-H "X-API-Key: YOUR_API_KEY"# → { "count": 3142 }

GET /companies/krs/{krs} — Full Company Profile

Returns the complete profile for a Polish company identified by KRS number. Leading zeros are optional — the API normalizes the value to 10 digits server-side.

Response sections:

KeyContents
companyCore identifiers, address, PKD activities, display fields
detailsContacts (email, website), suspension/deletion flags, filings
financialsMulti-year P&L + balance sheet metrics in PLN / USD / EUR
rolesManagement board, supervisory board, proxies
ownershipShareholder structure — holding %, share count, values in PLN / USD / EUR
companySummaryAI-generated short description (PL / EN / DE)
similarCompaniesRelated companies by industry and size
curl "https://compabase.com/api/v1/companies/krs/0000028860" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/financial-statements — Financial Statements

Polish companies financial statements API — returns all financial metrics grouped by reporting year, without any profile or metadata. Values are available in PLN, USD and EUR.

📊 Show available financial fields

P&Lrevenue_total, revenue_operating, profit_net, profit_gross, ebit, ebitda, operating_costs_total, financial_income, financial_costs, income_tax

Balance sheettotal_assets, fixed_assets, current_assets, equity, liabilities_and_provisions

Ratiosroa, net_margin, asset_turnover

All fields are also available with _usd and _eur suffixes.

curl "https://compabase.com/api/v1/companies/krs/0000028860/financial-statements" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/structure-people — Ownership & Management Structure

Returns roles (management board, supervisory board, proxies) and ownership (shareholders with holding percentage, share count, and PLN / USD / EUR values) — without profile or financial data. Purpose-built for KRS ownership structure API integrations and corporate due diligence workflows.

curl "https://compabase.com/api/v1/companies/krs/0000028860/structure-people" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/status — Legal Status Check

Lightweight endpoint for active company verification in Poland. Returns status (active, bankruptcy, liquidation) and is_open flag. Validate KRS numbers or monitor status changes without pulling the full profile.

curl "https://compabase.com/api/v1/companies/krs/0000028860/status" \
-H "X-API-Key: YOUR_API_KEY"# → { "krs": "0000028860", "status": "active", "label": "Active", "is_open": true }

GET /usage — Quota Usage

Returns current-month usage for the authenticated key. Does not consume quota.

curl "https://compabase.com/api/v1/usage" \
-H "X-API-Key: YOUR_API_KEY"# → { "used": 42, "limit": 5000, "remaining": 4958, "monthUtc": "2026-06", "resetsAtUtc": "2026-07-01T00:00:00Z" }

GET /health — API Health

Public endpoint (no API key required). Returns { "status": "ok", "api": "v1", "timestamp": "..." }.


Authentication

Send your key in one of the supported headers:

X-API-Key: <your_key>
Authorization: Bearer <your_key>

Get a Free API Key instantly →


Plans & Quota

Each API key has a monthly request quota that resets every 30 days from your billing start date.

PlanRequests / month
Free100
Pro5 000
Scale100 000
EnterpriseCustom
  • GET /usage does not consume quota
  • 401 responses (auth fails before processing) do not consume quota
  • 429 responses (quota exhausted) do not consume additional quota
  • All other authenticated responses (200, 400, 404) do consume quota

OpenAPI Specification

  • v1.yaml — source of truth for the API contract (OpenAPI 3.1)
  • Base URL: https://compabase.com/api/v1/

Read the Full Interactive API Documentation →


Related

  • Compabase MCP Server — connect Claude, Cursor, and other AI assistants directly to Polish company data via the Model Context Protocol

License

MIT

About

Official OpenAPI specification for the Compabase API. Developer-first REST API for Polish companies data (KRS, CEIDG, RDF financial statements) normalized into JSON. Fast search, filtering, and B2B enrichment.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Latest commit

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

🇵🇱 Polish Companies Data API (KRS & CEIDG) — Compabase

API DocsLicenseOpenAPIFree Tier

Compabase is a developer-first REST API to search, filter, and analyze over 3 million Polish companies from the KRS (Krajowy Rejestr Sądowy — National Court Register) and CEIDG (Centralna Ewidencja i Informacja o Działalności Gospodarczej). Access normalized company profiles, multi-year financial statements (P&L, balance sheet, ratios), KRS ownership structures, and management roles — all from a single consistent JSON API.

Compabase API Data Flow


Quick Start

# Get a full company profile by KRS number
curl "https://compabase.com/api/v1/companies/krs/0000028860" \
-H "X-API-Key: YOUR_API_KEY"
📄 Show example response
{
"company": {
"entity_id": "ad2ae683-ccbd-49c6-a85c-648024435cb5",
"registry_number": "0000028860",
"company_name": "ORLEN SPÓŁKA AKCYJNA",
"company_name_display": "Orlen",
"nip": "7740001454",
"regon": "61018820100000",
"legal_form": "SPÓŁKA AKCYJNA",
"city": "PŁOCK",
"region": "mazowieckie",
"full_address": "CHEMIKÓW 7, 09-411 Płock, PL",
"activities": [
{ "code_full": "19.20.Z", "is_primary": true, "description": "Manufacture of refined petroleum products" }
]
},
"details": {
"contacts": { "email": "zarzad@orlen.pl", "website": "orlen.pl" }
},
"financials": {
"years": ["2024", "2023"],
"byYear": {
"2024": [{
"revenue_total": 304668000000,
"revenue_total_usd": 76338762214.98,
"revenue_total_eur": 70672233820.46,
"profit_net": 1383000000,
"ebit": 2484000000,
"total_assets": 255368000000,
"equity": 146689000000,
"roa": 0.54,
"net_margin": 0.45
}]
}
},
"roles": [
{ "party": { "display_name": "Alejandro Martinez Ruiz" }, "role_name": "President of the Management Board" }
],
"ownership": [
{ "owner": { "display_name": "Skarb Państwa" }, "holding_percent": 49.9, "holding_value_pln": 4200000000 }
]
}

What You Can Build

  • Polish B2B database API — search and filter the full KRS company register by industry, location, revenue, and legal form
  • KRS search by PKD code — find all active companies in a specific industry sector across Poland
  • Validate KRS number — check legal status (active, bankruptcy, liquidation) in a single lightweight call
  • Polish companies financial statements API — pull multi-year P&L, balance sheet, and ratio data (PLN / USD / EUR)
  • KRS ownership structure API — explore shareholder structures and management boards for due diligence
  • Company revenue data Poland — rank companies by revenue, EBITDA, or total assets within any sector or region
  • Active company verification Poland — integrate status checks into onboarding or KYC flows
  • Lead generation & B2B enrichment — filter by has_email, has_website, voivodeship, and financial thresholds

Endpoints

MethodPathDescription
GET/companiesSearch & filter Polish companies (3M+ records, KRS & CEIDG)
GET/companies/countCount matching companies without fetching rows
GET/companies/krs/{krs}Full company profile by KRS number
GET/companies/krs/{krs}/financial-statementsMulti-year financial statements only
GET/companies/krs/{krs}/structure-peopleOwnership & management structure only
GET/companies/krs/{krs}/statusLightweight legal status check
GET/usageMonthly quota usage for the current API key
GET/healthPublic uptime check (no key required)

GET /companies — Search & Filter Polish Companies

Search over 3 million Polish companies from KRS and CEIDG using combined AND filters. Returns paginated results with financial metrics per row. Supports both offset and cursor-based pagination.

# Active manufacturing companies in Mazovia with revenue > 10M PLN
curl "https://compabase.com/api/v1/companies?pkd=28&voivodeship=mazowieckie&revenue_min=10000000&status_active=true&limit=10" \
-H "X-API-Key: YOUR_API_KEY"

Pagination

ModeParametersBest for
Offsetoffset, limitInteractive browsing, UI tables
Cursorcursor, limitDeep export, large dataset traversal

offset and cursor are mutually exclusive. Use cursor mode for deterministic deep paging; pagination.total may be -1 in cursor mode — rely on hasMore instead.

📋 Show all available filter parameters
ParameterTypeDescription
qstringFull-text company name search
keywordsstringKeyword token search
pkdstringPKD industry code — e.g. 46.90.Z. Combine with primary_only=true to match primary activity only
voivodeshipstringPolish voivodeship, lowercase — e.g. mazowieckie, śląskie, wielkopolskie
citystringCity name, uppercase — e.g. WARSZAWA, KRAKÓW
postal_codestringPostal code prefix
legal_formstringLegal form — e.g. SPÓŁKA AKCYJNA, SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ
status_activebooltrue = active companies only, false = inactive only
has_emailboolFilter by email presence
has_websiteboolFilter by website presence
currencystringCurrency for financial thresholds: PLN (default), USD, EUR
revenue_min / revenue_maxnumberTotal revenue range
revenue_operating_min / revenue_operating_maxnumberOperating revenue range
profit_net_min / profit_net_maxnumberNet profit range
profit_operating_min / profit_operating_maxnumberOperating profit range
ebitda_min / ebitda_maxnumberEBITDA range
total_assets_min / total_assets_maxnumberTotal assets range
capital_min / capital_maxnumberShare capital range
estimated_value_min / estimated_value_maxnumberEstimated company value range
cost_wages_min / cost_wages_maxnumberWage cost range
cost_amortization_min / cost_amortization_maxnumberAmortization cost range
income_tax_min / income_tax_maxnumberIncome tax range
registration_year_min / registration_year_maxintegerRegistration year range
last_report_year_min / last_report_year_maxintegerLast financial report year range

Financial range filters are evaluated against the latest indexed financial snapshot per company. Companies with null for a filtered metric do not match that filter.


GET /companies/count — Count Matching Companies

Returns a single count integer for the same filter set as /companies — without fetching rows. Ideal for faceted search UIs, dashboards, and estimating export volume before paginating.

curl "https://compabase.com/api/v1/companies/count?pkd=46.90.Z&voivodeship=śląskie&status_active=true" \
-H "X-API-Key: YOUR_API_KEY"# → { "count": 3142 }

GET /companies/krs/{krs} — Full Company Profile

Returns the complete profile for a Polish company identified by KRS number. Leading zeros are optional — the API normalizes the value to 10 digits server-side.

Response sections:

KeyContents
companyCore identifiers, address, PKD activities, display fields
detailsContacts (email, website), suspension/deletion flags, filings
financialsMulti-year P&L + balance sheet metrics in PLN / USD / EUR
rolesManagement board, supervisory board, proxies
ownershipShareholder structure — holding %, share count, values in PLN / USD / EUR
companySummaryAI-generated short description (PL / EN / DE)
similarCompaniesRelated companies by industry and size
curl "https://compabase.com/api/v1/companies/krs/0000028860" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/financial-statements — Financial Statements

Polish companies financial statements API — returns all financial metrics grouped by reporting year, without any profile or metadata. Values are available in PLN, USD and EUR.

📊 Show available financial fields

P&Lrevenue_total, revenue_operating, profit_net, profit_gross, ebit, ebitda, operating_costs_total, financial_income, financial_costs, income_tax

Balance sheettotal_assets, fixed_assets, current_assets, equity, liabilities_and_provisions

Ratiosroa, net_margin, asset_turnover

All fields are also available with _usd and _eur suffixes.

curl "https://compabase.com/api/v1/companies/krs/0000028860/financial-statements" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/structure-people — Ownership & Management Structure

Returns roles (management board, supervisory board, proxies) and ownership (shareholders with holding percentage, share count, and PLN / USD / EUR values) — without profile or financial data. Purpose-built for KRS ownership structure API integrations and corporate due diligence workflows.

curl "https://compabase.com/api/v1/companies/krs/0000028860/structure-people" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/status — Legal Status Check

Lightweight endpoint for active company verification in Poland. Returns status (active, bankruptcy, liquidation) and is_open flag. Validate KRS numbers or monitor status changes without pulling the full profile.

curl "https://compabase.com/api/v1/companies/krs/0000028860/status" \
-H "X-API-Key: YOUR_API_KEY"# → { "krs": "0000028860", "status": "active", "label": "Active", "is_open": true }

GET /usage — Quota Usage

Returns current-month usage for the authenticated key. Does not consume quota.

curl "https://compabase.com/api/v1/usage" \
-H "X-API-Key: YOUR_API_KEY"# → { "used": 42, "limit": 5000, "remaining": 4958, "monthUtc": "2026-06", "resetsAtUtc": "2026-07-01T00:00:00Z" }

GET /health — API Health

Public endpoint (no API key required). Returns { "status": "ok", "api": "v1", "timestamp": "..." }.


Authentication

Send your key in one of the supported headers:

X-API-Key: <your_key>
Authorization: Bearer <your_key>

Get a Free API Key instantly →


Plans & Quota

Each API key has a monthly request quota that resets every 30 days from your billing start date.

PlanRequests / month
Free100
Pro5 000
Scale100 000
EnterpriseCustom
  • GET /usage does not consume quota
  • 401 responses (auth fails before processing) do not consume quota
  • 429 responses (quota exhausted) do not consume additional quota
  • All other authenticated responses (200, 400, 404) do consume quota

OpenAPI Specification

  • v1.yaml — source of truth for the API contract (OpenAPI 3.1)
  • Base URL: https://compabase.com/api/v1/

Read the Full Interactive API Documentation →


Related

  • Compabase MCP Server — connect Claude, Cursor, and other AI assistants directly to Polish company data via the Model Context Protocol

License

MIT

About

Official OpenAPI specification for the Compabase API. Developer-first REST API for Polish companies data (KRS, CEIDG, RDF financial statements) normalized into JSON. Fast search, filtering, and B2B enrichment.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

🇵🇱 Polish Companies Data API (KRS & CEIDG) — Compabase

API DocsLicenseOpenAPIFree Tier

Compabase is a developer-first REST API to search, filter, and analyze over 3 million Polish companies from the KRS (Krajowy Rejestr Sądowy — National Court Register) and CEIDG (Centralna Ewidencja i Informacja o Działalności Gospodarczej). Access normalized company profiles, multi-year financial statements (P&L, balance sheet, ratios), KRS ownership structures, and management roles — all from a single consistent JSON API.

Compabase API Data Flow


Quick Start

# Get a full company profile by KRS number
curl "https://compabase.com/api/v1/companies/krs/0000028860" \
-H "X-API-Key: YOUR_API_KEY"
📄 Show example response
{
"company": {
"entity_id": "ad2ae683-ccbd-49c6-a85c-648024435cb5",
"registry_number": "0000028860",
"company_name": "ORLEN SPÓŁKA AKCYJNA",
"company_name_display": "Orlen",
"nip": "7740001454",
"regon": "61018820100000",
"legal_form": "SPÓŁKA AKCYJNA",
"city": "PŁOCK",
"region": "mazowieckie",
"full_address": "CHEMIKÓW 7, 09-411 Płock, PL",
"activities": [
{ "code_full": "19.20.Z", "is_primary": true, "description": "Manufacture of refined petroleum products" }
]
},
"details": {
"contacts": { "email": "zarzad@orlen.pl", "website": "orlen.pl" }
},
"financials": {
"years": ["2024", "2023"],
"byYear": {
"2024": [{
"revenue_total": 304668000000,
"revenue_total_usd": 76338762214.98,
"revenue_total_eur": 70672233820.46,
"profit_net": 1383000000,
"ebit": 2484000000,
"total_assets": 255368000000,
"equity": 146689000000,
"roa": 0.54,
"net_margin": 0.45
}]
}
},
"roles": [
{ "party": { "display_name": "Alejandro Martinez Ruiz" }, "role_name": "President of the Management Board" }
],
"ownership": [
{ "owner": { "display_name": "Skarb Państwa" }, "holding_percent": 49.9, "holding_value_pln": 4200000000 }
]
}

What You Can Build

  • Polish B2B database API — search and filter the full KRS company register by industry, location, revenue, and legal form
  • KRS search by PKD code — find all active companies in a specific industry sector across Poland
  • Validate KRS number — check legal status (active, bankruptcy, liquidation) in a single lightweight call
  • Polish companies financial statements API — pull multi-year P&L, balance sheet, and ratio data (PLN / USD / EUR)
  • KRS ownership structure API — explore shareholder structures and management boards for due diligence
  • Company revenue data Poland — rank companies by revenue, EBITDA, or total assets within any sector or region
  • Active company verification Poland — integrate status checks into onboarding or KYC flows
  • Lead generation & B2B enrichment — filter by has_email, has_website, voivodeship, and financial thresholds

Endpoints

MethodPathDescription
GET/companiesSearch & filter Polish companies (3M+ records, KRS & CEIDG)
GET/companies/countCount matching companies without fetching rows
GET/companies/krs/{krs}Full company profile by KRS number
GET/companies/krs/{krs}/financial-statementsMulti-year financial statements only
GET/companies/krs/{krs}/structure-peopleOwnership & management structure only
GET/companies/krs/{krs}/statusLightweight legal status check
GET/usageMonthly quota usage for the current API key
GET/healthPublic uptime check (no key required)

GET /companies — Search & Filter Polish Companies

Search over 3 million Polish companies from KRS and CEIDG using combined AND filters. Returns paginated results with financial metrics per row. Supports both offset and cursor-based pagination.

# Active manufacturing companies in Mazovia with revenue > 10M PLN
curl "https://compabase.com/api/v1/companies?pkd=28&voivodeship=mazowieckie&revenue_min=10000000&status_active=true&limit=10" \
-H "X-API-Key: YOUR_API_KEY"

Pagination

ModeParametersBest for
Offsetoffset, limitInteractive browsing, UI tables
Cursorcursor, limitDeep export, large dataset traversal

offset and cursor are mutually exclusive. Use cursor mode for deterministic deep paging; pagination.total may be -1 in cursor mode — rely on hasMore instead.

📋 Show all available filter parameters
ParameterTypeDescription
qstringFull-text company name search
keywordsstringKeyword token search
pkdstringPKD industry code — e.g. 46.90.Z. Combine with primary_only=true to match primary activity only
voivodeshipstringPolish voivodeship, lowercase — e.g. mazowieckie, śląskie, wielkopolskie
citystringCity name, uppercase — e.g. WARSZAWA, KRAKÓW
postal_codestringPostal code prefix
legal_formstringLegal form — e.g. SPÓŁKA AKCYJNA, SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ
status_activebooltrue = active companies only, false = inactive only
has_emailboolFilter by email presence
has_websiteboolFilter by website presence
currencystringCurrency for financial thresholds: PLN (default), USD, EUR
revenue_min / revenue_maxnumberTotal revenue range
revenue_operating_min / revenue_operating_maxnumberOperating revenue range
profit_net_min / profit_net_maxnumberNet profit range
profit_operating_min / profit_operating_maxnumberOperating profit range
ebitda_min / ebitda_maxnumberEBITDA range
total_assets_min / total_assets_maxnumberTotal assets range
capital_min / capital_maxnumberShare capital range
estimated_value_min / estimated_value_maxnumberEstimated company value range
cost_wages_min / cost_wages_maxnumberWage cost range
cost_amortization_min / cost_amortization_maxnumberAmortization cost range
income_tax_min / income_tax_maxnumberIncome tax range
registration_year_min / registration_year_maxintegerRegistration year range
last_report_year_min / last_report_year_maxintegerLast financial report year range

Financial range filters are evaluated against the latest indexed financial snapshot per company. Companies with null for a filtered metric do not match that filter.


GET /companies/count — Count Matching Companies

Returns a single count integer for the same filter set as /companies — without fetching rows. Ideal for faceted search UIs, dashboards, and estimating export volume before paginating.

curl "https://compabase.com/api/v1/companies/count?pkd=46.90.Z&voivodeship=śląskie&status_active=true" \
-H "X-API-Key: YOUR_API_KEY"# → { "count": 3142 }

GET /companies/krs/{krs} — Full Company Profile

Returns the complete profile for a Polish company identified by KRS number. Leading zeros are optional — the API normalizes the value to 10 digits server-side.

Response sections:

KeyContents
companyCore identifiers, address, PKD activities, display fields
detailsContacts (email, website), suspension/deletion flags, filings
financialsMulti-year P&L + balance sheet metrics in PLN / USD / EUR
rolesManagement board, supervisory board, proxies
ownershipShareholder structure — holding %, share count, values in PLN / USD / EUR
companySummaryAI-generated short description (PL / EN / DE)
similarCompaniesRelated companies by industry and size
curl "https://compabase.com/api/v1/companies/krs/0000028860" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/financial-statements — Financial Statements

Polish companies financial statements API — returns all financial metrics grouped by reporting year, without any profile or metadata. Values are available in PLN, USD and EUR.

📊 Show available financial fields

P&Lrevenue_total, revenue_operating, profit_net, profit_gross, ebit, ebitda, operating_costs_total, financial_income, financial_costs, income_tax

Balance sheettotal_assets, fixed_assets, current_assets, equity, liabilities_and_provisions

Ratiosroa, net_margin, asset_turnover

All fields are also available with _usd and _eur suffixes.

curl "https://compabase.com/api/v1/companies/krs/0000028860/financial-statements" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/structure-people — Ownership & Management Structure

Returns roles (management board, supervisory board, proxies) and ownership (shareholders with holding percentage, share count, and PLN / USD / EUR values) — without profile or financial data. Purpose-built for KRS ownership structure API integrations and corporate due diligence workflows.

curl "https://compabase.com/api/v1/companies/krs/0000028860/structure-people" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/status — Legal Status Check

Lightweight endpoint for active company verification in Poland. Returns status (active, bankruptcy, liquidation) and is_open flag. Validate KRS numbers or monitor status changes without pulling the full profile.

curl "https://compabase.com/api/v1/companies/krs/0000028860/status" \
-H "X-API-Key: YOUR_API_KEY"# → { "krs": "0000028860", "status": "active", "label": "Active", "is_open": true }

GET /usage — Quota Usage

Returns current-month usage for the authenticated key. Does not consume quota.

curl "https://compabase.com/api/v1/usage" \
-H "X-API-Key: YOUR_API_KEY"# → { "used": 42, "limit": 5000, "remaining": 4958, "monthUtc": "2026-06", "resetsAtUtc": "2026-07-01T00:00:00Z" }

GET /health — API Health

Public endpoint (no API key required). Returns { "status": "ok", "api": "v1", "timestamp": "..." }.


Authentication

Send your key in one of the supported headers:

X-API-Key: <your_key>
Authorization: Bearer <your_key>

Get a Free API Key instantly →


Plans & Quota

Each API key has a monthly request quota that resets every 30 days from your billing start date.

PlanRequests / month
Free100
Pro5 000
Scale100 000
EnterpriseCustom
  • GET /usage does not consume quota
  • 401 responses (auth fails before processing) do not consume quota
  • 429 responses (quota exhausted) do not consume additional quota
  • All other authenticated responses (200, 400, 404) do consume quota

OpenAPI Specification

  • v1.yaml — source of truth for the API contract (OpenAPI 3.1)
  • Base URL: https://compabase.com/api/v1/

Read the Full Interactive API Documentation →


Related

  • Compabase MCP Server — connect Claude, Cursor, and other AI assistants directly to Polish company data via the Model Context Protocol

License

MIT

About

Official OpenAPI specification for the Compabase API. Developer-first REST API for Polish companies data (KRS, CEIDG, RDF financial statements) normalized into JSON. Fast search, filtering, and B2B enrichment.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

🇵🇱 Polish Companies Data API (KRS & CEIDG) — Compabase

API DocsLicenseOpenAPIFree Tier

Compabase is a developer-first REST API to search, filter, and analyze over 3 million Polish companies from the KRS (Krajowy Rejestr Sądowy — National Court Register) and CEIDG (Centralna Ewidencja i Informacja o Działalności Gospodarczej). Access normalized company profiles, multi-year financial statements (P&L, balance sheet, ratios), KRS ownership structures, and management roles — all from a single consistent JSON API.

Compabase API Data Flow


Quick Start

# Get a full company profile by KRS number
curl "https://compabase.com/api/v1/companies/krs/0000028860" \
-H "X-API-Key: YOUR_API_KEY"
📄 Show example response
{
"company": {
"entity_id": "ad2ae683-ccbd-49c6-a85c-648024435cb5",
"registry_number": "0000028860",
"company_name": "ORLEN SPÓŁKA AKCYJNA",
"company_name_display": "Orlen",
"nip": "7740001454",
"regon": "61018820100000",
"legal_form": "SPÓŁKA AKCYJNA",
"city": "PŁOCK",
"region": "mazowieckie",
"full_address": "CHEMIKÓW 7, 09-411 Płock, PL",
"activities": [
{ "code_full": "19.20.Z", "is_primary": true, "description": "Manufacture of refined petroleum products" }
]
},
"details": {
"contacts": { "email": "zarzad@orlen.pl", "website": "orlen.pl" }
},
"financials": {
"years": ["2024", "2023"],
"byYear": {
"2024": [{
"revenue_total": 304668000000,
"revenue_total_usd": 76338762214.98,
"revenue_total_eur": 70672233820.46,
"profit_net": 1383000000,
"ebit": 2484000000,
"total_assets": 255368000000,
"equity": 146689000000,
"roa": 0.54,
"net_margin": 0.45
}]
}
},
"roles": [
{ "party": { "display_name": "Alejandro Martinez Ruiz" }, "role_name": "President of the Management Board" }
],
"ownership": [
{ "owner": { "display_name": "Skarb Państwa" }, "holding_percent": 49.9, "holding_value_pln": 4200000000 }
]
}

What You Can Build

  • Polish B2B database API — search and filter the full KRS company register by industry, location, revenue, and legal form
  • KRS search by PKD code — find all active companies in a specific industry sector across Poland
  • Validate KRS number — check legal status (active, bankruptcy, liquidation) in a single lightweight call
  • Polish companies financial statements API — pull multi-year P&L, balance sheet, and ratio data (PLN / USD / EUR)
  • KRS ownership structure API — explore shareholder structures and management boards for due diligence
  • Company revenue data Poland — rank companies by revenue, EBITDA, or total assets within any sector or region
  • Active company verification Poland — integrate status checks into onboarding or KYC flows
  • Lead generation & B2B enrichment — filter by has_email, has_website, voivodeship, and financial thresholds

Endpoints

MethodPathDescription
GET/companiesSearch & filter Polish companies (3M+ records, KRS & CEIDG)
GET/companies/countCount matching companies without fetching rows
GET/companies/krs/{krs}Full company profile by KRS number
GET/companies/krs/{krs}/financial-statementsMulti-year financial statements only
GET/companies/krs/{krs}/structure-peopleOwnership & management structure only
GET/companies/krs/{krs}/statusLightweight legal status check
GET/usageMonthly quota usage for the current API key
GET/healthPublic uptime check (no key required)

GET /companies — Search & Filter Polish Companies

Search over 3 million Polish companies from KRS and CEIDG using combined AND filters. Returns paginated results with financial metrics per row. Supports both offset and cursor-based pagination.

# Active manufacturing companies in Mazovia with revenue > 10M PLN
curl "https://compabase.com/api/v1/companies?pkd=28&voivodeship=mazowieckie&revenue_min=10000000&status_active=true&limit=10" \
-H "X-API-Key: YOUR_API_KEY"

Pagination

ModeParametersBest for
Offsetoffset, limitInteractive browsing, UI tables
Cursorcursor, limitDeep export, large dataset traversal

offset and cursor are mutually exclusive. Use cursor mode for deterministic deep paging; pagination.total may be -1 in cursor mode — rely on hasMore instead.

📋 Show all available filter parameters
ParameterTypeDescription
qstringFull-text company name search
keywordsstringKeyword token search
pkdstringPKD industry code — e.g. 46.90.Z. Combine with primary_only=true to match primary activity only
voivodeshipstringPolish voivodeship, lowercase — e.g. mazowieckie, śląskie, wielkopolskie
citystringCity name, uppercase — e.g. WARSZAWA, KRAKÓW
postal_codestringPostal code prefix
legal_formstringLegal form — e.g. SPÓŁKA AKCYJNA, SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ
status_activebooltrue = active companies only, false = inactive only
has_emailboolFilter by email presence
has_websiteboolFilter by website presence
currencystringCurrency for financial thresholds: PLN (default), USD, EUR
revenue_min / revenue_maxnumberTotal revenue range
revenue_operating_min / revenue_operating_maxnumberOperating revenue range
profit_net_min / profit_net_maxnumberNet profit range
profit_operating_min / profit_operating_maxnumberOperating profit range
ebitda_min / ebitda_maxnumberEBITDA range
total_assets_min / total_assets_maxnumberTotal assets range
capital_min / capital_maxnumberShare capital range
estimated_value_min / estimated_value_maxnumberEstimated company value range
cost_wages_min / cost_wages_maxnumberWage cost range
cost_amortization_min / cost_amortization_maxnumberAmortization cost range
income_tax_min / income_tax_maxnumberIncome tax range
registration_year_min / registration_year_maxintegerRegistration year range
last_report_year_min / last_report_year_maxintegerLast financial report year range

Financial range filters are evaluated against the latest indexed financial snapshot per company. Companies with null for a filtered metric do not match that filter.


GET /companies/count — Count Matching Companies

Returns a single count integer for the same filter set as /companies — without fetching rows. Ideal for faceted search UIs, dashboards, and estimating export volume before paginating.

curl "https://compabase.com/api/v1/companies/count?pkd=46.90.Z&voivodeship=śląskie&status_active=true" \
-H "X-API-Key: YOUR_API_KEY"# → { "count": 3142 }

GET /companies/krs/{krs} — Full Company Profile

Returns the complete profile for a Polish company identified by KRS number. Leading zeros are optional — the API normalizes the value to 10 digits server-side.

Response sections:

KeyContents
companyCore identifiers, address, PKD activities, display fields
detailsContacts (email, website), suspension/deletion flags, filings
financialsMulti-year P&L + balance sheet metrics in PLN / USD / EUR
rolesManagement board, supervisory board, proxies
ownershipShareholder structure — holding %, share count, values in PLN / USD / EUR
companySummaryAI-generated short description (PL / EN / DE)
similarCompaniesRelated companies by industry and size
curl "https://compabase.com/api/v1/companies/krs/0000028860" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/financial-statements — Financial Statements

Polish companies financial statements API — returns all financial metrics grouped by reporting year, without any profile or metadata. Values are available in PLN, USD and EUR.

📊 Show available financial fields

P&Lrevenue_total, revenue_operating, profit_net, profit_gross, ebit, ebitda, operating_costs_total, financial_income, financial_costs, income_tax

Balance sheettotal_assets, fixed_assets, current_assets, equity, liabilities_and_provisions

Ratiosroa, net_margin, asset_turnover

All fields are also available with _usd and _eur suffixes.

curl "https://compabase.com/api/v1/companies/krs/0000028860/financial-statements" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/structure-people — Ownership & Management Structure

Returns roles (management board, supervisory board, proxies) and ownership (shareholders with holding percentage, share count, and PLN / USD / EUR values) — without profile or financial data. Purpose-built for KRS ownership structure API integrations and corporate due diligence workflows.

curl "https://compabase.com/api/v1/companies/krs/0000028860/structure-people" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/status — Legal Status Check

Lightweight endpoint for active company verification in Poland. Returns status (active, bankruptcy, liquidation) and is_open flag. Validate KRS numbers or monitor status changes without pulling the full profile.

curl "https://compabase.com/api/v1/companies/krs/0000028860/status" \
-H "X-API-Key: YOUR_API_KEY"# → { "krs": "0000028860", "status": "active", "label": "Active", "is_open": true }

GET /usage — Quota Usage

Returns current-month usage for the authenticated key. Does not consume quota.

curl "https://compabase.com/api/v1/usage" \
-H "X-API-Key: YOUR_API_KEY"# → { "used": 42, "limit": 5000, "remaining": 4958, "monthUtc": "2026-06", "resetsAtUtc": "2026-07-01T00:00:00Z" }

GET /health — API Health

Public endpoint (no API key required). Returns { "status": "ok", "api": "v1", "timestamp": "..." }.


Authentication

Send your key in one of the supported headers:

X-API-Key: <your_key>
Authorization: Bearer <your_key>

Get a Free API Key instantly →


Plans & Quota

Each API key has a monthly request quota that resets every 30 days from your billing start date.

PlanRequests / month
Free100
Pro5 000
Scale100 000
EnterpriseCustom
  • GET /usage does not consume quota
  • 401 responses (auth fails before processing) do not consume quota
  • 429 responses (quota exhausted) do not consume additional quota
  • All other authenticated responses (200, 400, 404) do consume quota

OpenAPI Specification

  • v1.yaml — source of truth for the API contract (OpenAPI 3.1)
  • Base URL: https://compabase.com/api/v1/

Read the Full Interactive API Documentation →


Related

  • Compabase MCP Server — connect Claude, Cursor, and other AI assistants directly to Polish company data via the Model Context Protocol

License

MIT

About

Official OpenAPI specification for the Compabase API. Developer-first REST API for Polish companies data (KRS, CEIDG, RDF financial statements) normalized into JSON. Fast search, filtering, and B2B enrichment.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Latest commit

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

🇵🇱 Polish Companies Data API (KRS & CEIDG) — Compabase

API DocsLicenseOpenAPIFree Tier

Compabase is a developer-first REST API to search, filter, and analyze over 3 million Polish companies from the KRS (Krajowy Rejestr Sądowy — National Court Register) and CEIDG (Centralna Ewidencja i Informacja o Działalności Gospodarczej). Access normalized company profiles, multi-year financial statements (P&L, balance sheet, ratios), KRS ownership structures, and management roles — all from a single consistent JSON API.

Compabase API Data Flow


Quick Start

# Get a full company profile by KRS number
curl "https://compabase.com/api/v1/companies/krs/0000028860" \
-H "X-API-Key: YOUR_API_KEY"
📄 Show example response
{
"company": {
"entity_id": "ad2ae683-ccbd-49c6-a85c-648024435cb5",
"registry_number": "0000028860",
"company_name": "ORLEN SPÓŁKA AKCYJNA",
"company_name_display": "Orlen",
"nip": "7740001454",
"regon": "61018820100000",
"legal_form": "SPÓŁKA AKCYJNA",
"city": "PŁOCK",
"region": "mazowieckie",
"full_address": "CHEMIKÓW 7, 09-411 Płock, PL",
"activities": [
{ "code_full": "19.20.Z", "is_primary": true, "description": "Manufacture of refined petroleum products" }
]
},
"details": {
"contacts": { "email": "zarzad@orlen.pl", "website": "orlen.pl" }
},
"financials": {
"years": ["2024", "2023"],
"byYear": {
"2024": [{
"revenue_total": 304668000000,
"revenue_total_usd": 76338762214.98,
"revenue_total_eur": 70672233820.46,
"profit_net": 1383000000,
"ebit": 2484000000,
"total_assets": 255368000000,
"equity": 146689000000,
"roa": 0.54,
"net_margin": 0.45
}]
}
},
"roles": [
{ "party": { "display_name": "Alejandro Martinez Ruiz" }, "role_name": "President of the Management Board" }
],
"ownership": [
{ "owner": { "display_name": "Skarb Państwa" }, "holding_percent": 49.9, "holding_value_pln": 4200000000 }
]
}

What You Can Build

  • Polish B2B database API — search and filter the full KRS company register by industry, location, revenue, and legal form
  • KRS search by PKD code — find all active companies in a specific industry sector across Poland
  • Validate KRS number — check legal status (active, bankruptcy, liquidation) in a single lightweight call
  • Polish companies financial statements API — pull multi-year P&L, balance sheet, and ratio data (PLN / USD / EUR)
  • KRS ownership structure API — explore shareholder structures and management boards for due diligence
  • Company revenue data Poland — rank companies by revenue, EBITDA, or total assets within any sector or region
  • Active company verification Poland — integrate status checks into onboarding or KYC flows
  • Lead generation & B2B enrichment — filter by has_email, has_website, voivodeship, and financial thresholds

Endpoints

MethodPathDescription
GET/companiesSearch & filter Polish companies (3M+ records, KRS & CEIDG)
GET/companies/countCount matching companies without fetching rows
GET/companies/krs/{krs}Full company profile by KRS number
GET/companies/krs/{krs}/financial-statementsMulti-year financial statements only
GET/companies/krs/{krs}/structure-peopleOwnership & management structure only
GET/companies/krs/{krs}/statusLightweight legal status check
GET/usageMonthly quota usage for the current API key
GET/healthPublic uptime check (no key required)

GET /companies — Search & Filter Polish Companies

Search over 3 million Polish companies from KRS and CEIDG using combined AND filters. Returns paginated results with financial metrics per row. Supports both offset and cursor-based pagination.

# Active manufacturing companies in Mazovia with revenue > 10M PLN
curl "https://compabase.com/api/v1/companies?pkd=28&voivodeship=mazowieckie&revenue_min=10000000&status_active=true&limit=10" \
-H "X-API-Key: YOUR_API_KEY"

Pagination

ModeParametersBest for
Offsetoffset, limitInteractive browsing, UI tables
Cursorcursor, limitDeep export, large dataset traversal

offset and cursor are mutually exclusive. Use cursor mode for deterministic deep paging; pagination.total may be -1 in cursor mode — rely on hasMore instead.

📋 Show all available filter parameters
ParameterTypeDescription
qstringFull-text company name search
keywordsstringKeyword token search
pkdstringPKD industry code — e.g. 46.90.Z. Combine with primary_only=true to match primary activity only
voivodeshipstringPolish voivodeship, lowercase — e.g. mazowieckie, śląskie, wielkopolskie
citystringCity name, uppercase — e.g. WARSZAWA, KRAKÓW
postal_codestringPostal code prefix
legal_formstringLegal form — e.g. SPÓŁKA AKCYJNA, SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ
status_activebooltrue = active companies only, false = inactive only
has_emailboolFilter by email presence
has_websiteboolFilter by website presence
currencystringCurrency for financial thresholds: PLN (default), USD, EUR
revenue_min / revenue_maxnumberTotal revenue range
revenue_operating_min / revenue_operating_maxnumberOperating revenue range
profit_net_min / profit_net_maxnumberNet profit range
profit_operating_min / profit_operating_maxnumberOperating profit range
ebitda_min / ebitda_maxnumberEBITDA range
total_assets_min / total_assets_maxnumberTotal assets range
capital_min / capital_maxnumberShare capital range
estimated_value_min / estimated_value_maxnumberEstimated company value range
cost_wages_min / cost_wages_maxnumberWage cost range
cost_amortization_min / cost_amortization_maxnumberAmortization cost range
income_tax_min / income_tax_maxnumberIncome tax range
registration_year_min / registration_year_maxintegerRegistration year range
last_report_year_min / last_report_year_maxintegerLast financial report year range

Financial range filters are evaluated against the latest indexed financial snapshot per company. Companies with null for a filtered metric do not match that filter.


GET /companies/count — Count Matching Companies

Returns a single count integer for the same filter set as /companies — without fetching rows. Ideal for faceted search UIs, dashboards, and estimating export volume before paginating.

curl "https://compabase.com/api/v1/companies/count?pkd=46.90.Z&voivodeship=śląskie&status_active=true" \
-H "X-API-Key: YOUR_API_KEY"# → { "count": 3142 }

GET /companies/krs/{krs} — Full Company Profile

Returns the complete profile for a Polish company identified by KRS number. Leading zeros are optional — the API normalizes the value to 10 digits server-side.

Response sections:

KeyContents
companyCore identifiers, address, PKD activities, display fields
detailsContacts (email, website), suspension/deletion flags, filings
financialsMulti-year P&L + balance sheet metrics in PLN / USD / EUR
rolesManagement board, supervisory board, proxies
ownershipShareholder structure — holding %, share count, values in PLN / USD / EUR
companySummaryAI-generated short description (PL / EN / DE)
similarCompaniesRelated companies by industry and size
curl "https://compabase.com/api/v1/companies/krs/0000028860" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/financial-statements — Financial Statements

Polish companies financial statements API — returns all financial metrics grouped by reporting year, without any profile or metadata. Values are available in PLN, USD and EUR.

📊 Show available financial fields

P&Lrevenue_total, revenue_operating, profit_net, profit_gross, ebit, ebitda, operating_costs_total, financial_income, financial_costs, income_tax

Balance sheettotal_assets, fixed_assets, current_assets, equity, liabilities_and_provisions

Ratiosroa, net_margin, asset_turnover

All fields are also available with _usd and _eur suffixes.

curl "https://compabase.com/api/v1/companies/krs/0000028860/financial-statements" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/structure-people — Ownership & Management Structure

Returns roles (management board, supervisory board, proxies) and ownership (shareholders with holding percentage, share count, and PLN / USD / EUR values) — without profile or financial data. Purpose-built for KRS ownership structure API integrations and corporate due diligence workflows.

curl "https://compabase.com/api/v1/companies/krs/0000028860/structure-people" \
-H "X-API-Key: YOUR_API_KEY"

GET /companies/krs/{krs}/status — Legal Status Check

Lightweight endpoint for active company verification in Poland. Returns status (active, bankruptcy, liquidation) and is_open flag. Validate KRS numbers or monitor status changes without pulling the full profile.

curl "https://compabase.com/api/v1/companies/krs/0000028860/status" \
-H "X-API-Key: YOUR_API_KEY"# → { "krs": "0000028860", "status": "active", "label": "Active", "is_open": true }

GET /usage — Quota Usage

Returns current-month usage for the authenticated key. Does not consume quota.

curl "https://compabase.com/api/v1/usage" \
-H "X-API-Key: YOUR_API_KEY"# → { "used": 42, "limit": 5000, "remaining": 4958, "monthUtc": "2026-06", "resetsAtUtc": "2026-07-01T00:00:00Z" }

GET /health — API Health

Public endpoint (no API key required). Returns { "status": "ok", "api": "v1", "timestamp": "..." }.


Authentication

Send your key in one of the supported headers:

X-API-Key: <your_key>
Authorization: Bearer <your_key>

Get a Free API Key instantly →


Plans & Quota

Each API key has a monthly request quota that resets every 30 days from your billing start date.

PlanRequests / month
Free100
Pro5 000
Scale100 000
EnterpriseCustom
  • GET /usage does not consume quota
  • 401 responses (auth fails before processing) do not consume quota
  • 429 responses (quota exhausted) do not consume additional quota
  • All other authenticated responses (200, 400, 404) do consume quota

OpenAPI Specification

  • v1.yaml — source of truth for the API contract (OpenAPI 3.1)
  • Base URL: https://compabase.com/api/v1/

Read the Full Interactive API Documentation →


Related

  • Compabase MCP Server — connect Claude, Cursor, and other AI assistants directly to Polish company data via the Model Context Protocol

License

MIT

About

Official OpenAPI specification for the Compabase API. Developer-first REST API for Polish companies data (KRS, CEIDG, RDF financial statements) normalized into JSON. Fast search, filtering, and B2B enrichment.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors