Filtering & Query Parameters

Most Odditt B2B API endpoints accept filtering parameters to narrow down results. This guide covers the common parameters available across the API.

Pagination

Applies to: all list endpoints (/v1/references/*, /v1/trends/*, /v1/games/*, /v1/betting/*, /v1/account/*)

All list endpoints support pagination:

ParameterTypeDefaultMaxDescription
pageinteger1-Page number (minimum: 1)
page_sizeinteger20100Results per page

See Pagination for details on the response format.

Entity Filters

Applies to: /v1/trends/*, /v1/games/*, /v1/betting/*

Filter by sport, league, team, or player. You can use either numeric IDs or external keys:

ParameterAlternativeDescription
sport_idsport_keyFilter by sport
league_idleague_keyFilter by league
team_idteam_keyFilter by team
player_idplayer_keyFilter by player
event_id-Filter by specific event
entity_type-"player" or "team"

When both an ID and a key are provided for the same entity, the ID takes precedence.

Flow Type Filters

Applies to: /v1/trends/mixed-flows, /v1/trends/flows

Control which types of flows are returned:

ParameterValuesDescription
flow_typefact, fun, plainType of flow. plain only returns parlays
bet_typesingles, parlay, same_game_parlayFilter by bet structure
fact_flow_typebase, expandedSub-type for fact flows (default: base)
{
  "sport_id": 1,
  "league_id": 7,
  "flow_type": "fact",
  "bet_type": "singles",
  "page": 1,
  "page_size": 10
}

Hit Rate & Probability Thresholds

Applies to: /v1/trends/mixed-flows, /v1/trends/flows

Filter flows by statistical thresholds:

ParameterTypeRangeDescription
min_hit_rate_thresholdinteger0–100Minimum hit rate (percentage)
max_hit_rate_thresholdinteger0–100Maximum hit rate (percentage)
min_implied_probability_thresholdnumber0.0–1.0Minimum implied probability
max_implied_probability_thresholdnumber0.0–1.0Maximum implied probability
full_hit_rateboolean-Include full hit rate data in response
{
  "sport_id": 1,
  "min_hit_rate_threshold": 55,
  "max_hit_rate_threshold": 85,
  "page": 1,
  "page_size": 10
}

Split & Likelihood Filters

Applies to: /v1/trends/mixed-flows, /v1/trends/flows

ParameterValuesDescription
split_typeovers, undersFilter by over/under
likelihood_typelikely, possible, longshotFilter by likelihood category

Operator Filters

Applies to: /v1/trends/*, /v1/betting/*

Filter by sportsbook operators using IDs or external keys:

ParameterTypeDescription
operator_idsarray of integersInclude only these operators
operator_keysarray of stringsInclude only these operators (e.g. ["draftkings", "fanduel"])
excluded_operator_idsarray of integersExclude these operators
excluded_operator_keysarray of stringsExclude these operators

When both operator_ids and operator_keys are provided, the resolved IDs are merged together.

Betting Market Filters

Applies to: /v1/trends/*, /v1/betting/*

ParameterTypeDescription
betting_market_idsarray of integersFilter by betting market IDs
betting_market_category_idintegerFilter by betting market category
betting_market_entity_typestring"player", "team", or "event"

Date Filters

Applies to: /v1/trends/*, /v1/games/*

ParameterTypeDescription
event_start_date_fromstring (ISO date)Events starting on or after this date
event_start_date_tostring (ISO date)Events starting on or before this date
{
  "sport_id": 1,
  "event_start_date_from": "2026-03-26",
  "event_start_date_to": "2026-03-28",
  "page": 1,
  "page_size": 10
}

Boolean Flags

Applies to: /v1/trends/* (some also /v1/betting/*)

ParameterDefaultDescription
include_deeplinksfalseReturn operator-specific deeplink URLs. Requires exactly one operator ID.
include_alt_linestrueInclude alternative lines
include_only_womens_sportsfalseOnly return women's sports flows
include_only_basic_trendsfalseOmit fact flows with conditions
starting_soonfalseOnly return flows for events starting soon
full_hit_ratefalseInclude full hit rate breakdown

Search

Applies to: /v1/references/*

Reference endpoints support text search:

ParameterTypeDescription
searchstringSearch by name (partial match)
curl "https://api.odditt.com/v1/references/teams?search=patriots&page=1&page_size=10" \
  -H "X-API-Key: YOUR_API_KEY"

Country & Region Filters

Applies to: /v1/betting/*

ParameterDefaultDescription
country_code"US"ISO 3166-1 alpha-2 country code
country_iso_code-ISO country code (affiliate offers)
subnational_region_code-ISO 3166-2 state/province code