import requests
url = "https://api.pdfshift.io/v3/account"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"account": {
"name": "Richard Hendricks",
"firstname": "Richard",
"email": "richard@piedpiper.com",
"created": 1526561399000,
"company_name": "PiedPiper",
"company_details": "Hacker Hostel,\n5230 Newell Road,\nPalo Alto, CA 94303",
"company_vat": null,
"country": "US",
"renew_date": 1763683200000,
"avatar": "https://secure.gravatar.com/avatar/584ac79c82c64934d475251b46f78f4a?d=mm&s=96",
"billing_email": "jared@piedpiper.com",
"plan": {
"display": "Business",
"name": "business",
"credits": 50000,
"filesize": 1250,
"timeout": 100,
"price": 99,
"yearly": false,
"overage": 20
},
"hard_limit": null,
"subscription_ends_at": null
}
}Returns the account details for the connected API Key
import requests
url = "https://api.pdfshift.io/v3/account"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"account": {
"name": "Richard Hendricks",
"firstname": "Richard",
"email": "richard@piedpiper.com",
"created": 1526561399000,
"company_name": "PiedPiper",
"company_details": "Hacker Hostel,\n5230 Newell Road,\nPalo Alto, CA 94303",
"company_vat": null,
"country": "US",
"renew_date": 1763683200000,
"avatar": "https://secure.gravatar.com/avatar/584ac79c82c64934d475251b46f78f4a?d=mm&s=96",
"billing_email": "jared@piedpiper.com",
"plan": {
"display": "Business",
"name": "business",
"credits": 50000,
"filesize": 1250,
"timeout": 100,
"price": 99,
"yearly": false,
"overage": 20
},
"hard_limit": null,
"subscription_ends_at": null
}
}