RedScrapeRedScrapeDocs

Account

Retrieve account information, wallet balance, and manage API keys.

Get Account Info

Retrieve details about the authenticated account, including subscription counts.

GET /account/me

Headers

HeaderRequiredDescription
X-API-KeyYesYour 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

FieldTypeDescription
idintegerUnique user ID
emailstringAccount email address
usernamestringDisplay name
wallet_balancestringCurrent balance in USD
regionstring | nullAccount region
created_atstringISO 8601 registration timestamp
api_key_prefixstring | nullFirst 8 chars of your API key (for identification)
total_subscriptionsintegerTotal number of subscriptions
active_subscriptionsintegerNumber of currently active subscriptions

Get Balance

Quick endpoint to check wallet balance only.

GET /account/balance

Response

{
  "balance": "150.00"
}

Rotate API Key

Generate a new API key. The current key is invalidated immediately.

POST /account/rotate-api-key

Query Parameters

ParameterTypeRequiredDescription
totp_codestringIf 2FA enabledYour 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

On this page