Free tier available

UK Document Validator API

Validate VAT numbers, NINO, Company Numbers and UTR with a single API call. Works in any programming language.

Get Free API Key Interactive Docs

5 Endpoints. Everything you need.

GET /validate/detect

Auto-detect. Pass any document — type is identified automatically.

GET /validate/vat

Validate UK VAT numbers using HMRC's mod-97 algorithm. GB prefix optional.

GET /validate/nino

Validate National Insurance Numbers. Checks all HMRC invalid prefix rules.

GET /validate/company

Validate Companies House numbers. Returns company type: Ltd, PLC, LLP, Scottish...

GET /validate/utr

Validate Unique Taxpayer References used for Self Assessment.

Quick Start

import requests

r = requests.get(
    "https://uk-document-validator1.p.rapidapi.com/validate/vat",
    params={"value": "GB123456789"},
    headers={
        "X-RapidAPI-Key": "YOUR_KEY",
        "X-RapidAPI-Host": "uk-document-validator1.p.rapidapi.com"
    }
)
print(r.json())
# {'valid': True, 'type': 'VAT', 'country': 'GB', 'formatted': 'GB123 456 789'}

Company Number response example

{
  "input": "SC123456",
  "valid": true,
  "type": "COMPANY_NUMBER",
  "company_type": "Scottish company",
  "formatted": "SC123456"
}

Pricing

Basic

$0/mo
500 requests / month
Get Started Free

Ultra

$29/mo
100,000 requests / month
Subscribe

Frequently Asked Questions

What is a NINO?

A National Insurance Number (NINO) is a unique identifier used in the UK for social security and tax purposes. Format: 2 letters + 6 digits + 1 letter (e.g. AB123456C).

How does UK VAT validation work?

UK VAT numbers use an HMRC mod-97 checksum on the first 7 digits. The API implements both the old and new HMRC algorithms automatically.

What company number formats are supported?

All formats: standard 8-digit numbers, Scottish (SC), Northern Irish (NI), LLPs (OC), and 15+ other prefixes. The API returns the company type for each.

What is a UTR?

A Unique Taxpayer Reference is a 10-digit number issued by HMRC for Self Assessment tax returns. The API validates it using the official checksum algorithm.

Do I need to sign up?

Yes, a free RapidAPI account is required. The free tier includes 500 requests/month with no credit card needed.

Also available
🇪🇸

Spain Document Validator API

Need to validate Spanish documents too? NIF, NIE, CIF and IBAN — same free tier, same simple API. Available in English and Spanish.

View Spain Validator →