import requests
url = "https://www.knowyourgst.com/developers/gstincall/"
querystring = {"gstin":"GST-Number"}
headers = {
'passthrough': "API_KEY",
}
response = requests.request("GET", url, headers=headers, params=querystring)
print(response.text)
{
"status": "Active",
"registration-date": "02/07/2017",
"business": "Factory / Manufacturing",
"adress": {
"lg": "",
"bname": "",
"street": "Thycaud",
"bno": "Office of the Divl.Raly.Manager",
"location": "Trivandrum",
"lt": "",
"floor": "2nd Floor",
"state": "Kerala",
"pincode": "695014"
},
"gstin": "32AAAGM0289C1ZS",
"dealer-type": "Regular",
"trade-name": "INDIAN RAILWAYS",
"entity-type": "Government Department",
"pan": "AAAGM0289C",
"legal-name": "Ministry of Railways"
}