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

All list endpoints support pagination:

ParameterTypeDefaultMaxDescription
pageinteger1-Page number (minimum: 1)
page_sizeinteger20endpoint-specificResults per page. Flow endpoints (/v1/trends/mixed-flows, /v1/trends/flows) cap at 25; odds endpoints cap at 100. See the API Reference for each endpoint's limit.

See Pagination for details on the response format.

Entity Filters

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

Filter by sport, league, team, or player using numeric IDs:

ParameterDescription
sport_idsFilter by one or more sports (sport_key slug accepted as an alternative)
league_idsFilter by one or more leagues
team_idsFilter by one or more teams
player_idsFilter by one or more players
event_idsFilter by one or more specific events

The array fields accept one or more IDs; an empty array means no filter. Resolve IDs once via the reference endpoints and filter on IDs from there. When both sport_id and sport_key are provided, 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_ids": [1],
  "league_ids": [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-Only return fact flows whose trends have hit 100% of the time
{
  "sport_ids": [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/odds/*

Filter by sportsbook operators using numeric IDs or slug-style external keys:

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

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

Betting Market Filters

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

ParameterTypeDescription
betting_market_idsarray of integersFilter by betting market IDs
betting_market_category_idsarray of integersFilter by one or more betting market categories
betting_market_position_idsarray of integersFilter by one or more betting market positions
betting_market_entity_typestring"player", "team", or "event"

Tag Filters

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

Segment flows by content or metadata tags. Resolve tag type IDs from the tag registry first — see the Segmentation & Tags guide.

ParameterTypeDescription
content_tag_type_idsarray of integersFilter by what the flow is about (narrative angle). OR mode by default.
content_tag_require_allbooleanWhen true, a flow must match all content tags (AND).
metadata_tag_type_idsarray of integersFilter by structural attributes (league, position, etc.). OR mode by default.
metadata_tag_require_allbooleanWhen true, a flow must match all metadata tags (AND).
include_star_sign_contentbooleanOpt in to star-sign / horoscope-themed content (fact/plain parlay only).
{
  "flow_type": "fact",
  "bet_type": "parlay",
  "content_tag_type_ids": [15, 42],
  "content_tag_require_all": false,
  "metadata_tag_type_ids": [201, 205],
  "metadata_tag_require_all": true,
  "page": 1,
  "page_size": 20
}

Date Filters

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

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_ids": [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_basic_trendsfalseOmit fact flows with conditions
starting_soonfalseOnly return flows for events starting within the next hour. For a custom window, use event_start_date_from / event_start_date_to instead
full_hit_ratefalseOnly return fact flows whose trends have hit 100% of the time (a perfect historical hit rate)
use_cartoon_imagesfalseReplace logo fields with cartoon-jersey image URLs

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/*

DefaultParameterDescription
"US"country_codeISO 3166-1 alpha-2 country code
-country_iso_codeISO country code (affiliate offers)
-subnational_region_codeISO 3166-2 state/province code

Did this page help you?