Skip to main content

Israeli Premier League — Segev Stats live-stats API (stats.segevstats.com, Israel play-by-play)

sportsdataverse.basketball.ibba — 6 endpoints.

Note: Access: Segev Stats is the live-stats vendor behind basket.co.il's game pages; its JSON-RPC API is keyless, unofficial and not documented for outside use. The wrappers space requests at least one second apart and read only finished games; payloads are not redistributed as release assets. The host serves JSON as text/html.

Note: Games and ids. game_id is one flat Segev id space across seasons AND competitions: men's Winner League, Winner Cup, women's, Leumit, youth, school and pre-season games share it, so read competition from ibba_segev_game_info (team names do not separate men from women reliably). There is no game list: league game ids come from ibba_games.segev_game_id (2025-26 on), the women's league and Leumit from a scan or Genius Sports org IBBA. Segev team and player ids are stable across seasons (Jaylen Hoard = player 1000 in games 50 and 419), unlike the IBBA season registrations, and are not IBBA ids.

Note: Play-by-play: actions name the player by Segev id and by JERSEY number, score reads away-home, and shot x / y are one half-court frame (x 0-1470 across, basket near 735; y out from the baseline, rim near 112-140); which sideline is x = 0 and the metric scale are unverified. Segev renamed its team game stats between 2025-26 and 2026-27; the parsers unify them. Unfinished games and ids of another game are refused.

ibba_segev_game_info​

Game header: tip-off, competition, both teams and the game state (scores are in the box score).

Endpoint URL: GET https://stats.segevstats.com/realtimestat_heb/api/

