API Reference
Check whether one of your own bookmaker accounts has been restricted (promo banned, bet limited, frozen, and so on) before you bet with it.
Base URL: https://api.b337.ai
It is synchronous and cheap: the answer is served from memory, with no
correlation_id and nothing to poll. It is built to be called often (for
example once per account on every tick of an auto bettor).
X-API-Key: YOUR_API_KEY| Field | Type | Required | Description |
|---|---|---|---|
bookie | string | Yes | Bookie id, e.g. bet365, tab. Case-insensitive |
username | string | Yes | The account's login, as added to bet337. Case-insensitive |
| Field | Type | Description |
|---|---|---|
lock_status | string[] | Every restriction recorded on the account. [] = none recorded |
*_at | string | null | When each restriction was first recorded (ISO 8601), null if never |
as_of | number | Unix time the status snapshot was taken. Always under 3 minutes old |
lock_status values you may see: promo_banned, bet_limited,
sgm_limited, sports_limited, intl_racing_limited, locked,
frozen, blocked, self_excluded, limited, captcha_limited,
withdrawal_blocked (TAB withdrawals on hold — betting still works, only
money out is held). Treat any value you don't recognise as a restriction.
lock_status: [], the same as a
clean account, so it never reveals another user's account.503 is not "clean". If the status snapshot can't be kept fresh the
endpoint answers 503 rather than a possibly-stale []. Skip betting with
the account (or use your own fallback) until it answers 200 again.400 - bookie and username required: a parameter is present but blank401 - Invalid API key403 - No valid subscription (this endpoint has no sandbox sample)422 - bookie or username (or the X-API-Key header) missing from the request entirely503 - Auth index not loaded or Account status index not loaded or stale; retry shortly, don't read it as cleanErrors come back as {"detail": "..."} (422 as {"success": false, "error": "Request validation failed", "detail": [...]}).