Built for developers

One REST endpoint, one header, predictable JSON. Everything you need to add GSTIN verification to your product — docs, integration guides, and a dashboard to manage API keys and credits.

Verify a GSTIN in one call

Authenticate with an x-api-key header and call a single endpoint to get taxpayer, filing, and e-invoicing data back as JSON.

async function verifyGSTIN(gstin) {
  const response = await fetch(
    `https://gstinapi.com/api/get-taxpayer-info/${gstin}`,
    { headers: { 'x-api-key': 'YOUR_API_KEY' } }
  );

  return response.json();
}

const result = await verifyGSTIN('27AAACR5055K1Z7');
console.log(result.taxpayer_data.name, result.taxpayer_data.status);
function verifyGSTIN(string $gstin): array
{
    $curl = curl_init("https://gstinapi.com/api/get-taxpayer-info/{$gstin}");

    curl_setopt_array($curl, [
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => ['x-api-key: YOUR_API_KEY'],
    ]);

    $response = curl_exec($curl);
    curl_close($curl);

    return json_decode($response, true);
}

$result = verifyGSTIN('27AAACR5055K1Z7');
echo $result['taxpayer_data']['name'];
import requests

def verify_gstin(gstin: str) -> dict:
    url = f"https://gstinapi.com/api/get-taxpayer-info/{gstin}"
    headers = {"x-api-key": "YOUR_API_KEY"}

    response = requests.get(url, headers=headers)
    response.raise_for_status()
    return response.json()

result = verify_gstin("27AAACR5055K1Z7")
print(result["taxpayer_data"]["name"], result["taxpayer_data"]["status"])

Official client libraries

Two MIT-licensed, zero-dependency packages. Both validate a GSTIN offline — format, check digit, state, embedded PAN — with no key and no quota, and both call the live register when you give them one.

Node.js & TypeScript

npm install @dlminds/gstin-api

Node 18+, no dependencies, typed. Imported as @dlminds/gstin-api.

Python

pip install gstin-toolkit

Python 3.9+, no dependencies, typed. Imported as gstin_api.

Side-by-side comparison, the full export list and the offline/online split are on the client libraries page.

Developer resources

API documentation

Authentication, the endpoint reference, and every response field explained.

Read the docs

Integration guides

Step-by-step guides for integrating GSTIN verification in Laravel, Node.js, and more.

Browse guides

API keys & dashboard

Generate and rotate API keys, track usage, and top up credits from your dashboard.

Create an account

Guides on developer integration guides

Working code for calling a GST verification API from every major language, framework and no-code platform.

All 299 GST guides

Start building in minutes

Sign up, verify your email, and get 20 free credits — no credit card required to start testing.