Verify GSTINs, score vendor risk, pull filing history and generate GSTIN QR codes from one REST API. JSON over HTTPS, API-key auth, and you only pay for what you use.
import requests
res = requests.get(
"https://gst.getbusiness.co.in/api/v1/verify/27AAAAA0000A1Z5",
headers={"X-API-Key": "YOUR_API_KEY"},
timeout=15,
)
body = res.json()
if body["success"]:
print(body["data"]["legal_name"], body["data"]["status"])
const res = await fetch("https://gst.getbusiness.co.in/api/v1/verify/27AAAAA0000A1Z5", {
headers: { "X-API-Key": process.env.GSTIN_API_KEY },
});
const body = await res.json();
if (body.success) {
console.log(body.data.legal_name, body.data.status);
}
The basics
Authentication, credits and limits
Authentication
Send your key in the X-API-Key header on every request. An api_key query parameter also works, but the header keeps keys out of logs and browser history.
You can have up to 5 live keys plus one sandbox key. Revoking a key stops it working immediately.
Credits
Each call uses a fixed number of credits: verify 1, health score, risk score and filing 1 each, QR code 5. Cached and live responses cost the same.
Every response includes credits_remaining. Raw PNG/SVG QR responses carry it in the X-Credits-Remaining header instead.
Rate limits
60 requests per minute per account, shared across the GSTIN endpoints. PAN and name search have a separate limit of 30 per minute. Over the limit you get HTTP 429; wait a few seconds and retry.
Caching
Results are cached for up to 30 days to keep responses fast. "cached": true tells you the data came from cache rather than a fresh GST portal lookup.
Reference
Endpoint reference
Base URL: https://gst.getbusiness.co.in/api/v1. Example responses are shortened where marked.
GSTIN endpoints · API credits
Verify GSTIN
GET/api/v1/verify/{GSTIN}1 credit
Returns registration details, status, address, PAN and nature of business for a single GSTIN.
A 0–100 compliance score using the same algorithm as our free GST Health Score checker. It weighs registration status, filing recency, entity age and taxpayer type.
A 0–100 score (higher is safer) built for procurement and vendor onboarding. It weighs filing consistency over the past year, entity maturity and taxpayer type, not just a compliance snapshot.
A scannable QR code for a GSTIN, the same as our free GSTIN QR Code Generator, built server-side for invoices, labels and shop displays. It encodes the GSTIN, business name, status and a live verification link. Credits are only charged when a QR code is returned.
Query parameters (all optional)
format
json (default): PNG data URI and SVG markup in JSON. png: raw image/png. svg: raw image/svg+xml.
size
Image width and height in pixels, 100–1000 (default 300).
content
details (default): GSTIN, name, status and verify link. url: verify link only, a smaller code that scans better when printed small.
ecc
Error correction: L, M (default), Q or H. Higher survives more damage but makes a denser code.
Request
curl -H "X-API-Key: YOUR_API_KEY" \
"https://gst.getbusiness.co.in/api/v1/qr-code/27AAAAA0000A1Z5"# Save a raw PNG (credits left are in the X-Credits-Remaining header)curl -H "X-API-Key: YOUR_API_KEY" -o qr.png \
"https://gst.getbusiness.co.in/api/v1/qr-code/27AAAAA0000A1Z5?format=png&size=600"
Businesses whose legal or trade name matches the query (at least 3 characters), from the live GSTN database. The response has the same shape as PAN search.
Request
curl -H "X-API-Key: YOUR_API_KEY" \
"https://gst.getbusiness.co.in/api/v1/search/name/Reliance%20Industries"# Or with query parameterscurl -H "X-API-Key: YOUR_API_KEY" \
"https://gst.getbusiness.co.in/api/v1/search?type=name&q=Reliance+Industries"
Errors
Error responses
Errors return a non-2xx status and a JSON body like {"success": false, "error": "Invalid API key."}. You are not charged for failed calls.
Status
Meaning
400
Bad request, e.g. an unknown search type
401
Missing or invalid API key
402
Not enough credits for this call. Recharge your account
403
Sandbox key used on the Search API. Use a live key
404
GSTIN not found (QR code endpoint)
422
Invalid GSTIN, PAN or query parameter
429
Rate limit exceeded (60/min, or 30/min for search)
502
The upstream GST service is unavailable. Retry shortly
503
Temporarily unavailable. Retry shortly
Pricing
Pay as you go, or go unlimited
Credits never expire, and bigger packs cost less per credit. Compare all plans →
Sign in with Google, then click 'Generate API Key' on this page. You get 10 free demo credits instantly. The key is shown once, so copy it and store it securely.
Each endpoint uses a fixed number of credits: verify 1, health score, risk score and filing history 1 each, and a QR code 5. Credits cost ₹0.10–₹0.20 each depending on the pack size. Cached and live responses cost the same. PAN and name searches use separate Search Credits, at one credit per search.
No. Both API credits and Search Credits never expire. Use them at your own pace.
API credits pay for the GSTIN endpoints: verify, health score, risk score, filing history and QR code. Search Credits pay for PAN and name searches. They are separate balances, bought separately.
Yes. Each account is limited to 60 requests per minute across all its keys, shared between the verify, health score, risk score, filing and QR code endpoints. The PAN and name search endpoints have their own limit of 30 requests per minute. This applies to demo, pay-as-you-go and unlimited plans alike. Going over returns HTTP 429; wait a few seconds and retry.
Yes. Generate a key to get 10 free demo credits. You also get a sandbox key, which returns realistic sample data on the GSTIN endpoints and never uses credits.
JSON over HTTPS. The QR code endpoint can also return a raw PNG or SVG image. Example responses for every endpoint are shown above.
The API returns HTTP 402 (Payment Required). Buy more credits from this page or switch to an unlimited plan.
Start building in minutes
10 free demo credits and a sandbox key the moment you sign in. No card needed.