# apifirme integrations: n8n, WooCommerce, AI assistants, Google Sheets, Excel, webhooks

apifirme's data can be used without writing a program from scratch. Below is what exists now. Every integration uses the same API key and the same limits as any other request, and the free account is enough to try them.

## n8n

The package [n8n-nodes-apifirme](https://www.npmjs.com/package/n8n-nodes-apifirme) brings apifirme into [n8n](https://n8n.io), as steps of a workflow:

- an action node: a company by its CUI, search by name or by trade register number, the check before invoicing, the changes at a company, financial statements, many companies in one request, the watch list, new companies and BNR's exchange rates;
- a trigger that starts the workflow for each change at a company you watch, or for each newly registered company that matches your filters.

On an n8n you host yourself it is installed from Settings > Community Nodes, by the name `n8n-nodes-apifirme`. The node is not verified by n8n yet, so it does not appear on n8n Cloud for now. As its credential you give the API key from your [account](/cont). A mistyped CUI or a personal identity number is stopped in the node, before it is sent.

The code is public: [github.com/cubus/n8n-nodes-apifirme](https://github.com/cubus/n8n-nodes-apifirme).

## WooCommerce

The plugin [apifirme for WooCommerce](https://wordpress.org/plugins/apifirme-for-woocommerce/) is for shops that also sell to companies: at the checkout the buyer ticks "Cumpăr pe firmă", types the CUI, and the company's name, trade register number and address fill themselves in from official data. It tells the buyer whether the company is registered for VAT and warns when it is fiscally inactive or struck off. The CUI and the register number are kept with the order and appear in the billing address of its e-mails.

It installs like any plugin from the wordpress.org directory, and the API key from your [account](/cont) goes into WooCommerce > Settings > Advanced > apifirme. The key stays on the shop's server, the answer about a company is kept for a day, and a mistyped CUI or a personal identity number is stopped in the shop, before anything is sent. For now it fills the fields on the classic checkout only (the `[woocommerce_checkout]` shortcode), not on the block-based one. It issues no invoices: it gives your invoicing plugin correct data.

## AI assistants

Claude, ChatGPT, Perplexity and the other assistants that speak MCP read the same data: you give them one address and sign in, without copying a key and without code. The steps for each: [apifirme in your AI assistant](/ai).

## Google Sheets and Excel

A function `=APIFIRME(A2:A101)` for a column of CUIs in Google Sheets and a Power Query request in Excel are, ready to copy, in the [code examples](/exemple).

## Webhooks

Newly registered companies can be sent to an address of yours, filtered by county and CAEN code, on the plans that include their list. You switch them on in your [account](/cont); the message and its signature are described in the [documentation](/docs).

## From your own code

Examples in PHP, Python and JavaScript are in the [code examples](/exemple). Every request is described in the [API documentation](/docs) and, as OpenAPI 3.1, at `https://api.apifirme.dev/openapi.json`, from which clients can be generated in any language.

If you publish an integration, send with every request the header `x-apifirme-client` with its name and version, for example `my-shop-1.2`: it helps us help you when you write to us about a problem.

Is an integration missing? Write to us at dev@apifirme.dev.
