# Validate German VAT Numbers (VIES)

**Use case:** 

Check German USt-IdNr / VAT numbers against the official EU VIES service. Each number returns VALID or INVALID with country, normalized number and timestamp. Format errors and VIES outages are not charged.

## Input

```json
{
  "vatNumbers": [
    "DE143454214",
    "DE129274202",
    "DE129273398"
  ],
  "maxRetries": 3,
  "concurrencyPerCountry": 2,
  "cacheHours": 0,
  "deduplicate": true,
  "maxItems": 5
}
```

## Output

```json
{
  "inputVat": {
    "label": "Input VAT",
    "format": "string"
  },
  "normalizedVat": {
    "label": "Normalized VAT",
    "format": "string"
  },
  "countryCode": {
    "label": "Country code",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "valid": {
    "label": "Valid",
    "format": "boolean"
  },
  "companyName": {
    "label": "Company name",
    "format": "string"
  },
  "companyAddress": {
    "label": "Company address",
    "format": "string"
  },
  "consultationNumber": {
    "label": "Consultation number",
    "format": "string"
  },
  "viesErrorCode": {
    "label": "VIES error code",
    "format": "string"
  },
  "attempts": {
    "label": "Attempts",
    "format": "integer"
  },
  "fromCache": {
    "label": "From cache",
    "format": "boolean"
  },
  "charged": {
    "label": "Charged",
    "format": "boolean"
  },
  "retryable": {
    "label": "Retryable",
    "format": "boolean"
  },
  "checkedAt": {
    "label": "Checked at",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The EU VIES VAT Validator & Batch Enricher Actor is ready to run with the inputs already set for "Validate German VAT Numbers (VIES)". [Sign up or log in](https://console.apify.com/create-task-from-example/wJZhEdQYvtFcc1xVG) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Validate German VAT Numbers (VIES)" task

The EU VIES VAT Validator & Batch Enricher Actor will start running based on the input automatically. You can also change all the input fields, like VAT numbers, max retries, and more, to match your specific use case.

### 3. Receive the "Validate German VAT Numbers (VIES)" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as input vat, normalized vat, country code, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Validate German VAT Numbers (VIES)" task via API](https://apify.com/immemorial_damask/eu-vies-vat-validator.md).

## FAQ

### Why is the company name empty for German numbers?

Germany does not share trader names or addresses through VIES, so only the validity result is returned. Most other member states do return name and address.

### How much does it cost?

$0.004 per definitive VALID or INVALID result ($4 per 1,000). This task checks 3 numbers.

## About this Actor

This example demonstrates how to use [EU VIES VAT Validator & Batch Enricher](https://apify.com/immemorial_damask/eu-vies-vat-validator.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/immemorial_damask/eu-vies-vat-validator.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/immemorial_damask/eu-vies-vat-validator.md

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`).