Valid URL: https://stats.segevstats.com/realtimestat_heb/api/?method=getGameInfo&game_id=50

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYRequired. Segev game id (e.g. 50 = Hapoel Be'er Sheva vs Maccabi Tel Aviv, 2025-26 round 1): segev_game_id in ibba_games.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
game_idInt64Segev game id (key space: one flat sequence across seasons and competitions); equals the IBBA ibba_games segev_game_id from 2025-26. Not an IBBA game id.
start_timeStringScheduled tip-off in Israel local time as a naive datetime (the feed has no offset; it can differ from the IBBA tip_off by minutes).
competitionStringCompetition name ('Winner League', 'Winner Cup', 'Women', 'Leumit', 'Noar', 'School', 'Preparation Games'): the reliable men's / women's discriminator.
home_team_idInt64Home Segev team id (key space: Segev teams, stable across seasons and competitions; Maccabi Tel Aviv = 2). Not an IBBA team-season id.
home_teamStringHome team name in English, upper case; some women's teams end in ' (W)', not all.
home_team_localStringHome team name in Hebrew (Latin sponsor words kept).
home_short_nameStringHome team short name in English, upper case.
away_team_idInt64Away Segev team id (key space: Segev teams, stable across seasons and competitions).
away_teamStringAway team name in English, upper case.
away_team_localStringAway team name in Hebrew (Latin sponsor words kept).
away_short_nameStringAway team short name in English, upper case.
periodsInt64Regulation periods in the game (4).
finishedBooleanTrue once the game is final (the wrappers read finished games only).
current_periodInt64Current period, the last one played for a finished game (5+ means overtime).
clockStringGame clock remaining as 'mm:ss' ('00:00' for a finished game).

return_parsed=False — the raw JSON-RPC envelope (dict): result with the method's block plus _request (the method and game id sent).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Segev has nothing for the request (HTTP 404, 'game not found', a finished game with no actions).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a non-200, an error or changed envelope, a body for another game, a game that is not final).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.

Example​

ibba_segev_game_info(game_id=50)

ibba_segev_rosters​

Both teams' game rosters with Segev player ids and names in English and Hebrew.

Endpoint URL: GET https://stats.segevstats.com/realtimestat_heb/api/

Valid URL: https://stats.segevstats.com/realtimestat_heb/api/?method=getGameInfo&game_id=50

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYRequired. Segev game id (e.g. 50 = Hapoel Be'er Sheva vs Maccabi Tel Aviv, 2025-26 round 1): segev_game_id in ibba_games.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
game_idInt64Segev game id (key space: one flat sequence across seasons and competitions); equals the IBBA ibba_games segev_game_id from 2025-26. Not an IBBA game id.
team_sideStringSide of the game: home or away (the feed's homeTeam / awayTeam; an action's parameters.team 1 = home, 2 = away).
team_idInt64Segev team id of the roster's side (stable across seasons).
player_idInt64Segev player id (key space: Segev players, stable across seasons: Jaylen Hoard = 1000 in games 50 and 419); null on team lines and on actions without a player. Not an IBBA player-season id.
jersey_numberInt64Jersey number as an integer.
first_nameStringFirst name in English, upper case.
last_nameStringLast name in English, upper case.
first_name_localStringFirst name in Hebrew.
last_name_localStringLast name in Hebrew.
in_rosterInt64Roster flag, 0 or 2 in the samples; meaning unverified.
api_idInt64External player id as an integer: null or equal to the Segev player_id (both occur within one game); its source is unverified.

return_parsed=False — the raw JSON-RPC envelope (dict): result with the method's block plus _request (the method and game id sent).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Segev has nothing for the request (HTTP 404, 'game not found', a finished game with no actions).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a non-200, an error or changed envelope, a body for another game, a game that is not final).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.

Example​

ibba_segev_rosters(game_id=50)

ibba_segev_player_box​

Per-player box score of a finished game, plus a team-credited line per side.

Endpoint URL: GET https://stats.segevstats.com/realtimestat_heb/api/

Valid URL: https://stats.segevstats.com/realtimestat_heb/api/?method=getBoxScore&game_id=50

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYRequired. Segev game id (e.g. 50 = Hapoel Be'er Sheva vs Maccabi Tel Aviv, 2025-26 round 1): segev_game_id in ibba_games.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
game_idInt64Segev game id (key space: one flat sequence across seasons and competitions); equals the IBBA ibba_games segev_game_id from 2025-26. Not an IBBA game id.
team_sideStringSide of the game: home or away (the feed's homeTeam / awayTeam; an action's parameters.team 1 = home, 2 = away).
team_idInt64Segev team id of the side (key space: Segev teams, stable across seasons). Not an IBBA team-season id; null on game-level actions.
row_typeStringplayer (one player's line) or team (actions credited to the team and no player, such as team rebounds and turnovers).
player_idInt64Segev player id (key space: Segev players, stable across seasons: Jaylen Hoard = 1000 in games 50 and 419); null on team lines and on actions without a player. Not an IBBA player-season id.
jersey_numberInt64Jersey number as an integer.
starterBooleanTrue when the player was in the starting five.
on_courtBooleanTrue when the player was on court at the final buzzer or the feed's last state.
minutesStringTime played as 'mm:ss'.
seconds_playedInt64Time played in seconds, derived from minutes.
plus_minusInt64Plus-minus while the player was on court, signed.
fg2mInt64Two-point field goals made.
fg2_missedInt64Two-point field goals MISSED (not attempted; attempts = made + missed, verified against the IBBA box score).
fg3mInt64Three-point field goals made.
fg3_missedInt64Three-point field goals MISSED (not attempted).
ftmInt64Free throws made.
ft_missedInt64Free throws MISSED (not attempted).
drebInt64Defensive rebounds.
orebInt64Offensive rebounds.
foulsInt64Fouls committed (the feed's f; equals the IBBA fouls).
fouls_drawnInt64Fouls drawn (the feed's f_drawn; equals the IBBA fouls_drawn).
stealsInt64Steals made by the player or team.
turnoversInt64Turnovers committed by the player or team.
assistsInt64Assists credited to the player or team.
blocksInt64Shots the player or team blocked.
blocks_againstInt64Own shots that were blocked.
fast_break_ptsInt64Fast-break points; for a team total it equals the P of the feed's 'P of N' fast-break stat.
second_chance_ptsInt64Second-chance points (scored after an offensive rebound).
ptsInt64Points scored by the player or side (free throws included).
valInt64Efficiency rating (the feed's rate; equals the IBBA VAL).
deflectionsInt64Deflections (count of deflection actions).
recoveriesInt64The feed's rec count; unverified, probably loose-ball recoveries.
dunksInt64Dunks made by the player or side.
offensive_fouls_drawnInt64Offensive fouls drawn (charges taken); inferred.
and_onesInt64And-one plays (a made basket plus a foul); inferred.
vpsFloat64The feed's vps ratio with two decimals; its definition is unverified (it matches neither points per shot nor rate per minute).
fg2aInt64Two-point field goals attempted, derived as made + missed.
fg3aInt64Three-point field goals attempted, derived as made + missed.
ftaInt64Free throws attempted, derived as made + missed.

return_parsed=False — the raw JSON-RPC envelope (dict): result with the method's block plus _request (the method and game id sent).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Segev has nothing for the request (HTTP 404, 'game not found', a finished game with no actions).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a non-200, an error or changed envelope, a body for another game, a game that is not final).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.

Example​

ibba_segev_player_box(game_id=50)

ibba_segev_team_box​

Team totals of both sides: final score, timeouts, lead stats, shooting, rebounds and team game stats.

Endpoint URL: GET https://stats.segevstats.com/realtimestat_heb/api/

Valid URL: https://stats.segevstats.com/realtimestat_heb/api/?method=getBoxScore&game_id=50

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYRequired. Segev game id (e.g. 50 = Hapoel Be'er Sheva vs Maccabi Tel Aviv, 2025-26 round 1): segev_game_id in ibba_games.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
game_idInt64Segev game id (key space: one flat sequence across seasons and competitions); equals the IBBA ibba_games segev_game_id from 2025-26. Not an IBBA game id.
team_sideStringSide of the game: home or away (the feed's homeTeam / awayTeam; an action's parameters.team 1 = home, 2 = away).
team_idInt64Segev team id of the side (key space: Segev teams, stable across seasons). Not an IBBA team-season id; null on game-level actions.
scoreInt64Final score of the side (homeScore / awayScore).
timeoutsInt64Timeouts the side took (the feed's homeTimeOut / awayTimeOut).
time_leadingStringTime the side led as 'mm:ss'.
biggest_leadInt64The side's biggest lead in points.
times_tiedInt64Times the score was tied (same value for both sides).
lead_changesInt64Lead changes (same value for both sides).
fg2mInt64Two-point field goals made.
fg2_missedInt64Two-point field goals MISSED (not attempted; attempts = made + missed, verified against the IBBA box score).
fg3mInt64Three-point field goals made.
fg3_missedInt64Three-point field goals MISSED (not attempted).
ftmInt64Free throws made.
ft_missedInt64Free throws MISSED (not attempted).
drebInt64Defensive rebounds.
orebInt64Offensive rebounds.
foulsInt64Fouls committed (the feed's f; equals the IBBA fouls).
fouls_drawnInt64Fouls drawn (the feed's f_drawn; equals the IBBA fouls_drawn).
stealsInt64Steals made by the player or team.
turnoversInt64Turnovers committed by the player or team.
assistsInt64Assists credited to the player or team.
blocksInt64Shots the player or team blocked.
blocks_againstInt64Own shots that were blocked.
fast_break_ptsInt64Fast-break points; for a team total it equals the P of the feed's 'P of N' fast-break stat.
second_chance_ptsInt64Second-chance points (scored after an offensive rebound).
ptsInt64Points scored by the player or side (free throws included).
valInt64Efficiency rating (the feed's rate; equals the IBBA VAL).
deflectionsInt64Deflections (count of deflection actions).
recoveriesInt64The feed's rec count; unverified, probably loose-ball recoveries.
dunksInt64Dunks made by the player or side.
offensive_fouls_drawnInt64Offensive fouls drawn (charges taken); inferred.
and_onesInt64And-one plays (a made basket plus a foul); inferred.
vpsFloat64The feed's vps ratio with two decimals; its definition is unverified (it matches neither points per shot nor rate per minute).
fg2aInt64Two-point field goals attempted, derived as made + missed.
fg3aInt64Three-point field goals attempted, derived as made + missed.
ftaInt64Free throws attempted, derived as made + missed.
pts_from_turnoversInt64Points scored off opponent turnovers (the feed renamed the key in 2026-27).
pts_in_paintInt64Points scored in the paint (the feed renamed the key in 2026-27).
starting_pointsInt64Points scored by the starting five.
bench_pointsInt64Points scored by the bench.
fast_break_possessionsInt64The N of the feed's 'P of N' fast-break stat (fast-break possessions or attempts); unverified. Null before 2026-27 where the key differs.
defensive_stopsInt64Defensive stops; the feed adds it in 2026-27, null before.
biggest_scoring_runStringBiggest scoring run as the feed prints it ('23-0 (36-6)'); 2026-27 on, null before.

return_parsed=False — the raw JSON-RPC envelope (dict): result with the method's block plus _request (the method and game id sent).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Segev has nothing for the request (HTTP 404, 'game not found', a finished game with no actions).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a non-200, an error or changed envelope, a body for another game, a game that is not final).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.

Example​

ibba_segev_team_box(game_id=50)

ibba_segev_period_scores​

Points and team fouls in each period of a finished game.

Endpoint URL: GET https://stats.segevstats.com/realtimestat_heb/api/

Valid URL: https://stats.segevstats.com/realtimestat_heb/api/?method=getBoxScore&game_id=50

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYRequired. Segev game id (e.g. 50 = Hapoel Be'er Sheva vs Maccabi Tel Aviv, 2025-26 round 1): segev_game_id in ibba_games.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
game_idInt64Segev game id (key space: one flat sequence across seasons and competitions); equals the IBBA ibba_games segev_game_id from 2025-26. Not an IBBA game id.
periodInt64Period number (1-4 regulation, 5+ overtime).
home_pointsInt64Points the home side scored IN this period (not cumulative).
away_pointsInt64Points the away side scored IN this period (not cumulative).
home_foulsInt64Team fouls the home side committed in this period.
away_foulsInt64Team fouls the away side committed in this period.

return_parsed=False — the raw JSON-RPC envelope (dict): result with the method's block plus _request (the method and game id sent).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Segev has nothing for the request (HTTP 404, 'game not found', a finished game with no actions).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a non-200, an error or changed envelope, a body for another game, a game that is not final).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.

Example​

ibba_segev_period_scores(game_id=50)

ibba_segev_pbp​

Play-by-play of a finished game: every action with shot coordinates, running scores and jersey numbers.

Endpoint URL: GET https://stats.segevstats.com/realtimestat_heb/api/

Valid URL: https://stats.segevstats.com/realtimestat_heb/api/?method=getActions&game_id=50

API ParameterPythonPatternRequiredNullableDescription
game_idgame_idYRequired. Segev game id (e.g. 50 = Hapoel Be'er Sheva vs Maccabi Tel Aviv, 2025-26 round 1): segev_game_id in ibba_games.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
game_idInt64Segev game id (key space: one flat sequence across seasons and competitions); equals the IBBA ibba_games segev_game_id from 2025-26. Not an IBBA game id.
action_idInt64Action id (key space: Segev actions; unique and increasing within one game, 500001 ... for game 50).
parent_action_idInt64Id of the action this one follows from (rebound -> missed shot, steal -> turnover, assist or block -> shot); null when none.
periodInt64Period number (1-4 regulation, 5+ overtime).
clockStringGame clock remaining in the period as 'mm:ss', counting down from 10:00.
user_time_utcStringWall-clock time the scorer logged the action, 'HH:MM:SS', UTC (inferred: game 50 tipped at 18:40 Israel time and its first tick reads 15:42).
typeStringAction type: game, quarter, clock, substitution, shot, freeThrow, rebound, assist, steal, turnover, block, deflection, foul, foul-drawn or timeout.
subtypeStringSubtype by type: shot jump-shot / lay-up / dunk; rebound offensive / defensive; turnover bad-pass, ball-handling, travelling, ...; foul personal / technical / unsportsmanlike; start-of-game, end-of-quarter, ...
team_idInt64Segev team id of the acting side (stable across seasons); null on game-level actions.
player_idInt64Segev player id (key space: Segev players, stable across seasons: Jaylen Hoard = 1000 in games 50 and 419); null on team lines and on actions without a player. Not an IBBA player-season id.
team_sideStringSide of the game: home or away (the feed's homeTeam / awayTeam; an action's parameters.team 1 = home, 2 = away).
jerseyStringJersey number (a string, not an id) of the acting player; null when none (team rebound, timeout).
score_awayInt64Away running score after a scoring action (the feed's score reads away-home); null otherwise.
score_homeInt64Home running score after a scoring action; null otherwise.
player_pointsInt64The scorer's running points after a scoring action; null otherwise.
pointsInt64Shot value, 2 or 3; null on other actions.
madeStringShot or free-throw result: made, missed, or blocked (shots only).
xFloat64Shot x: across the half court, sideline to sideline, 0-1470, basket near 735; which sideline is 0 and the metric scale are unverified.
yFloat64Shot y: distance out from the baseline, rim near 112-140, deepest observed 1176; metric scale unverified.
fast_breakBooleanTrue when the shot or free throw came on a fast break.
second_chanceBooleanTrue when the attempt followed an offensive rebound.
points_from_turnoverBooleanTrue when the attempt came off an opponent turnover.
free_throw_numberInt64Which free throw of the set (1, 2, 3).
free_throws_awardedInt64Free throws in the set.
foul_kindStringFoul kind, shooting or offensive; absent on some fouls. 'shooting' also appears on technical and offensive-unsportsmanlike fouls, so it does not prove a shooting foul.
fouled_on_jerseyStringJersey number (string) of the fouled player.
foul_free_throwsInt64Free throws the foul awards (the feed sends a string when non-zero, 0 otherwise).
is_coach_foulBooleanTrue on a foul charged to the coach or bench (player_id null); null otherwise.
player_in_jerseyStringSubstitution: jersey of the player coming in; null on the row that records the player going out.
player_out_jerseyStringSubstitution: jersey of the player going out; null on the row that records the player coming in.

return_parsed=False — the raw JSON-RPC envelope (dict): result with the method's block plus _request (the method and game id sent).

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. Segev has nothing for the request (HTTP 404, 'game not found', a finished game with no actions).
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty. The fetch failed or the answer is not the one asked for (a non-200, an error or changed envelope, a body for another game, a game that is not final).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.

Example​

ibba_segev_pbp(game_id=50)