CompanyStack – UK Company Search & Directory
Auto-fill UK company names, numbers and registered addresses in forms and WooCommerce checkout, from the official Companies House register.
Install in
Customers type the first few letters of their company name, pick it from the list, and the company number and registered office address are filled in for them. No more mistyped company numbers on B2B orders, trade account applications or quote requests.
The plugin works in the WooCommerce checkout, in Contact Form 7, WPForms and Gravity Forms, and in any HTML form, and it has a ready-made Company Lookup Form of its own in six designs. It also adds company profile cards, an “Active UK company” status badge and a business directory, each as a block and as a shortcode.
Company data comes from the Companies House register, as held and kept up to date by the CompanyStack API. CompanyStack is an independent service: it is not affiliated with, or endorsed by, Companies House.
Why CompanyStack
- Every UK company, kept current. The whole register (live and dissolved companies) is held and refreshed daily, so suggestions are instant and do not depend on Companies House rate limits.
- Filed accounts, not just the register entry. The Company Accounts Card shows turnover, profit, cash, net assets and employees from the company’s own filed accounts, with the year before beside them.
- Your allowance is protected. Answers are cached on your site, visitor searches are nonce-protected and limited per visitor, and the dashboard shows how many lookups the cache saved.
- Clear when something is wrong. “Test connection” explains a pasted key in plain words: the shortened form from the keys page, a missing character, the word “Bearer” pasted in, or a revoked key.
- Free to start. The free plan needs no payment card and runs every feature of the plugin.
What you get
- Company Lookup Form. A finished form you can drop on any page: the visitor types a company name, picks it, and the company number, address, town and postcode are filled in. Choose which fields show and what they are called. An optional send button emails what the visitor entered to the site administrator; nothing is stored.
- Six designs, fully customisable. Clean, Soft, Underline, Card, Compact inline and Inherit theme. Set a site-wide design, accent colour, corner radius, field size and font under Settings › CompanyStack › Appearance, with a live preview and a warning when colours fail WCAG AA contrast. Every block has its own design controls, and the blocks support the editor’s own colour, typography, spacing and border settings where they apply.
- Looks right in your theme. By default the plugin inherits your theme’s font and text colour and picks an accent from its palette. It follows dark themes, right-to-left languages, high-contrast mode, 200% zoom and reduced-motion settings, with visible focus rings and 44-pixel touch targets. No external fonts or files are loaded.
- Company autocomplete with form auto-fill. Works with the Company Search block or
[companystack_search], with Contact Form 7, WPForms and Gravity Forms (add a CSS class to your fields), and with any HTML form (data attributes). In those forms only the suggestions list is styled, never the form itself. - WooCommerce B2B checkout. The checkout Company field suggests UK companies and fills in the address. An optional “Company registration number” field is filled automatically, validated and saved with the order. Works with both the Checkout block and the classic checkout, and is compatible with High-Performance Order Storage.
- CompanyStack dashboard in wp-admin. Connection and plan, today’s and this month’s requests against your limits, a 30-day chart of calls and cache savings, where the plugin is used on your site, the last companies looked up and any recent problem with the fix in plain words. A compact version sits on the WordPress Dashboard.
- Company accounts card. Headline figures from the latest filed accounts (turnover, profit after tax, cash at bank, net assets, employees) with the previous year, as a block or
[companystack_accounts number="00445790"]. - Company profile card. Status, company number, type, incorporation date, registered office, nature of business (SIC codes) and accounts and confirmation-statement due dates, with overdue warnings.
- “Active UK company” status badge. Show visitors that your business (or a supplier, member or client) is registered and active at Companies House, linked to the official record. The badge hides itself automatically if the company stops being active. It shows the register entry only: it does not verify who runs the website it appears on.
- UK business directory. List companies by SIC code, postcode area or district (for example NE or M1), town or name, with an optional visitor search form. Ideal for trade associations, local business listings and industry directories.
- Ready-made patterns. “Company lookup form”, “Company profile card”, “Company status badge” and “Business directory” are in the block inserter under CompanyStack, and one click on the settings screen makes a draft page from any of them.
Each feature is available as a block and as a shortcode.
Built to be safe and light
- Your API key stays on your server. Browsers only talk to your own site’s REST API, which calls CompanyStack server-side.
- Visitor searches are protected by a nonce and a per-visitor rate limit, so nobody can burn through your allowance.
- Answers are cached (one day by default) to keep pages fast and API usage low.
- No jQuery and no tracking of you or your visitors. The dashboard’s counts are kept in your own database and never sent anywhere.
- Few notices: a welcome on the Plugins screen until a key is saved, and, after at least 14 days and 50 successful lookups, one request for a review. Each can be hidden for good. No “Powered by” link appears on your pages unless you switch it on.
- Blocks are built with core WordPress components; there is no heavy JavaScript bundle.
About the CompanyStack service
This plugin is an interface to the CompanyStack API (see “External services” below), which does the work of searching and serving Companies House records. You need a CompanyStack API key. The free plan needs no payment card and covers company search, autocomplete (up to 5 suggestions), company profiles, badges and directories of up to 10 results. Paid plans raise the daily request limits and allow larger, paginated directories. Every feature of the plugin works on the free plan; see companystack.co.uk/pricing for limits and prices.
External services
This plugin connects to the CompanyStack API at https://api.companystack.co.uk, operated by CompanyStack, to look up UK company information derived from the public Companies House register. It cannot work without this service.
When requests are made
- When a visitor types at least two characters into a CompanyStack company search field (including the WooCommerce checkout Company field when enabled) and pauses: the typed text is sent to find matching companies.
- When a visitor chooses a company from the suggestions: its company number is sent to fetch the full record used to fill the form.
- When a page containing a company card, status badge or directory block or shortcode is displayed and the answer is not already cached: the company number, or the directory filters (SIC code, postcode, town, name and status, including any search a visitor enters in the directory form), are sent.
- When a page containing a company accounts card is displayed and the answer is not already cached: the company number is sent to fetch the latest two years of filed accounts.
- When an administrator clicks “Test connection” on the settings screen: two sample searches (for the word “TESCO”) are sent to check the key and see what its plan allows.
- When an administrator opens the CompanyStack dashboard or the WordPress Dashboard (at most once every five minutes): a request for the account’s usage against its plan, which uses none of the plan’s allowance.
What is sent
Only the search text, company number or directory filters described above, together with your site’s CompanyStack API key (to identify your account) and a user-agent string naming this plugin and its version. Requests are made from your web server; visitors’ IP addresses, cookies and other form fields are not sent. Nothing is sent until an API key has been saved. The plugin keeps simple counts on your own site for its dashboard (calls, cache answers and the last few company numbers and names looked up); they are never sent to CompanyStack or anyone else.
The Company Lookup Form’s optional send button does not send anything to CompanyStack: what the visitor entered (including a name and email address, if you switch those fields on) goes to your own site, which emails it to the site administrator. The appearance settings and the live preview make no requests at all; the preview uses invented sample data.
Links to companystack.co.uk on the plugin’s settings screen carry the tags utm_source=wordpress-plugin and utm_medium, which tell CompanyStack only that a visit came from the plugin. They contain nothing about your site, and nothing is sent unless you click a link.
- CompanyStack terms of service: https://companystack.co.uk/terms
- CompanyStack privacy policy: https://companystack.co.uk/privacy
Company data originates from Companies House and is provided under the Open Government Licence v3.0. Company pages link to the official Companies House service (find-and-update.company-information.service.gov.uk); those links are ordinary hyperlinks and send nothing unless a visitor clicks them.
Written by Joobi from the project's own listing. See the source page
1.3.0
- New: a CompanyStack dashboard in wp-admin (its own menu) showing connection and plan, today’s and this month’s requests against your limits, a 30-day chart of calls and cache savings, where the plugin is used on your site, the last companies looked up and the most recent problem with what to do about it. A compact widget sits on the WordPress Dashboard.
- New: Company Accounts Card block and
[companystack_accounts]shortcode: turnover, profit after tax, cash at bank, net assets and employees from the latest filed accounts, with the year before. - New: “Test connection” and saving the key explain a key that is not accepted in plain words (the shortened form from the keys page, a missing part, “Bearer” or quotes pasted in, a revoked key), using the API’s own advice, with a link to your API keys page.
- New: after at least 14 days and 50 successful lookups, one polite request for a review on WordPress.org, which either link hides for good. No reward is offered.
- New: Support, Changelog and Dashboard links on the Plugins screen.
- Security: the settings option that holds the API key is no longer autoloaded; a security policy (SECURITY.md) explains how to report a vulnerability.
- Tested with WordPress 7.1.5, WooCommerce 11.3.1 and PHP 8.1 to 8.6.
- Developers: requests identify themselves as
CompanyStack-WordPress/<version>.
1.2.0
- New: a design system for everything the plugin shows, built on CSS custom properties (
--cstk-*). It inherits your theme’s font and colours, picks an accent from the theme palette, and respects dark themes, right-to-left languages, high-contrast mode, zoom and reduced motion. - New: six designs to choose from: Clean, Soft, Underline, Card, Compact inline and Inherit theme.
- New: Company Lookup Form block and
[companystack_form]shortcode, with a choice of fields, labels and an optional send button that emails the site administrator (nothing is stored; developers get an action and filters). - New: Settings › CompanyStack › Appearance, with a live preview, WCAG contrast warnings and a reset button.
- New: design controls on every block (design, corner radius, accent colour, field size) and support for the editor’s colour, typography, spacing and border settings where they apply; matching shortcode attributes.
- New: four block patterns, a getting started panel that makes draft pages from them, and a “Test connection” result that says what your key’s plan allows.
- New: the suggestions list shows each company’s status as a pill, takes its colours from the field it belongs to, and can be made more compact. Home and End move to the first and last suggestion.
- New: filters
companystack_suggestion_template,companystack_form_fields,companystack_form_submission,companystack_form_email,companystack_form_send_emailandcompanystack_theme_accent; actioncompanystack_form_submitted. - Fixed: a letters-only postcode area such as NE or M is now accepted in the directory (it used to be dropped, so the directory ignored the filter), and a postcode that cannot be read now shows a message.
- Fixed: the suggestions list says “Searching UK companies…” while a search runs.
- Fixed: the directory search form is aligned and styled, grid entries no longer overlap, entries no longer break in the middle of a company number or date, the badge title is bold with a larger icon, the profile card gives its values more room, and the “Test connection” result sits beside its button.
- Changed: the stylesheet is loaded by the blocks and shortcodes themselves, so it appears only on pages that use them.
- Changed: the one admin notice (on the Plugins screen, until a key is saved) can now be dismissed.
- Readme: states plainly that CompanyStack is independent of Companies House.
1.1.2
- Clearer description: company data comes from the Companies House register as held and updated by CompanyStack, not from live Companies House calls.
- Tested with WordPress 7.1.
1.1.1
- The badge now reads “Active UK company” and, on hover, says it shows the register entry only and does not verify who runs the website. The block is renamed UK Company Status Badge; existing blocks and shortcodes keep working.
- The source line under cards and directories says the data comes from Companies House via CompanyStack, which accepts no responsibility to anyone who relies on it, and to check important information against the official record. This keeps sites that show CompanyStack data in line with its Terms (clause 15B).
1.1.0
- Rebuilt on the CompanyStack API at api.companystack.co.uk; the old API address no longer works, so please update.
- Security: the API key is no longer sent to browsers. All look-ups go through nonce-protected, rate-limited REST endpoints on your own site.
- New: blocks for Company Search, Company Profile Card, Verified UK Company Badge and UK Business Directory.
- New: WooCommerce checkout company autocomplete and company registration number field (Checkout block and classic checkout, HPOS compatible).
- New: auto-fill for Contact Form 7, WPForms, Gravity Forms and any HTML form via CSS classes or data attributes.
- New: business directory by SIC code, postcode area, town or name, with optional visitor search and pagination on paid plans.
- New: settings screen with connection test, plan limits, cache controls and a privacy-policy suggestion.
- Removed jQuery dependency, activation redirect and unused CRM code.
- Uninstall now removes all settings and cached data.
1.0.0
- Initial release.
Follow this listing's changes (Atom feed)