Yahoo Sports — Yahoo Sports Shangrila (graphite-secure.sports.yahoo.com) — Team
yahoo_team_injuries
Yahoo shangrila persisted query teamInjuries -> one row per teams entry
Endpoint URL: GET https://graphite-secure.sports.yahoo.com/v1/query/shangrila/teamInjuries
Valid URL: https://graphite-secure.sports.yahoo.com/v1/query/shangrila/teamInjuries
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
teamId | team_id | Y | teamId query parameter. |
Returns
return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.
| col_name | type | description |
|---|---|---|
team_id | String | |
nickname | String | |
full_name | String | |
location | String | |
display_name | String | |
primary_color | String | |
abbreviation | String | |
alias_path | String | Site-relative path portion of the entity's Yahoo alias (e.g., "/ncaaf/teams/tcu/"). |
alias_url | String | Absolute sports.yahoo.com URL of the entity's page (e.g., "https://sports.yahoo.com/ncaaf/players/464024/"). |
team_logo_white_url | String | Absolute URL of the team's white knockout logo, the variant used on dark backgrounds. |
team_logo_url | String | Absolute URL of the team's standard logo image on Yahoo's image CDN. |
players | String |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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. |
Example
yahoo_team_injuries()
yahoo_team_playoff_series
Yahoo shangrila persisted query teamPlayoffSeries -> one row per teams.playoffSeries entry
Endpoint URL: GET https://graphite-secure.sports.yahoo.com/v1/query/shangrila/teamPlayoffSeries
Valid URL: https://graphite-secure.sports.yahoo.com/v1/query/shangrila/teamPlayoffSeries
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
teamId | team_id | Y | teamId query parameter. | ||
season | season | Y | Season year (e.g. 2024). |
Returns
return_parsed=True (default) — a tidy polars.DataFrame (parser: parse_yahoo_shangrila); pass return_as_pandas=True for a pandas.DataFrame.
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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. |
Example
yahoo_team_playoff_series()
yahoo_team_roster
Yahoo shangrila persisted query teamRoster -> one row per teams entry
Endpoint URL: GET https://graphite-secure.sports.yahoo.com/v1/query/shangrila/teamRoster
Valid URL: https://graphite-secure.sports.yahoo.com/v1/query/shangrila/teamRoster
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
teamId | team_id | Y | teamId query parameter. | ||
playerImageHeight | player_image_height | Y | playerImageHeight query parameter. | ||
playerImageWidth | player_image_width | Y | playerImageWidth query parameter. |
Returns
return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.
| col_name | type | description |
|---|---|---|
league_current_season | String | Yahoo league-season identifier for the league's season currently in progress. |
roster | String | JSON-encoded roster of the players on the team for the requested season. |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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. |
Example
yahoo_team_roster()
yahoo_team_schedule_by_season
Yahoo shangrila persisted query teamScheduleBySeason -> one row per teams entry
Endpoint URL: GET https://graphite-secure.sports.yahoo.com/v1/query/shangrila/teamScheduleBySeason
Valid URL: https://graphite-secure.sports.yahoo.com/v1/query/shangrila/teamScheduleBySeason
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
season | season | Y | Season year (e.g. 2024). | ||
teamId | team_id | Y | teamId query parameter. |
Returns
return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.
| col_name | type | description |
|---|---|---|
team_id | String | |
display_name | String | |
primary_color | String | |
secondary_color | String | |
gametime_ticket_url | String | Gametime affiliate ticket-purchase URL for the event or team. |
bye_weeks | String | JSON-encoded list of the week numbers in which the team has no scheduled game. |
games | String | |
leagues | String | JSON-encoded list of the league nodes the team's schedule spans. |
full_name | String | |
abbreviation | String | |
nickname | String | |
team_logo_white_url | String | Absolute URL of the team's white knockout logo, the variant used on dark backgrounds. |
team_logo_url | String | Absolute URL of the team's standard logo image on Yahoo's image CDN. |
team_standings_team_record | String | Formatted overall record for the team (e.g., "8-2"). |
alias_url | String | Absolute sports.yahoo.com URL of the entity's page (e.g., "https://sports.yahoo.com/ncaaf/players/464024/"). |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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. |
Example
yahoo_team_schedule_by_season()
yahoo_team_search
Yahoo shangrila persisted query teamSearch -> one row per teams entry
Endpoint URL: GET https://graphite-secure.sports.yahoo.com/v1/query/shangrila/teamSearch
Valid URL: https://graphite-secure.sports.yahoo.com/v1/query/shangrila/teamSearch
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
name | name | Y | name query parameter. | ||
imageHeight | image_height | Y | imageHeight query parameter. | ||
imageWidth | image_width | Y | imageWidth query parameter. |
Returns
return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.
| col_name | type | description |
|---|---|---|
team_id | String | |
display_name | String | |
full_name | String | |
alias_url | String | Absolute sports.yahoo.com URL of the entity's page (e.g., "https://sports.yahoo.com/ncaaf/players/464024/"). |
alias_path | String | Site-relative path portion of the entity's Yahoo alias (e.g., "/ncaaf/teams/tcu/"). |
primary_color | String | |
secondary_color | String | |
abbreviation | String | |
league_short_name | String | |
league_display_short | String | Short league label used in navigation and compact UI (e.g., "NCAA FB"). |
league_name | String | |
team_logo_url | String | Absolute URL of the team's standard logo image on Yahoo's image CDN. |
team_logo_white_url | String | Absolute URL of the team's white knockout logo, the variant used on dark backgrounds. |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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. |
Example
yahoo_team_search()
yahoo_team_stats_leaders_v2
Yahoo shangrila persisted query teamStatsLeadersV2 -> tables: leagues, teams
Endpoint URL: GET https://graphite-secure.sports.yahoo.com/v1/query/shangrila/teamStatsLeadersV2
Valid URL: https://graphite-secure.sports.yahoo.com/v1/query/shangrila/teamStatsLeadersV2
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
league | league | Y | league query parameter. | ||
teamId | team_id | Y | teamId query parameter. | ||
count | count | Y | count query parameter. | ||
season | season | Y | Season year (e.g. 2024). | ||
baseballCutType | baseball_cut_type | Y | baseballCutType query parameter. | ||
qualified | qualified | Y | qualified query parameter. | ||
includeTeamStats | include_team_stats | Y | includeTeamStats query parameter. | ||
includePlayerStats | include_player_stats | Y | includePlayerStats query parameter. | ||
isBaseball | is_baseball | Y | isBaseball query parameter. |
Returns
return_parsed=True (default) — A dict of polars/pandas DataFrames keyed by the payload's data collections (one table per documented key below); pass return_as_pandas=True for a dict of pandas.DataFrames (same keys).
teams
| col_name | type | description |
|---|---|---|
display_name | String | |
full_name | String | |
nickname | String | |
team_football | String | JSON-encoded team-level football leader board for the team. |
individual_football | String | JSON-encoded player-level football leader board for the team. |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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. |
Example
yahoo_team_stats_leaders_v2()
yahoo_team_transactions
Yahoo shangrila persisted query teamTransactions -> one row per teams entry
Endpoint URL: GET https://graphite-secure.sports.yahoo.com/v1/query/shangrila/teamTransactions
Valid URL: https://graphite-secure.sports.yahoo.com/v1/query/shangrila/teamTransactions
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
teamId | team_id | Y | teamId query parameter. |
Returns
return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.
| col_name | type | description |
|---|---|---|
team_id | String | |
nickname | String | |
full_name | String | |
location | String | |
display_name | String | |
primary_color | String | |
abbreviation | String | |
alias_path | String | Site-relative path portion of the entity's Yahoo alias (e.g., "/ncaaf/teams/tcu/"). |
alias_url | String | Absolute sports.yahoo.com URL of the entity's page (e.g., "https://sports.yahoo.com/ncaaf/players/464024/"). |
alias_domain | String | Host the entity's Yahoo alias resolves against (e.g., "sports.yahoo.com"). |
team_logo_white_url | String | Absolute URL of the team's white knockout logo, the variant used on dark backgrounds. |
team_logo_url | String | Absolute URL of the team's standard logo image on Yahoo's image CDN. |
transactions | String | JSON-encoded list of the team's roster transactions over the requested window. |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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. |
Example
yahoo_team_transactions()
yahoo_teams_basic
Yahoo shangrila persisted query teamsBasic -> one row per teams entry
Endpoint URL: GET https://graphite-secure.sports.yahoo.com/v1/query/shangrila/teamsBasic
Valid URL: https://graphite-secure.sports.yahoo.com/v1/query/shangrila/teamsBasic
| API Parameter | Python | Pattern | Required | Nullable | Description |
|---|---|---|---|---|---|
teamIds | team_ids | Y | teamIds query parameter. | ||
imageHeight | image_height | Y | imageHeight query parameter. | ||
imageWidth | image_width | Y | imageWidth query parameter. |
Returns
return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.
| col_name | type | description |
|---|---|---|
team_id | String | |
team_logo_url | String | Absolute URL of the team's standard logo image on Yahoo's image CDN. |
team_logo_white_url | String | Absolute URL of the team's white knockout logo, the variant used on dark backgrounds. |
display_name | String | |
full_name | String | |
nickname | String | |
alias_url | String | Absolute sports.yahoo.com URL of the entity's page (e.g., "https://sports.yahoo.com/ncaaf/players/464024/"). |
alias_path | String | Site-relative path portion of the entity's Yahoo alias (e.g., "/ncaaf/teams/tcu/"). |
primary_color | String | |
secondary_color | String | |
abbreviation | String | |
league_display_short | String | Short league label used in navigation and compact UI (e.g., "NCAA FB"). |
league_name | String | |
league_short_name | String |
return_parsed=False — the raw JSON Dict payload, unparsed.
Raises
| Exception | Description |
|---|---|
NoDataError | The host answered 404 -- the requested resource does not exist. |
ValueError | The host answered 400 / 422 -- the request is wrong; retrying cannot help. |
AssetFetchError | The 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. |
Example
yahoo_teams_basic()