Skip to content

About

Python client for UK company checks: Companies House status, filings, charity status, EORI and risk flags.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

UK business check API for Python

PyPI CI Licence: MIT

Check any UK company with one call: Companies House status, filings and overdue flags, charity status, an optional EORI check, and plain risk flags on top.

from uk_business_check import BusinessCheck

api = BusinessCheck()  # reads VARDIC_API_KEY
c = api.check("00445790")["data"]  # Tesco PLC

print(c["company"]["name"], c["company"]["status"], c["company"]["ageYears"])
print("Accounts overdue:", c["company"]["accounts"]["overdue"])
print("Charity:", (c["charity"] or {}).get("found"))
print("Risk:", c["risk"])
for f in c["flags"]:
    print(f["severity"], f["message"])

Install

pip install vardic-uk-business-check

Python 3.9+, standard library only.

What you get

  • Company check (check): status, type, age, SIC codes, registered office, accounts and confirmation statement due dates with overdue flags, insolvency and charge flags, the latest filings, and officer and PSC counts. Add include=["officers", "psc", "charges", "filings"] for the full lists.
  • Charity status from the Charity Commission register, matched by company number.
  • EORI check (eori, or check(number, eori=...)) for UK (GB) EORI numbers, from HMRC.
  • Search companies by name (search, up to 10 matches).
  • Risk flags: risk is none, low, medium or high, with a readable reason for each flag.
  • Watches (watch): signed webhooks when a company's status, filings, charges, officers or risk change, or when it appears in a Gazette insolvency notice.
matches = api.search("tesco")["data"]["items"]
eori = api.eori("GB123456789000")["data"]
print(eori["valid"])

UK VAT number checks are not open yet: until they are, c["vat"] is None and vat() raises a 503 that is not counted.

Sandbox key

Every account gets a vd_test_ key as well as a live key. It returns made-up data for any company number and is never counted. Number 00000000 returns company_not_found.

Webhooks

api.watch("00445790", "https://example.com/hooks/vardic")

from uk_business_check import verify_webhook
ok = verify_webhook(request.body, request.headers["vardic-signature"], WEBHOOK_SECRET)

Watches need a live key. Pass the raw request body as bytes. Event types and payloads: https://vardic.dev/docs/webhooks

Errors

Failed calls raise VardicApiError with .status and .code, for example company_not_found (404), quota_exceeded (429) or upstream_unavailable (503). Calls that fail with 503 are not counted.

Pricing

Free plan: 50 checks a month, no card needed. Paid plans start at £29 a month for 1,000 checks. See https://vardic.dev/pricing

Links

Data

Contains public sector information licensed under the Open Government Licence v3.0, from Companies House and the Charity Commission. EORI data from HMRC. Not affiliated with or endorsed by Companies House, HMRC or the Charity Commission.

Licence

MIT. Made by Vardic.

About

Python client for UK company checks: Companies House status, filings, charity status, EORI and risk flags.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages