api-ninjas-com VAT Validation API

The VAT Validation API validates EU VAT numbers with instant format and checksum checks and live EU registry status. It always returns an answer — cached last-known-good results are served when a national registry is down, and unresolved numbers are re-checked automatically in the background. Premium plans include company name, company address, and audit-ready consultation numbers.

Operations 1

GET /v1/vatvalidation Validate an EU VAT number #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/api-ninjas-com:api-ninjas-com-vat-validation-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

api-ninjas-com-vat-validation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ninjas VAT Validation API
  description: 'Combined OpenAPI specification for every API Ninjas endpoint. Requests go to https://api.api-ninjas.com with an `X-Api-Key` header; get a free key at https://api-ninjas.com/register. Human-readable docs: https://api-ninjas.com/api. Index for LLMs: https://api-ninjas.com/llms.txt.'
  version: 1.0.0
  contact:
    name: API Ninjas
    url: https://api-ninjas.com
  license:
    name: Proprietary
servers:
- url: https://api.api-ninjas.com
  description: API Ninjas Production
security:
- ApiKeyAuth: []
tags:
- name: VAT Validation
  description: The VAT Validation API validates EU VAT numbers with instant format and checksum checks and live EU registry status. It always returns an answer — cached last-known-good results are served when a national registry is down, and unresolved numbers are re-checked automatically in the background. Premium plans include company name, company address, and audit-ready consultation numbers.
paths:
  /v1/vatvalidation:
    get:
      summary: Validate an EU VAT number
      description: Validates an EU VAT number by format, checksum, and live EU registry status. Requires a `vat` with country prefix. Company name and address require a premium plan.
      operationId: validateVATNumber
      tags:
      - VAT Validation
      parameters:
      - name: vat
        in: query
        required: true
        schema:
          type: string
        description: The VAT number to validate, with 2-letter country prefix (e.g. FR40303265045). Spaces, dots, and hyphens are tolerated. May omit the prefix when the country parameter is set.
      - name: country
        in: query
        schema:
          type: string
        description: Two-letter country code (e.g. DE). Optional when the vat parameter includes a country prefix. GR is accepted and canonicalized to EL.
      - name: requester_vat
        in: query
        schema:
          type: string
        description: Your own company's EU VAT number (with country prefix). Forces a live registry check and returns an official consultation_number as audit evidence. Premium only.
      responses:
        '200':
          $ref: '#/components/responses/VATValidationResponse'
        '400':
          $ref: '#/components/responses/VatValidationOpenapi_BadRequest'
        '401':
          $ref: '#/components/responses/VatValidationOpenapi_Unauthorized'
        '500':
          $ref: '#/components/responses/VatValidationOpenapi_InternalServerError'
      security:
      - ApiKeyAuth: []
components:
  schemas:
    VATValidationResult:
      type: object
      properties:
        vat:
          type: string
          description: The normalized VAT number including country prefix, e.g. FR40303265045.
        country:
          type: string
          description: Two-letter registry country code. Greece is EL; Northern Ireland is XI.
        number:
          type: string
          description: The national part of the VAT number (no country prefix).
        format_valid:
          type: boolean
          description: Whether the number matches the country's VAT number format.
        checksum_valid:
          type: boolean
          description: Whether the number passes the country's checksum algorithm.
        status:
          type: string
          description: Validation verdict. 'valid' = registered for VAT; 'invalid' = failed format/checksum or confirmed not registered; 'unknown' = well-formed but the registry is temporarily unreachable and no cached answer exists (the number is re-checked automatically in the background).
          enum:
          - valid
          - invalid
          - unknown
        source:
          type:
          - string
          - 'null'
          description: 'Where the answer came from: ''vies'' (the official EU registry) or ''seed'' (national open-registry snapshot).'
        cached:
          type: boolean
          description: True when the answer was served from the validation cache rather than a live registry check.
        checked_at:
          type:
          - string
          - 'null'
          description: UTC timestamp of the registry answer (ISO 8601). For cached results, the time the number was last confirmed.
        company_name:
          type:
          - string
          - 'null'
          description: Registered company name. Premium only.
        company_address:
          type:
          - string
          - 'null'
          description: Registered company address. Premium only.
        consultation_number:
          type:
          - string
          - 'null'
          description: Official EU consultation number. Premium only.
        message:
          type: string
          description: Human-readable note about the validation result.
      required:
      - vat
      - country
      - number
      - format_valid
      - checksum_valid
      - status
      - cached
  responses:
    VATValidationResponse:
      description: The validation result.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/VATValidationResult'
    VatValidationOpenapi_BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
    VatValidationOpenapi_Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
    VatValidationOpenapi_InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
externalDocs:
  description: API Ninjas documentation
  url: https://api-ninjas.com/api