Tools

count_companies

Count KRS companies matching the same filter family as search_companies (without sort/limit). Does not count JDG in this tool (full CEIDG is in Compabase; listing is RODO-gated). Returns a single number; there is no company list. Sparse or zero counts in JDG-dominated PKDs include a hint.

Example prompts: “How many active companies in mazowieckie have primary PKD starting with 62?” · “Count companies with revenue between 1 and 10 million PLN in Kraków.”

post/tools/count_companies

Request

  • Base URL: https://compabase.com/api/mcp
  • URL: https://compabase.com/api/mcp/tools/count_companies
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Request body

namestring
krsstring
nipstring
citystring
countystring

County / powiat (lowercase).

regionstring
pkdstring
all_pkdstring
legal_formstring
revenue_minnumber
revenue_maxnumber
profit_minnumber
profit_maxnumber
profit_operating_minnumber
profit_operating_maxnumber
total_assets_minnumber
total_assets_maxnumber
ebitda_minnumber
ebitda_maxnumber
capital_minnumber
capital_maxnumber
estimated_value_minnumber
estimated_value_maxnumber
is_activeboolean
has_emailboolean
has_websiteboolean
yearinteger

Response

Count result

countinteger

Changes

No recorded changes to this operation across all 1 revision of this API.