Validate VAT numbers, NINO, Company Numbers and UTR with a single API call. Works in any programming language.
Get Free API Key Interactive DocsAuto-detect. Pass any document — type is identified automatically.
Validate UK VAT numbers using HMRC's mod-97 algorithm. GB prefix optional.
Validate National Insurance Numbers. Checks all HMRC invalid prefix rules.
Validate Companies House numbers. Returns company type: Ltd, PLC, LLP, Scottish...
Validate Unique Taxpayer References used for Self Assessment.
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'}
{
"input": "SC123456",
"valid": true,
"type": "COMPANY_NUMBER",
"company_type": "Scottish company",
"formatted": "SC123456"
}
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).
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.
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.
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.
Yes, a free RapidAPI account is required. The free tier includes 500 requests/month with no credit card needed.
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 →