STAT-API

DFS contest_users API

contest_usersdfs.contest_users
A 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_users
Requires one of: operator_id or operator — requests satisfying none of these return 400.
Parameters
operator_idquerybigintoptional
Filter to all contest entrants for a single DFS operator: by numeric id (1 DraftKings, 2 FanDuel, 3 Yahoo).
operatorquerystringoptional
Filter to all contest entrants for a single DFS operator: draftkings, fanduel, yahoo (or numeric operator id).
namequerystringoptional
Filter by entrant username (exact match).
limitqueryintegeroptionaldefault 100
Page size. Defaults to 100; max 5000.
from_idquerybigintoptional
Return 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/json
Response Schema(4 fields)show schema ▸
FieldTypeReferencesDescription
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}
Parameters
idpathbigintrequired
Primary 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 ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
external_id
string—Operator user ID
e.g. younghoe
operator_id
bigint—
e.g. 1
name
stringnullable——
e.g. younghoe