Account
Retrieve account information, wallet balance, and manage API keys.
Get Account Info
Retrieve details about the authenticated account, including subscription counts.
GET /account/meHeaders
| Header | Required | Description |
|---|---|---|
X-API-Key | Yes | Your API key |
Response
{
"id": 5,
"email": "[email protected]",
"username": "proxymaster",
"wallet_balance": "150.00",
"region": "US",
"created_at": "2025-01-01T00:00:00Z",
"api_key_prefix": "rsk_a1b2",
"total_subscriptions": 12,
"active_subscriptions": 8
}Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Unique user ID |
email | string | Account email address |
username | string | Display name |
wallet_balance | string | Current balance in USD |
region | string | null | Account region |
created_at | string | ISO 8601 registration timestamp |
api_key_prefix | string | null | First 8 chars of your API key (for identification) |
total_subscriptions | integer | Total number of subscriptions |
active_subscriptions | integer | Number of currently active subscriptions |
Get Balance
Quick endpoint to check wallet balance only.
GET /account/balanceResponse
{
"balance": "150.00"
}Rotate API Key
Generate a new API key. The current key is invalidated immediately.
POST /account/rotate-api-keyQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
totp_code | string | If 2FA enabled | Your 2FA code |
Rate Limit
3 requests per hour per account.
Response
{
"api_key": "rsk_new_key_here_abc123def456",
"prefix": "rsk_new_",
"message": "API key rotated. Store the new key securely the old key is now invalid."
}Store the new API key immediately it will not be shown again. The old key stops working as soon as the rotation is complete.
Examples
# Get full account info
curl -H "X-API-Key: your_api_key" \
https://api.redscrape.com/api/public/account/me
# Check balance
curl -H "X-API-Key: your_api_key" \
https://api.redscrape.com/api/public/account/balance
# Rotate API key (no 2FA)
curl -X POST -H "X-API-Key: your_api_key" \
https://api.redscrape.com/api/public/account/rotate-api-key
# Rotate API key (with 2FA)
curl -X POST -H "X-API-Key: your_api_key" \
"https://api.redscrape.com/api/public/account/rotate-api-key?totp_code=123456"import requests
API_KEY = "your_api_key"
BASE = "https://api.redscrape.com/api/public"
HEADERS = {"X-API-Key": API_KEY}
# Get account overview
account = requests.get(f"{BASE}/account/me", headers=HEADERS).json()
print(f"Active proxies: {account['active_subscriptions']}")
print(f"Wallet: ${account['wallet_balance']}")
# Rotate API key
new_key = requests.post(
f"{BASE}/account/rotate-api-key", headers=HEADERS
).json()
print(f"New key: {new_key['api_key']}")
# IMPORTANT: Update your stored key immediately