import requests
url = "https://api.pdfshift.io/v3/credits/usage"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"credits": {
"base": 50000,
"remaining": 49881,
"total": 50000,
"used": 119
},
"success": true
}Returns the current credits usage with some details to help you know where your usage is at.
It contains the total credits, the remaining credits you can use for your period and the used number of credits.
The base value might differ from the total if you have enabled overage. In this case, base represent the default limit from your current plan, whereas total is the limit set in your overage. Once your credit usage reaches the total, the conversions will be refused.
import requests
url = "https://api.pdfshift.io/v3/credits/usage"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"credits": {
"base": 50000,
"remaining": 49881,
"total": 50000,
"used": 119
},
"success": true
}