POST /api/user — Account
Retrieve your account balance and status.
Endpoint
Section titled “Endpoint”POST https://api.ucaptcha.net/api/userContent-Type: application/x-www-form-urlencoded
Authentication
Section titled “Authentication”Either method is accepted:
authtokenfield in the POST body- HTTP Basic auth — username = your uCaptcha API key
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
authtoken | string | Yes* | Your uCaptcha API key |
* Or use HTTP Basic auth instead.
Response
Section titled “Response”{ "user": 0, "rate": 0, "balance": 12.50, "is_banned": false}| Field | Type | Description |
|---|---|---|
user | number | User ID (always 0 in uCaptcha) |
rate | number | Solving rate (always 0 in uCaptcha) |
balance | number | Account balance in USD |
is_banned | boolean | Whether the account is banned |
Examples
Section titled “Examples”curl -X POST https://api.ucaptcha.net/api/user \ -d "authtoken=YOUR_API_KEY"Python
Section titled “Python”import requests
resp = requests.post("https://api.ucaptcha.net/api/user", data={ "authtoken": "YOUR_API_KEY"})balance = resp.json()["balance"]print(f"Balance: ${balance:.2f}")