Skip to main content

Filtering & Query Parameters

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

Pagination

All list endpoints support pagination:

ParameterTypeDefaultMaxDescription
pageinteger1Page number (minimum: 1)
page_sizeinteger20100Results per page

See Pagination for details on the response format.

Entity Filters

Filter trends and flows 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_idFilter 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

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, expanded, multiSub-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

Filter flows by statistical thresholds:

ParameterTypeRangeDescription
min_hit_rate_thresholdnumber0.0–1.0Minimum hit rate
max_hit_rate_thresholdnumber0.0–1.0Maximum hit rate
min_implied_probability_thresholdnumber0.0–1.0Minimum implied probability
max_implied_probability_thresholdnumber0.0–1.0Maximum implied probability
full_hit_ratebooleanInclude full hit rate data in response
{
"sport_id": 1,
"min_hit_rate_threshold": 0.55,
"max_hit_rate_threshold": 0.85,
"page": 1,
"page_size": 10
}

Split & Likelihood Filters

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

Operator Filters

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

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

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

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

Reference endpoints (/v1/references/*) 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

Used primarily in betting and deals endpoints:

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