Python SDK for the VeriCorp Company Verify API — European company verification.
pip install vericorp-company-verifyfrom vericorp_company_verify import VeriCorp
client = VeriCorp("your-rapidapi-key")
# Look up a company
company = client.lookup("PT502011378")
print(company.name) # UNIVERSIDADE DO MINHO
print(company.address) # Address(street='LG DO PACO', city='BRAGA', ...)
# Validate a VAT number
result = client.validate("DE811871080")
print(result.vat_valid) # True
# List supported countries
countries = client.countries()
print(countries.total) # 29from vericorp_company_verify import AsyncVeriCorp
async with AsyncVeriCorp("your-rapidapi-key") as client:
company = await client.lookup("DK10150817")
print(company.name)| Method | Description |
|---|---|
lookup(tax_id) |
Look up company by tax ID |
lookup_gb(company_number) |
Look up UK company by number |
validate(tax_id) |
Validate a VAT number |
batch(tax_ids) |
Batch lookup (max 10) |
countries() |
List supported countries |
health() |
API health check |
from vericorp_company_verify.errors import InvalidTaxIdError, NotFoundError, RateLimitError
try:
company = client.lookup("INVALID")
except InvalidTaxIdError:
print("Bad tax ID format")
except NotFoundError:
print("Company not found")
except RateLimitError as e:
print(f"Rate limited, retry after {e.retry_after}s")MIT