VAT API.co.uk

Find the VAT number of a European company

Getting Started

  • PHP:
    <?php
    $url = "http://vatapi.co.uk/api.aspx?Name=Microsoft&Country=GB";
    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $html = curl_exec($ch);
    $json = json_decode($html);
    foreach($json as $organisation)
    {
    	print_r($organisation->LegalName . "<br>");
    	print_r($organisation->VatNumber . "<br>");
    	print_r($organisation->Address . "<br><hr>");
    }
    ?>
    
  • C#:*
    System.Net.WebClient web = new System.Net.WebClient();
    var strUrl = "http://vatapi.co.uk/api.aspx?Name=Microsoft&Country=GB";
    var strJson = web.DownloadString(strUrl);
    var jArray = JArray.Parse(strJson); 
    foreach (dynamic organisation in jArray)
    {
        Console.WriteLine(organisation.LegalName);
        Console.WriteLine(organisation.VatNumber);
        Console.WriteLine(organisation.Address);
        Console.WriteLine("--------");
    }
    
    *This requires the Newtonsoft.Json Nuget package

Coverage

Where does this cover?

25 Countries in the EU, with more being added...

Covers Austria, Switzerland, Great Britain, Ireland, Italy, France, Belgium, Holland, Luxembourg, Denmark, Norway, Finland, Czech Republic, Hungary, Slovenia, Greece, Bulgaria, Croatia, Estonia, Latvia, Poland, Portugal, Slovakia, Sweden and Malta

Coming soon are Cyprus, Germany, Lithuania, Romania, and Spain

Downloads

Download a spreadsheet of VAT registered companies to import into your own database

Download a sample

Not a developer?

Not everyone who comes here is a programmer, If you're not technical, then try out one of out apps for iOS or Android using the links below. But if you have a developer in your team, then send them our documentation which is available for download here: PDF (360Kb).




It's free!

This is a free script, no usage restrictions. You can include it license free, in any project, either commercial or non commercial. But, if you really like it, then please consider buying our App.