# ValidateID — Email, Phone, Domain, VAT & IBAN Validator (`kopachelli/validateid`) Actor

Give it a mixed list of emails, phone numbers, domains, VAT IDs and IBANs. One bulk run sorts each value by its shape, validates it and returns one dataset item per value — syntax, MX, E.164, mod-97, format rules.

- **URL**: https://apify.com/kopachelli/validateid.md
- **Developed by:** [Khristian Kopachelli](https://apify.com/kopachelli) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 email validateds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-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

**Give it a mixed list of emails, phone numbers, domains, VAT IDs and IBANs. It sorts
each value by its shape, validates it, and returns one dataset item per value — with
the detected type, the verdict (`valid`), a human-readable `detail`, and the type's own
fields. Values that match no known type get `valid: null` and are not charged.**

### What it is for

- **List cleaning before outreach.** One bulk run sorts a mixed export: which entries
  are emails, phones, domains, VAT or IBAN ids — and which are none of those.
- **VAT and IBAN checks without a registry account.** Format rules and the ISO 13616
  mod-97 checksum, offline — no VIES login, no per-call fee.
- **Phone normalisation at scale.** E.164, country and line type from bundled
  numbering-plan metadata; a number needs its country code.
- **Domain hygiene.** Registered-or-not from NS/MX records, MX flag, nameservers,
  disposable flag and a best-effort creation date via RDAP.
- **AI agents and pipelines.** One call answers "is this list clean, and what is each
  entry?".

### Input

| Field | Default | Meaning |
|---|---|---|
| `values` (required) | — | The values to validate, one per item, mixed types allowed. Entries are trimmed, empties dropped, each cut at 320 characters. |
| `maxItems` | 1000 | The run stops after this many values. The largest value is 100,000. There is no "unlimited". |

### Example input

```json
{
    "values": ["user@example.com", "+420 123 456 789", "example.com"],
    "maxItems": 1000
}
```

This is the prefill input Apify's daily test uses.

### Output

#### Dataset: one item per value

```json
{
    "value": "user@example.com",
    "detectedType": "email",
    "valid": true,
    "detail": "Syntax OK; MX found; not disposable; not a role account. Score 100/100.",
    "email": {
        "syntaxOk": true,
        "mxFound": true,
        "disposable": false,
        "role": false,
        "deliverableScore": 100,
        "dnsTimeout": false
    }
}
```

| Field | Meaning |
|---|---|
| `value` | The value exactly as given (trimmed). |
| `detectedType` | `email`, `phone`, `domain`, `iban`, `vat` or `unknown` — the kind the shape suggests. |
| `valid` | The verdict. `null` when the check could not determine the answer — never a guess. |
| `detail` | Why the value is valid or not, in words. |
| `email` | Present for emails: `syntaxOk`, `mxFound`, `disposable`, `role`, `deliverableScore`, `dnsTimeout`. |
| `phone` | Present for phones: `e164`, `country`, `lineType`, `valid`. |
| `domain` | Present for domains: `registered`, `mxFound`, `ns`, `disposable`, `createdAt`, `dnsTimeout`. |
| `vat` | Present for VAT ids: `valid`, `country`, `normalized`. |
| `iban` | Present for IBANs: `valid`, `country`, `normalized`. |

#### Key-value store: the record `OUTPUT`

A summary of the run: values received, items pushed, count per detected type, charges
per event, and why the run stopped.

### What each check does — and does not do

- **Email** — conservative syntax, an MX lookup (3-second timeout), flags for
  disposable domains and role accounts. `valid` is true only when syntax, MX and the
  disposable flag all pass; a DNS timeout yields `valid: null` and `dnsTimeout: true`.
  It never opens a connection to a mail server: `deliverableScore` is a heuristic,
  not an SMTP probe.
- **Phone** — E.164 normalization, validity, country and line type from bundled
  libphonenumber-js metadata. A number needs its country code (`+420…` or `00420…`).
- **Domain** — `registered` when NS or MX records exist; `mxFound`, up to 10
  nameservers, the disposable flag, and `createdAt` best-effort via RDAP (at most 50
  lookups per run, `null` on any failure).
- **VAT** — format rules for DE, FR, ES, IT, NL, BE, PL, CZ, AT, PT, DK and GB. Spain
  also gets its mod-23 checksum; the other countries are format checks only — no
  invented checksums, no registry lookup. Uncovered countries report `valid: null`.
- **IBAN** — ISO 13616 mod-97 checksum plus per-country length rules. Offline math;
  no registry lookup.

### Deliverability score (email)

`email.deliverableScore` is a heuristic, 0–100:

| Signal | Points |
|---|---|
| Syntax OK | 40 |
| MX records found | 40 |
| Not a disposable domain | 10 |
| Not a role account | 10 |

When the MX lookup cannot answer, the score is `null`: the check could not determine
deliverability (the item is still produced).

### How it behaves on the web

- **It only asks DNS and RDAP.** Email checks do one MX lookup; domain checks do NS+MX
  and up to the RDAP cap. There is no scraping, no browser, no proxy.
- **It says who it is.** Requests to rdap.org and the disposable-list refresh carry the
  User-Agent `ValidateID/1.0 (+https://apify.com/kopachelli/validateid)`.
- **It is bounded on purpose.** At most 8 DNS lookups in flight, 3 seconds per lookup
  with one retry inside the same budget, 15 seconds per value, 50 RDAP lookups per run.
- **It degrades honestly.** A lookup that fails or times out makes that item
  `valid: null` with the reason in `detail` — never a guessed verdict, never a crashed
  run.
- **Nothing is stored but the run's own records.** Input values are processed and
  echoed in the dataset; they are never written to the key-value store. The stored
  records are the run checkpoint, the `OUTPUT` summary (counts only) and the
  disposable-domain list cache, which holds no user data.

### Pricing

The Actor uses Apify's pay-per-event model:

- `apify-actor-start` — once per run (Apify's synthetic event);
- `email-validated` — per value detected as email;
- `phone-or-domain-validated` — per value detected as phone or domain;
- `vat-or-iban-validated` — per value detected as VAT or IBAN;
- `apify-default-dataset-item` — per item written to the dataset.

`unknown` values are not charged — they got no check. When the user's spending limit
is reached the Actor stops, writes the summary to `OUTPUT` and exits cleanly. The
current prices are set in Console and shown on this page.

### Limits

| What | Limit |
|---|---|
| Values per run | `maxItems`, at most 100,000 |
| Value length | 320 characters |
| DNS | 8 lookups in flight, 3 s each plus one retry inside the budget |
| One value's whole check | 15 seconds |
| RDAP creation-date lookups | 50 per run |
| Disposable-domain list | bundled snapshot; refreshed via the key-value store when older than 7 days |

### When a run is interrupted

If the platform moves the run to another server, or the run is aborted gracefully, the
Actor checkpoints after every dataset batch (1,000 items) — the delivered count plus
per-type and per-event totals. The restarted run continues from there: no value is
processed or charged twice.

### Questions and answers

**Does it verify that an email mailbox exists?**
No. It checks syntax, MX records, disposable domains and role accounts, and publishes
a heuristic score. SMTP probing is out of scope by design — it is intrusive and can
get the Actor blocked.

**Does it check VAT ids against the EU VIES registry?**
No. It applies per-country format rules and the Spanish mod-23 checksum; countries
without a rule report `valid: null`. A registry lookup is a possible premium route
later.

**Why is `valid` null on some values?**
When the check could not determine the answer — a DNS timeout, an uncovered VAT
country, a shapeless value. `detail` says why. Null is honest; a guess would not be.

**Are my values stored anywhere?**
No. They are processed and echoed in the dataset only. The key-value store holds the
run checkpoint, the `OUTPUT` counts and the disposable-domain list — no input values.

### Support

Questions and bug reports: the **Issues** tab of this Actor's page. The version and
the changelog are on the Actor's page too.

# Actor input Schema

## `values` (type: `array`):

The values to validate, one per item: an email address, a phone number, a domain, a VAT ID or an IBAN. The Actor sorts each value by its shape, then validates it.

## `maxItems` (type: `integer`):

The run stops after this many values. There is no "unlimited": the largest value is 100,000.

## Actor input object example

```json
{
  "values": [
    "user@example.com",
    "test@gmail.com",
    "admin@outlook.com",
    "sales@yahoo.com",
    "info@company-domain-that-does-not-exist-zz9q.com",
    "contact@company-domain-that-does-not-exist-zz9q.com",
    "support@mailinator.com",
    "billing@mailinator.com",
    "noreply@gmail.com",
    "webmaster@gmail.com",
    "j.smith@company-domain-that-does-not-exist-zz9q.com",
    "orders@company-domain-that-does-not-exist-zz9q.com",
    "hello@company-domain-that-does-not-exist-zz9q.com",
    "team@company-domain-that-does-not-exist-zz9q.com",
    "user0@example.com",
    "user1@example.com",
    "user2@example.com",
    "user3@example.com",
    "user4@example.com",
    "user5@example.com",
    "user6@example.com",
    "user7@example.com",
    "user8@example.com",
    "user9@example.com",
    "user10@example.com",
    "user11@example.com",
    "user12@example.com",
    "user13@example.com",
    "user14@example.com",
    "user15@example.com",
    "user16@example.com",
    "user17@example.com",
    "user18@example.com",
    "user19@example.com",
    "user20@example.com",
    "user21@example.com",
    "user22@example.com",
    "user23@example.com",
    "user24@example.com",
    "user25@example.com",
    "user26@example.com",
    "user27@example.com",
    "user28@example.com",
    "user29@example.com",
    "user30@example.com",
    "user31@example.com",
    "user32@example.com",
    "user33@example.com",
    "user34@example.com",
    "user35@example.com",
    "+1 415 555 0132",
    "+44 20 7946 0958",
    "+49 30 901820",
    "+33 1 42 68 53 00",
    "+420 123 456 789",
    "+48 22 123 45 67",
    "+31 20 123 4567",
    "+34 91 123 4567",
    "+39 06 1234 5678",
    "+351 21 123 4567",
    "+45 33 12 34 56",
    "+46 8 123 456",
    "0049 30 901820",
    "+1 (212) 555-0143",
    "+44 7911 123456",
    "+33 6 12 34 56 78",
    "+420 777 100000",
    "+420 777 100001",
    "+420 777 100002",
    "+420 777 100003",
    "+420 777 100004",
    "+420 777 100005",
    "+420 777 100006",
    "+420 777 100007",
    "+420 777 100008",
    "+420 777 100009",
    "+420 777 100010",
    "+420 777 100011",
    "+420 777 100012",
    "+420 777 100013",
    "+420 777 100014",
    "+420 777 100015",
    "+420 777 100016",
    "+420 777 100017",
    "+420 777 100018",
    "+420 777 100019",
    "+420 777 100020",
    "+420 777 100021",
    "+420 777 100022",
    "+420 777 100023",
    "+420 777 100024",
    "+420 777 100025",
    "+420 777 100026",
    "+420 777 100027",
    "+420 777 100028",
    "+420 777 100029",
    "+420 777 100030",
    "+420 777 100031",
    "+420 777 100032",
    "+420 777 100033",
    "example.com",
    "iana.org",
    "wikipedia.org",
    "github.com",
    "stackoverflow.com",
    "microsoft.com",
    "apple.com",
    "amazon.com",
    "cloudflare.com",
    "apify.com",
    "example.org",
    "example.net",
    "this-domain-does-not-exist-zz9q123.com",
    "nodns-records-zz9q123.example",
    "site0.example.com",
    "site1.example.com",
    "site2.example.com",
    "site3.example.com",
    "site4.example.com",
    "site5.example.com",
    "site6.example.com",
    "site7.example.com",
    "site8.example.com",
    "site9.example.com",
    "site10.example.com",
    "site11.example.com",
    "site12.example.com",
    "site13.example.com",
    "site14.example.com",
    "site15.example.com",
    "site16.example.com",
    "site17.example.com",
    "site18.example.com",
    "site19.example.com",
    "site20.example.com",
    "site21.example.com",
    "site22.example.com",
    "site23.example.com",
    "site24.example.com",
    "site25.example.com",
    "DE123456789",
    "DE123456788",
    "FR12345678901",
    "FRXX123456789",
    "ES12345678Z",
    "ESB12345674",
    "IT12345678901",
    "NL123456789B01",
    "NL123456789B02",
    "BE0123456789",
    "PL1234567890",
    "CZ12345678",
    "ATU12345678",
    "PT123456789",
    "DK12345678",
    "GB123456789",
    "GB123456789000",
    "DE12345678",
    "invalid-vat-value",
    "12345",
    "DE 123 456 789",
    "FR 12 345 678 901",
    "DE100000000",
    "DE100000001",
    "DE100000002",
    "DE100000003",
    "DE100000004",
    "DE100000005",
    "DE100000006",
    "DE100000007",
    "DE89 3704 0044 0532 0130 00",
    "DE89370400440532013000",
    "GB29 NWBK 6016 1331 9268 19",
    "FR14 2004 1010 0505 0001 3M02 606",
    "ES91 2100 0418 4502 0005 1332",
    "IT60 X054 2811 1010 0000 0123 456",
    "NL91 ABNA 0417 1643 00",
    "BE68 5390 0754 7034",
    "PL61 1090 1014 0000 0712 1981 2874",
    "AT611904300234573201",
    "PT5000 0001 1689 6948 1",
    "DE89370400440532013001",
    "invalid-iban",
    "12345678901234567890",
    "DE89 3704",
    "GB29 NWBK 6016 1331 9268 1A",
    "FR14 2004 1010 0505 0001 3M02 60",
    "DE89 3704 0044 0532 0130 01",
    "DE89 3704 0044 0532 0130 02",
    "DE89 3704 0044 0532 0130 03",
    "DE89 3704 0044 0532 0130 04",
    "DE89 3704 0044 0532 0130 05",
    "DE89 3704 0044 0532 0130 06",
    "DE89 3704 0044 0532 0130 07",
    "DE89 3704 0044 0532 0130 08",
    "DE89 3704 0044 0532 0130 09",
    "DE89 3704 0044 0532 0130 10",
    "DE89 3704 0044 0532 0130 11",
    "DE89 3704 0044 0532 0130 12",
    "DE89 3704 0044 0532 0130 13",
    "DE89 3704 0044 0532 0130 14",
    "DE89 3704 0044 0532 0130 15",
    "DE89 3704 0044 0532 0130 16",
    "DE89 3704 0044 0532 0130 17",
    "DE89 3704 0044 0532 0130 18",
    "DE89 3704 0044 0532 0130 19",
    "DE89 3704 0044 0532 0130 20",
    "DE89 3704 0044 0532 0130 21",
    "DE89 3704 0044 0532 0130 22",
    "DE89 3704 0044 0532 0130 23",
    "DE89 3704 0044 0532 0130 24",
    "DE89 3704 0044 0532 0130 25",
    "DE89 3704 0044 0532 0130 26",
    "DE89 3704 0044 0532 0130 27",
    "DE89 3704 0044 0532 0130 28",
    "DE89 3704 0044 0532 0130 29",
    "DE89 3704 0044 0532 0130 30"
  ],
  "maxItems": 1000
}
```

# Actor output Schema

## `items` (type: `string`):

One item per input value: the value, its detected type, the validation result and the detail.

## `summary` (type: `string`):

How the run ended: values received and processed, why it stopped.

# 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 = {
    "values": [
        "user@example.com",
        "test@gmail.com",
        "admin@outlook.com",
        "sales@yahoo.com",
        "info@company-domain-that-does-not-exist-zz9q.com",
        "contact@company-domain-that-does-not-exist-zz9q.com",
        "support@mailinator.com",
        "billing@mailinator.com",
        "noreply@gmail.com",
        "webmaster@gmail.com",
        "j.smith@company-domain-that-does-not-exist-zz9q.com",
        "orders@company-domain-that-does-not-exist-zz9q.com",
        "hello@company-domain-that-does-not-exist-zz9q.com",
        "team@company-domain-that-does-not-exist-zz9q.com",
        "user0@example.com",
        "user1@example.com",
        "user2@example.com",
        "user3@example.com",
        "user4@example.com",
        "user5@example.com",
        "user6@example.com",
        "user7@example.com",
        "user8@example.com",
        "user9@example.com",
        "user10@example.com",
        "user11@example.com",
        "user12@example.com",
        "user13@example.com",
        "user14@example.com",
        "user15@example.com",
        "user16@example.com",
        "user17@example.com",
        "user18@example.com",
        "user19@example.com",
        "user20@example.com",
        "user21@example.com",
        "user22@example.com",
        "user23@example.com",
        "user24@example.com",
        "user25@example.com",
        "user26@example.com",
        "user27@example.com",
        "user28@example.com",
        "user29@example.com",
        "user30@example.com",
        "user31@example.com",
        "user32@example.com",
        "user33@example.com",
        "user34@example.com",
        "user35@example.com",
        "+1 415 555 0132",
        "+44 20 7946 0958",
        "+49 30 901820",
        "+33 1 42 68 53 00",
        "+420 123 456 789",
        "+48 22 123 45 67",
        "+31 20 123 4567",
        "+34 91 123 4567",
        "+39 06 1234 5678",
        "+351 21 123 4567",
        "+45 33 12 34 56",
        "+46 8 123 456",
        "0049 30 901820",
        "+1 (212) 555-0143",
        "+44 7911 123456",
        "+33 6 12 34 56 78",
        "+420 777 100000",
        "+420 777 100001",
        "+420 777 100002",
        "+420 777 100003",
        "+420 777 100004",
        "+420 777 100005",
        "+420 777 100006",
        "+420 777 100007",
        "+420 777 100008",
        "+420 777 100009",
        "+420 777 100010",
        "+420 777 100011",
        "+420 777 100012",
        "+420 777 100013",
        "+420 777 100014",
        "+420 777 100015",
        "+420 777 100016",
        "+420 777 100017",
        "+420 777 100018",
        "+420 777 100019",
        "+420 777 100020",
        "+420 777 100021",
        "+420 777 100022",
        "+420 777 100023",
        "+420 777 100024",
        "+420 777 100025",
        "+420 777 100026",
        "+420 777 100027",
        "+420 777 100028",
        "+420 777 100029",
        "+420 777 100030",
        "+420 777 100031",
        "+420 777 100032",
        "+420 777 100033",
        "example.com",
        "iana.org",
        "wikipedia.org",
        "github.com",
        "stackoverflow.com",
        "microsoft.com",
        "apple.com",
        "amazon.com",
        "cloudflare.com",
        "apify.com",
        "example.org",
        "example.net",
        "this-domain-does-not-exist-zz9q123.com",
        "nodns-records-zz9q123.example",
        "site0.example.com",
        "site1.example.com",
        "site2.example.com",
        "site3.example.com",
        "site4.example.com",
        "site5.example.com",
        "site6.example.com",
        "site7.example.com",
        "site8.example.com",
        "site9.example.com",
        "site10.example.com",
        "site11.example.com",
        "site12.example.com",
        "site13.example.com",
        "site14.example.com",
        "site15.example.com",
        "site16.example.com",
        "site17.example.com",
        "site18.example.com",
        "site19.example.com",
        "site20.example.com",
        "site21.example.com",
        "site22.example.com",
        "site23.example.com",
        "site24.example.com",
        "site25.example.com",
        "DE123456789",
        "DE123456788",
        "FR12345678901",
        "FRXX123456789",
        "ES12345678Z",
        "ESB12345674",
        "IT12345678901",
        "NL123456789B01",
        "NL123456789B02",
        "BE0123456789",
        "PL1234567890",
        "CZ12345678",
        "ATU12345678",
        "PT123456789",
        "DK12345678",
        "GB123456789",
        "GB123456789000",
        "DE12345678",
        "invalid-vat-value",
        "12345",
        "DE 123 456 789",
        "FR 12 345 678 901",
        "DE100000000",
        "DE100000001",
        "DE100000002",
        "DE100000003",
        "DE100000004",
        "DE100000005",
        "DE100000006",
        "DE100000007",
        "DE89 3704 0044 0532 0130 00",
        "DE89370400440532013000",
        "GB29 NWBK 6016 1331 9268 19",
        "FR14 2004 1010 0505 0001 3M02 606",
        "ES91 2100 0418 4502 0005 1332",
        "IT60 X054 2811 1010 0000 0123 456",
        "NL91 ABNA 0417 1643 00",
        "BE68 5390 0754 7034",
        "PL61 1090 1014 0000 0712 1981 2874",
        "AT611904300234573201",
        "PT5000 0001 1689 6948 1",
        "DE89370400440532013001",
        "invalid-iban",
        "12345678901234567890",
        "DE89 3704",
        "GB29 NWBK 6016 1331 9268 1A",
        "FR14 2004 1010 0505 0001 3M02 60",
        "DE89 3704 0044 0532 0130 01",
        "DE89 3704 0044 0532 0130 02",
        "DE89 3704 0044 0532 0130 03",
        "DE89 3704 0044 0532 0130 04",
        "DE89 3704 0044 0532 0130 05",
        "DE89 3704 0044 0532 0130 06",
        "DE89 3704 0044 0532 0130 07",
        "DE89 3704 0044 0532 0130 08",
        "DE89 3704 0044 0532 0130 09",
        "DE89 3704 0044 0532 0130 10",
        "DE89 3704 0044 0532 0130 11",
        "DE89 3704 0044 0532 0130 12",
        "DE89 3704 0044 0532 0130 13",
        "DE89 3704 0044 0532 0130 14",
        "DE89 3704 0044 0532 0130 15",
        "DE89 3704 0044 0532 0130 16",
        "DE89 3704 0044 0532 0130 17",
        "DE89 3704 0044 0532 0130 18",
        "DE89 3704 0044 0532 0130 19",
        "DE89 3704 0044 0532 0130 20",
        "DE89 3704 0044 0532 0130 21",
        "DE89 3704 0044 0532 0130 22",
        "DE89 3704 0044 0532 0130 23",
        "DE89 3704 0044 0532 0130 24",
        "DE89 3704 0044 0532 0130 25",
        "DE89 3704 0044 0532 0130 26",
        "DE89 3704 0044 0532 0130 27",
        "DE89 3704 0044 0532 0130 28",
        "DE89 3704 0044 0532 0130 29",
        "DE89 3704 0044 0532 0130 30"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kopachelli/validateid").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 = { "values": [
        "user@example.com",
        "test@gmail.com",
        "admin@outlook.com",
        "sales@yahoo.com",
        "info@company-domain-that-does-not-exist-zz9q.com",
        "contact@company-domain-that-does-not-exist-zz9q.com",
        "support@mailinator.com",
        "billing@mailinator.com",
        "noreply@gmail.com",
        "webmaster@gmail.com",
        "j.smith@company-domain-that-does-not-exist-zz9q.com",
        "orders@company-domain-that-does-not-exist-zz9q.com",
        "hello@company-domain-that-does-not-exist-zz9q.com",
        "team@company-domain-that-does-not-exist-zz9q.com",
        "user0@example.com",
        "user1@example.com",
        "user2@example.com",
        "user3@example.com",
        "user4@example.com",
        "user5@example.com",
        "user6@example.com",
        "user7@example.com",
        "user8@example.com",
        "user9@example.com",
        "user10@example.com",
        "user11@example.com",
        "user12@example.com",
        "user13@example.com",
        "user14@example.com",
        "user15@example.com",
        "user16@example.com",
        "user17@example.com",
        "user18@example.com",
        "user19@example.com",
        "user20@example.com",
        "user21@example.com",
        "user22@example.com",
        "user23@example.com",
        "user24@example.com",
        "user25@example.com",
        "user26@example.com",
        "user27@example.com",
        "user28@example.com",
        "user29@example.com",
        "user30@example.com",
        "user31@example.com",
        "user32@example.com",
        "user33@example.com",
        "user34@example.com",
        "user35@example.com",
        "+1 415 555 0132",
        "+44 20 7946 0958",
        "+49 30 901820",
        "+33 1 42 68 53 00",
        "+420 123 456 789",
        "+48 22 123 45 67",
        "+31 20 123 4567",
        "+34 91 123 4567",
        "+39 06 1234 5678",
        "+351 21 123 4567",
        "+45 33 12 34 56",
        "+46 8 123 456",
        "0049 30 901820",
        "+1 (212) 555-0143",
        "+44 7911 123456",
        "+33 6 12 34 56 78",
        "+420 777 100000",
        "+420 777 100001",
        "+420 777 100002",
        "+420 777 100003",
        "+420 777 100004",
        "+420 777 100005",
        "+420 777 100006",
        "+420 777 100007",
        "+420 777 100008",
        "+420 777 100009",
        "+420 777 100010",
        "+420 777 100011",
        "+420 777 100012",
        "+420 777 100013",
        "+420 777 100014",
        "+420 777 100015",
        "+420 777 100016",
        "+420 777 100017",
        "+420 777 100018",
        "+420 777 100019",
        "+420 777 100020",
        "+420 777 100021",
        "+420 777 100022",
        "+420 777 100023",
        "+420 777 100024",
        "+420 777 100025",
        "+420 777 100026",
        "+420 777 100027",
        "+420 777 100028",
        "+420 777 100029",
        "+420 777 100030",
        "+420 777 100031",
        "+420 777 100032",
        "+420 777 100033",
        "example.com",
        "iana.org",
        "wikipedia.org",
        "github.com",
        "stackoverflow.com",
        "microsoft.com",
        "apple.com",
        "amazon.com",
        "cloudflare.com",
        "apify.com",
        "example.org",
        "example.net",
        "this-domain-does-not-exist-zz9q123.com",
        "nodns-records-zz9q123.example",
        "site0.example.com",
        "site1.example.com",
        "site2.example.com",
        "site3.example.com",
        "site4.example.com",
        "site5.example.com",
        "site6.example.com",
        "site7.example.com",
        "site8.example.com",
        "site9.example.com",
        "site10.example.com",
        "site11.example.com",
        "site12.example.com",
        "site13.example.com",
        "site14.example.com",
        "site15.example.com",
        "site16.example.com",
        "site17.example.com",
        "site18.example.com",
        "site19.example.com",
        "site20.example.com",
        "site21.example.com",
        "site22.example.com",
        "site23.example.com",
        "site24.example.com",
        "site25.example.com",
        "DE123456789",
        "DE123456788",
        "FR12345678901",
        "FRXX123456789",
        "ES12345678Z",
        "ESB12345674",
        "IT12345678901",
        "NL123456789B01",
        "NL123456789B02",
        "BE0123456789",
        "PL1234567890",
        "CZ12345678",
        "ATU12345678",
        "PT123456789",
        "DK12345678",
        "GB123456789",
        "GB123456789000",
        "DE12345678",
        "invalid-vat-value",
        "12345",
        "DE 123 456 789",
        "FR 12 345 678 901",
        "DE100000000",
        "DE100000001",
        "DE100000002",
        "DE100000003",
        "DE100000004",
        "DE100000005",
        "DE100000006",
        "DE100000007",
        "DE89 3704 0044 0532 0130 00",
        "DE89370400440532013000",
        "GB29 NWBK 6016 1331 9268 19",
        "FR14 2004 1010 0505 0001 3M02 606",
        "ES91 2100 0418 4502 0005 1332",
        "IT60 X054 2811 1010 0000 0123 456",
        "NL91 ABNA 0417 1643 00",
        "BE68 5390 0754 7034",
        "PL61 1090 1014 0000 0712 1981 2874",
        "AT611904300234573201",
        "PT5000 0001 1689 6948 1",
        "DE89370400440532013001",
        "invalid-iban",
        "12345678901234567890",
        "DE89 3704",
        "GB29 NWBK 6016 1331 9268 1A",
        "FR14 2004 1010 0505 0001 3M02 60",
        "DE89 3704 0044 0532 0130 01",
        "DE89 3704 0044 0532 0130 02",
        "DE89 3704 0044 0532 0130 03",
        "DE89 3704 0044 0532 0130 04",
        "DE89 3704 0044 0532 0130 05",
        "DE89 3704 0044 0532 0130 06",
        "DE89 3704 0044 0532 0130 07",
        "DE89 3704 0044 0532 0130 08",
        "DE89 3704 0044 0532 0130 09",
        "DE89 3704 0044 0532 0130 10",
        "DE89 3704 0044 0532 0130 11",
        "DE89 3704 0044 0532 0130 12",
        "DE89 3704 0044 0532 0130 13",
        "DE89 3704 0044 0532 0130 14",
        "DE89 3704 0044 0532 0130 15",
        "DE89 3704 0044 0532 0130 16",
        "DE89 3704 0044 0532 0130 17",
        "DE89 3704 0044 0532 0130 18",
        "DE89 3704 0044 0532 0130 19",
        "DE89 3704 0044 0532 0130 20",
        "DE89 3704 0044 0532 0130 21",
        "DE89 3704 0044 0532 0130 22",
        "DE89 3704 0044 0532 0130 23",
        "DE89 3704 0044 0532 0130 24",
        "DE89 3704 0044 0532 0130 25",
        "DE89 3704 0044 0532 0130 26",
        "DE89 3704 0044 0532 0130 27",
        "DE89 3704 0044 0532 0130 28",
        "DE89 3704 0044 0532 0130 29",
        "DE89 3704 0044 0532 0130 30",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("kopachelli/validateid").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 '{
  "values": [
    "user@example.com",
    "test@gmail.com",
    "admin@outlook.com",
    "sales@yahoo.com",
    "info@company-domain-that-does-not-exist-zz9q.com",
    "contact@company-domain-that-does-not-exist-zz9q.com",
    "support@mailinator.com",
    "billing@mailinator.com",
    "noreply@gmail.com",
    "webmaster@gmail.com",
    "j.smith@company-domain-that-does-not-exist-zz9q.com",
    "orders@company-domain-that-does-not-exist-zz9q.com",
    "hello@company-domain-that-does-not-exist-zz9q.com",
    "team@company-domain-that-does-not-exist-zz9q.com",
    "user0@example.com",
    "user1@example.com",
    "user2@example.com",
    "user3@example.com",
    "user4@example.com",
    "user5@example.com",
    "user6@example.com",
    "user7@example.com",
    "user8@example.com",
    "user9@example.com",
    "user10@example.com",
    "user11@example.com",
    "user12@example.com",
    "user13@example.com",
    "user14@example.com",
    "user15@example.com",
    "user16@example.com",
    "user17@example.com",
    "user18@example.com",
    "user19@example.com",
    "user20@example.com",
    "user21@example.com",
    "user22@example.com",
    "user23@example.com",
    "user24@example.com",
    "user25@example.com",
    "user26@example.com",
    "user27@example.com",
    "user28@example.com",
    "user29@example.com",
    "user30@example.com",
    "user31@example.com",
    "user32@example.com",
    "user33@example.com",
    "user34@example.com",
    "user35@example.com",
    "+1 415 555 0132",
    "+44 20 7946 0958",
    "+49 30 901820",
    "+33 1 42 68 53 00",
    "+420 123 456 789",
    "+48 22 123 45 67",
    "+31 20 123 4567",
    "+34 91 123 4567",
    "+39 06 1234 5678",
    "+351 21 123 4567",
    "+45 33 12 34 56",
    "+46 8 123 456",
    "0049 30 901820",
    "+1 (212) 555-0143",
    "+44 7911 123456",
    "+33 6 12 34 56 78",
    "+420 777 100000",
    "+420 777 100001",
    "+420 777 100002",
    "+420 777 100003",
    "+420 777 100004",
    "+420 777 100005",
    "+420 777 100006",
    "+420 777 100007",
    "+420 777 100008",
    "+420 777 100009",
    "+420 777 100010",
    "+420 777 100011",
    "+420 777 100012",
    "+420 777 100013",
    "+420 777 100014",
    "+420 777 100015",
    "+420 777 100016",
    "+420 777 100017",
    "+420 777 100018",
    "+420 777 100019",
    "+420 777 100020",
    "+420 777 100021",
    "+420 777 100022",
    "+420 777 100023",
    "+420 777 100024",
    "+420 777 100025",
    "+420 777 100026",
    "+420 777 100027",
    "+420 777 100028",
    "+420 777 100029",
    "+420 777 100030",
    "+420 777 100031",
    "+420 777 100032",
    "+420 777 100033",
    "example.com",
    "iana.org",
    "wikipedia.org",
    "github.com",
    "stackoverflow.com",
    "microsoft.com",
    "apple.com",
    "amazon.com",
    "cloudflare.com",
    "apify.com",
    "example.org",
    "example.net",
    "this-domain-does-not-exist-zz9q123.com",
    "nodns-records-zz9q123.example",
    "site0.example.com",
    "site1.example.com",
    "site2.example.com",
    "site3.example.com",
    "site4.example.com",
    "site5.example.com",
    "site6.example.com",
    "site7.example.com",
    "site8.example.com",
    "site9.example.com",
    "site10.example.com",
    "site11.example.com",
    "site12.example.com",
    "site13.example.com",
    "site14.example.com",
    "site15.example.com",
    "site16.example.com",
    "site17.example.com",
    "site18.example.com",
    "site19.example.com",
    "site20.example.com",
    "site21.example.com",
    "site22.example.com",
    "site23.example.com",
    "site24.example.com",
    "site25.example.com",
    "DE123456789",
    "DE123456788",
    "FR12345678901",
    "FRXX123456789",
    "ES12345678Z",
    "ESB12345674",
    "IT12345678901",
    "NL123456789B01",
    "NL123456789B02",
    "BE0123456789",
    "PL1234567890",
    "CZ12345678",
    "ATU12345678",
    "PT123456789",
    "DK12345678",
    "GB123456789",
    "GB123456789000",
    "DE12345678",
    "invalid-vat-value",
    "12345",
    "DE 123 456 789",
    "FR 12 345 678 901",
    "DE100000000",
    "DE100000001",
    "DE100000002",
    "DE100000003",
    "DE100000004",
    "DE100000005",
    "DE100000006",
    "DE100000007",
    "DE89 3704 0044 0532 0130 00",
    "DE89370400440532013000",
    "GB29 NWBK 6016 1331 9268 19",
    "FR14 2004 1010 0505 0001 3M02 606",
    "ES91 2100 0418 4502 0005 1332",
    "IT60 X054 2811 1010 0000 0123 456",
    "NL91 ABNA 0417 1643 00",
    "BE68 5390 0754 7034",
    "PL61 1090 1014 0000 0712 1981 2874",
    "AT611904300234573201",
    "PT5000 0001 1689 6948 1",
    "DE89370400440532013001",
    "invalid-iban",
    "12345678901234567890",
    "DE89 3704",
    "GB29 NWBK 6016 1331 9268 1A",
    "FR14 2004 1010 0505 0001 3M02 60",
    "DE89 3704 0044 0532 0130 01",
    "DE89 3704 0044 0532 0130 02",
    "DE89 3704 0044 0532 0130 03",
    "DE89 3704 0044 0532 0130 04",
    "DE89 3704 0044 0532 0130 05",
    "DE89 3704 0044 0532 0130 06",
    "DE89 3704 0044 0532 0130 07",
    "DE89 3704 0044 0532 0130 08",
    "DE89 3704 0044 0532 0130 09",
    "DE89 3704 0044 0532 0130 10",
    "DE89 3704 0044 0532 0130 11",
    "DE89 3704 0044 0532 0130 12",
    "DE89 3704 0044 0532 0130 13",
    "DE89 3704 0044 0532 0130 14",
    "DE89 3704 0044 0532 0130 15",
    "DE89 3704 0044 0532 0130 16",
    "DE89 3704 0044 0532 0130 17",
    "DE89 3704 0044 0532 0130 18",
    "DE89 3704 0044 0532 0130 19",
    "DE89 3704 0044 0532 0130 20",
    "DE89 3704 0044 0532 0130 21",
    "DE89 3704 0044 0532 0130 22",
    "DE89 3704 0044 0532 0130 23",
    "DE89 3704 0044 0532 0130 24",
    "DE89 3704 0044 0532 0130 25",
    "DE89 3704 0044 0532 0130 26",
    "DE89 3704 0044 0532 0130 27",
    "DE89 3704 0044 0532 0130 28",
    "DE89 3704 0044 0532 0130 29",
    "DE89 3704 0044 0532 0130 30"
  ]
}' |
apify call kopachelli/validateid --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kopachelli/validateid"
        }
    }
}
```

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/Iic7KdTQNOHwt8J7h/builds/PFd5rb65PrFvRjoiN/openapi.json
