Subscription Info
This endpoint provides detailed information about your current datacenter proxy subscription, including plan type, thread limits, proxy count, expiration, and more.
GET
/dev/v1.0/subscriptions/datacenterImportant: Copy the
"id": "su_69af..." value from the response. This subscription ID is required for further requests, just like IP whitelist actions. import requests, json
def get_slots(api_key):
url = "https://api.ghostealth.com/dev/v1.0/subscriptions/datacenter"
headers = {
"Content-Type": "application/json",
"Authorization": f"ApiKey {api_key}"
}
res = requests.get(url, headers=headers)
print("Get Slots Response:", res.status_code)
print(json.dumps(res.json(), indent=2))
api_key = "xxx"
get_slots(api_key)
Example Response:
{
"data": {
"id": "su_69afba98bc32119ad6daa8f0",
"status": "ACTIVE",
"type": "STANDARD",
"canceled": false,
"period": {
"start": {
"timestamp": 1773124248080,
"date": 1773124248080
},
"end": {
"timestamp": 1773729048080,
"date": 1773729048080
}
},
"consumption": {
"bytes": 0,
"requests": 0
},
"plan": {
"id": "pl_69afba85bc32119ad6daa8e8",
"title": "GS-DAT 100",
"description": "Weekly billing",
"billingCycle": "WEEKLY",
"price": {
"currency": "USD",
"netAmount": 1681,
"grossAmount": 2000,
"taxAmount": 319,
"feeAmount": 0,
"taxRate": 19.0
},
"configuration": {
"type": "DATACENTER",
"connections": 100,
"authentications": 1
}
},
"slots": [
{
"id": "sl_69afba98bc32119ad6daa8f2",
"status": "ENABLED",
"state": "UNBOUND",
"synchronization": "SYNCED",
"type": "IP"
}
]
}
}Note: Bandwidth values are returned in gigabytes (GB). These values are updated every 120 seconds.
