Spiral gives your agent every tool with one account. Browse the tools →

AlexandriaSportsAvailable now

Yahoo Fantasy Basketball (public) · List players

basketball-fantasysports-yahoo-com/fantasy-basketball-players/list_players

Get sports scores and statistics with Yahoo Fantasy Basketball (public) · List players from Alexandria through one Spiral API key. Browse or rank players by 9-category stats in a public league. Pass stat_period explicitly (S_AS_2025 = 2025-26 per-game averages, S_S_2026 = 2026-27 season totals, S_AL14 = last 14 days averages, S_PS7 = next 7 days projected, S_PSR = rest of season projected). It runs in the background and returns structured JSON. Pay as you go, with no subscription.

Pricing

$0.00873 per call.

Limits

Runs
In the background
Returns
json
Longest queue wait
1 hour
Run deadline
5 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
sdirone of
0, 1
1

Sort direction as the site encodes it (sdir).

sorttextOR

Sort column as the site encodes it: OR (pre-season rank), AR (current rank), R_PO (% rostered), MPG, NAME, 0 (games played) or a stat id (5 FG%, 8 FT%, 10 3PTM, 12 PTS, 15 REB, 16 AST, 17 ST, 18 BLK, 19 TO; 4/3 FGM/FGA, 7/6 FTM/FTA). Must be one of the page's column sort keys (see columns[].sort_key). Pattern: ^([A-Z][A-Z0-9_]{0,11}|[0-9]{1,7})$.

offsetnumber
0 to …
0

Row offset; the page serves 25 rows. Use next_offset from the previous page.

statusone of
ALL, A, FA, W, T, K, STATE_IL
ALL

Availability in this league: ALL, A (available), FA (free agents), W (waivers), T (taken), K (keepers), STATE_IL (available, IL eligible). Watch list (WL) needs a login and is not supported.

nba_teamtext—

NBA team filter code from the page's team dropdown (ET_2 = Boston, ET_13 = LA Lakers). Pattern: ^ET_[0-9]{1,2}$.

positionone of
P, PG, SG, G, SF, PF, F, C, Util
P

Position filter: P (all players), PG, SG, G, SF, PF, F, C, Util.

league_idtext—

Public league id, the number after /nba/ in a league URL (e.g. 10000). Pattern: ^[0-9]{1,9}$.

league_urltext—

A league page URL; the league id is taken from its /nba/{league_id} segment. Alternative to league_id. Pattern: ^https?://(www\.)?basketball\.fantasysports\.yahoo\.com/nba/[0-9]{1,9}(/.*)?$.

stat_periodtext—

Stat window code from the page's dropdown. Projected: S_PS7, S_PS14, S_PSR (remaining games). Totals: S_L (today), S_L7, S_L14, S_L30, S_S_{season}. Averages: S_AL7, S_AL14, S_AL30, S_AS_{season}. Standard deviation: S_SDL7, S_SDL14, S_SDL30, S_SD_{season}. {season} is the starting year (2025 = 2025-26). Omitted: the page's default (reported in stat_period). Pattern: ^S_(PS7|PS14|PSR|L|L7|L14|L30|S_[0-9]{4}|AL7|AL14|AL30|AS_[0-9]{4}|SDL7|SDL14|SDL30|SD_[0-9]{4})$.

fantasy_team_idtext—

Fantasy team id in this league (fteam filter). Pattern: ^[0-9]{1,3}$.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "basketball-fantasysports-yahoo-com/fantasy-basketball-players/list_players",
    "input": {
      "league_id": "<league_id>"
    }
  }'

Frequently asked questions

How much does Yahoo Fantasy Basketball (public) · List players cost?

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use Yahoo Fantasy Basketball (public) · List players through an API?

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "basketball-fantasysports-yahoo-com/fantasy-basketball-players/list_players"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with Alexandria to use Yahoo Fantasy Basketball (public) · List players?

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

Can my AI agent use Yahoo Fantasy Basketball (public) · List players?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.