DFS contest_users API
contest_users
dfs.contest_usersA contest entrant — one operator-side user who submitted at least one lineup. Identified by the operator's user id, not a statview account.
GET/api/v1/dfs/contest_usersList contest_users for DFS
Requires one of:
operator_id or operator — requests satisfying none of these return 400.Parameters
operator_idquerybigintoptionalFilter to all contest entrants for a single DFS operator: by numeric id (1 DraftKings, 2 FanDuel, 3 Yahoo).
operatorquerystringoptionalFilter to all contest entrants for a single DFS operator: draftkings, fanduel, yahoo (or numeric operator id).
namequerystringoptionalFilter by entrant username (exact match).
limitqueryintegeroptionaldefault 100Page size. Defaults to 100; max 5000.
from_idquerybigintoptionalReturn rows with id strictly greater than this value; page using the previous response's `next_from_id`. Omit on the first page.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
-H 'Authorization: Bearer YOUR_API_KEY' \
'https://api.stat-api.com/api/v1/dfs/contest_users?operator_id=1'Responses
200contest_users rows matching the declared filter set, wrapped in { contest_users, limit, next_from_id }. next_from_id is the last row's id on a full page — pass it back via ?from_id= to walk the full result; null marks the terminal page.application/jsonshow example ▸
400No declared filter set was satisfied — response body matches MissingRequiredFiltersError; pick one combo from the accepted-sets hint and resend.
application/jsonResponse Schema(4 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
external_id | string | — | Operator user ID e.g. younghoe |
operator_id | bigint | — e.g. 1 | |
name | stringnullable | — | — e.g. younghoe |
GET/api/v1/dfs/contest_users/{id}Get a single contest_user by id
Parameters
idpathbigintrequiredPrimary key (id) of the contest_user row.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
-H 'Authorization: Bearer YOUR_API_KEY' \
'https://api.stat-api.com/api/v1/dfs/contest_users/24761'Responses
200Single contest_user row.application/jsonshow example ▸
404Row not found.
Response Schema(4 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
external_id | string | — | Operator user ID e.g. younghoe |
operator_id | bigint | — e.g. 1 | |
name | stringnullable | — | — e.g. younghoe |