# Business & Tax ID Checker: EU VAT (VIES), ABN, EIN, GSTIN (`geeky_goth_gamer/business-tax-id-checker`) Actor

Validate VAT, GST and company/tax IDs for 70+ countries and 200+ identifier types (EU VAT, UK VAT, ABN, ACN, EIN, GSTIN, CNPJ, UEN, BN and more) with checksums and formatting, plus live EU VAT registry lookups (VIES) that return the registered company name and address.

- **URL**: https://apify.com/geeky_goth_gamer/business-tax-id-checker.md
- **Developed by:** [Chris Day](https://apify.com/geeky_goth_gamer) (community)
- **Categories:** Business, Developer tools, AI
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 id validateds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Business & Tax ID Checker: EU VAT (VIES), ABN, EIN, GSTIN

Validate VAT, GST and company/tax IDs for 70+ countries and 200+ identifier types (EU VAT, UK VAT, ABN, ACN, EIN, GSTIN, CNPJ, UEN, BN and more) with checksums and formatting, plus live EU VAT registry lookups (VIES) that return the registered company name and address.

### When an AI agent should use this

Use it before issuing an invoice, onboarding a supplier or customer, or saving a company record: it catches typos, wrong country prefixes and invented numbers. For EU VAT numbers it confirms with the EU's VIES service that the number is currently active and returns the name and address on record.

A valid checksum means the number is well-formed, not that it's registered. Only EU VAT numbers (including `XI` Northern Ireland) get a live registry check. UK VAT (HMRC) and Australian ABN (ABR) lookups need registered API credentials, so they're checksum-only here.

### Example input

```json
{
  "ids": [
    "IE6388047V",
    {
      "number": "51 824 753 556",
      "country": "AU"
    },
    {
      "number": "12-3456789",
      "country": "US",
      "type": "ein"
    },
    "GB980780684"
  ]
}
```

### Output (one item per ID)

- `valid` (`true` / `false` / `null` when several types match), `reason` (e.g. `InvalidChecksum`, `InvalidLength`)
- `type` (e.g. `au.abn`, `eu.vat`, `in.gstin`), `typeName`, `country`, `compact`, `formatted`
- `possibleTypes` when a bare string matches several validators: add `country` (and `type`) to confirm
- `registry` (EU VAT): `checked`, `active`, `name`, `address`, `requestDate`, `source`
- `status` (`ok`, `empty`, `error`), `billed`

When `country` is given without `type`, the country's main business ID is used: AU → ABN, US → EIN, IN → GSTIN, CA → BN, SG → UEN, BR → CNPJ, NZ → IRD; otherwise VAT. `POST /supported` (free) lists all 200+ types.

### Pricing

| Event | Price (USD) |
|---|---|
| `id-validated` | $0.001 per non-empty ID checked |
| `vat-registry-checked` | $0.003 per EU VAT number answered by VIES |
| `apify-actor-start` | $0.00005 per run |

Empty rows, invalid input objects and VIES outages are free. VIES lookups are cached per run and spaced politely.

### Standby HTTP API

Base URL: `https://geeky-goth-gamer--business-tax-id-checker.apify.actor` (send `Authorization: Bearer <APIFY_TOKEN>`).

- `POST /check`: `ids` (up to 50) or `number` + `country` + `type`, optional `liveCheck`
- `POST /supported`
- `GET /health`

```bash
curl -s -X POST "https://geeky-goth-gamer--business-tax-id-checker.apify.actor/check" -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" -d '{"ids":["IE6388047V"]}'
```

### MCP

```
https://mcp.apify.com/?tools=geeky_goth_gamer/business-tax-id-checker
```

### Data and licences

Checksums and formats: [python-stdnum](https://arthurdejong.org/python-stdnum/) (LGPL-2.1+, used unmodified). Live EU VAT data: VAT Information Exchange System (VIES), European Commission. VIES results are informational; the EU notes that member-state databases may be temporarily unavailable (reported as `checked: false`).

### Related tools

- [Validated Table & Invoice Extractor](https://apify.com/geeky_goth_gamer/validated-table-invoice-extractor)
- [Australian Address Validator & Geocoder](https://apify.com/geeky_goth_gamer/au-nz-address-parser-geocoder)
- [All tools](https://apify.com/geeky_goth_gamer)

# Actor input Schema

## `ids` (type: `array`):

Up to 1,000 per run (50 per Standby call). Strings are auto-detected (EU/GB/CH VAT by prefix, else every validator is tried). For precision give {"number", "country": "AU", "type": "abn"} or {"number", "type": "au.abn"}.

## `liveCheck` (type: `boolean`):

Look up valid EU VAT numbers in VIES for active status, name and address. Charged only when VIES answers.

## Actor input object example

```json
{
  "ids": [
    "IE6388047V",
    {
      "number": "51 824 753 556",
      "country": "AU"
    },
    {
      "number": "12-3456789",
      "country": "US",
      "type": "ein"
    },
    "GB980780684"
  ],
  "liveCheck": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "ids": [
        "IE6388047V",
        {
            "number": "51 824 753 556",
            "country": "AU"
        },
        {
            "number": "12-3456789",
            "country": "US",
            "type": "ein"
        },
        "GB980780684"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("geeky_goth_gamer/business-tax-id-checker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "ids": [
        "IE6388047V",
        {
            "number": "51 824 753 556",
            "country": "AU",
        },
        {
            "number": "12-3456789",
            "country": "US",
            "type": "ein",
        },
        "GB980780684",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("geeky_goth_gamer/business-tax-id-checker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "ids": [
    "IE6388047V",
    {
      "number": "51 824 753 556",
      "country": "AU"
    },
    {
      "number": "12-3456789",
      "country": "US",
      "type": "ein"
    },
    "GB980780684"
  ]
}' |
apify call geeky_goth_gamer/business-tax-id-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,geeky_goth_gamer/business-tax-id-checker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/1yCjYS4GrvsOCcThJ/builds/xS9YpTjnPa3q0sdgI/openapi.json
