Scan your whole stack
From OX Research Newsroom
Are you using companystack?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.0
companystack was last scanned on 30 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.0 LATEST | 30 Nov 2026 | No rules fired |
Findings for v0.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The Python client for the CompanyStack API: UK company data from Companies House. It covers company search and profiles, officers, persons with significant control, filing history, financials parsed from filed accounts, health scores, KYB checks, the register change feed and your company lists.
TypedDict, so mypy and your editor know the fields.CompanyStack) and asyncio (AsyncCompanyStack) clients on httpx.Retry-After, and retries 5xx and network errors on reads.iter_*) for search, filings, list items, the change feed, KYB checks and prospects.Requires Python 3.9 or later.
pip install companystack
Get an API key (it starts with cs_) by signing up free: no card, 1,000 requests a day on the Free plan. Then set it in COMPANYSTACK_API_KEY, or pass api_key=.
from companystack import CompanyStack
cs = CompanyStack() # reads COMPANYSTACK_API_KEY
results = cs.search_companies(q="tesco", limit=5)
for company in results["results"]:
print(company["company_number"], company["company_name"], company["company_status"])
profile = cs.get_company("00445790")
print(profile["accounts"]["next_due"])
# Officers and beneficial owners (Starter plan and above)
officers = cs.list_officers("00445790")
pscs = cs.list_persons_with_significant_control("00445790")
# Financials from filed accounts. Money values are whole pounds (GBP) as filed, not pence.
history = cs.get_financial_history("06450847")
for period in history["periods"]:
print(period["balance_sheet_date"], period["net_assets"], period["turnover"])
# Health score: a rules-based 0-100 indicator (not a credit rating)
score = cs.get_health_score("06450847")
print(score["overall_score"], score["grade"], score["risk_level"])
# KYB check. Each call uses quota and stores a record on your account.
check = cs.run_kyb_check({"company_number": "06450847", "expected_name": "Club Free Spirit Limited", "reference": "client-42"})
print(check["outcome"], check["reason_codes"])
# Every search result, fetching pages as you go
for company in cs.iter_search_companies(q="bakery", town="LEEDS", max_items=200):
print(company["company_name"])
# The change feed: store the cursor and resume from it next time
page = cs.list_changes(types="added,dissolved", postcode="LS")
cursor = page["next_cursor"]
# Your lists
lists = cs.list_lists()
cs.add_list_items(42, {"items": [{"company_number": "00445790", "custom_ref": "CL-0042"}]})
import asyncio
from companystack import AsyncCompanyStack
async def main():
async with AsyncCompanyStack() as cs:
company = await cs.get_company("00445790")
async for event in cs.iter_list_changes(types="added", max_items=100):
print(event["company_number"], event["change_type"])
asyncio.run(main())
Every failure raises a subclass of CompanyStackError, which carries status, code, body, upgrade_url and retry_after:
| Exception | When |
|---|---|
AuthenticationError |
401: the key is missing, malformed or revoked |
PermissionDeniedError |
403: your plan does not include the endpoint (code == "plan_upgrade_required"; see upgrade_url) |
NotFoundError |
404 |
ValidationError |
400 or 422 |
ConflictError |
409 |
RateLimitError |
429 after the retries; retry_after says how long to wait |
ServerError |
5xx |
APIConnectionError |
No response (network error or timeout) |
from companystack import CompanyStack, PermissionDeniedError, RateLimitError
try:
cs.get_health_score("00445790")
except PermissionDeniedError as e:
print("Upgrade at", e.upgrade_url)
except RateLimitError as e:
print("Try again in", e.retry_after, "seconds")
CompanyStack(
api_key="cs_…", # default: COMPANYSTACK_API_KEY
base_url="https://api.companystack.co.uk",
timeout=30.0, # seconds per attempt
max_retries=2, # 429 on any method; 5xx and network errors on GET
max_retry_delay=60.0, # cap on Retry-After waits
http_client=None, # bring your own httpx.Client (proxies, transports)
)
After each call, cs.last_rate_limit holds the rate-limit headers (limit, remaining, reset, daily_limit, daily_remaining). What each plan includes, and its limits, is on the pricing page.
_generated.py is generated from the OpenAPI specification and is replaced on each release, so send changes to _base.py (the runtime) or open an issue.
pip install -e ".[test]"
pytest # runs against a local mock server; no network, no key
mypy
Free API plan: £0, 1,000 requests a day, 30 a minute, no card: search (first page, up to 10 results), autocomplete and full company profiles. Starter: £29/month or £288/year, adding officers, owners (PSC), filing history, filed accounts and health scores. Pay as you go, without a monthly plan: prepaid credits from £10 (1,000 credits), used only for calls your plan does not include. Current prices and limits: companystack.co.uk/pricing.
The data is a copy of public registers (Companies House and the others listed at companystack.co.uk/data-sources), as CompanyStack holds them, and can be incomplete or out of date. Register details and accounts figures are the company's own filings, shown as filed: CompanyStack does not audit or verify them. Health scores and KYB results are indicators that support your own checks, not credit ratings or advice.
Contains public sector information licensed under the Open Government Licence v3.0. CompanyStack is not affiliated with or endorsed by Companies House.
MIT
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.