Yahoo Fantasy Basketball (public) · Player rankings
basketball-fantasysports-yahoo-com/fantasy-basketball-players/player_rankingsGet sports scores and statistics with Yahoo Fantasy Basketball (public) · Player rankings from Alexandria through one Spiral API key. Compare players by Yahoo's pre-season and actual rank windows in a public league. Sort with OR (pre-season), AR_S, AR_L30, AR_L14, AR_L7 (total-stats ranks) or AR_AS, AR_AL30, AR_AL14, AR_AL7 (average-stats ranks); page with offset. 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
| Field | Kind | Default | Description |
|---|---|---|---|
sdir | one of 0, 1 | 1 | Sort direction as the site encodes it (sdir). |
sort | one of OR, AR_S, AR_L30, AR_L14, AR_L7, AR_AS, AR_AL30, AR_AL14, AR_AL7, NAME | AR_S | Rank column to sort by: OR pre-season; AR_S / AR_L30 / AR_L14 / AR_L7 actual rank on total stats (season / last 30 / 14 / 7 days); AR_AS / AR_AL30 / AR_AL14 / AR_AL7 the same windows on average stats. |
offset | number 0 to … | 0 | Row offset; the page serves 25 rows. Use next_offset from the previous page. |
status | one 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_team | text | — | NBA team filter code from the page's team dropdown (ET_2 = Boston, ET_13 = LA Lakers). Pattern: ^ET_[0-9]{1,2}$. |
position | one 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_id | text | — | Public league id, the number after /nba/ in a league URL (e.g. 10000). Pattern: ^[0-9]{1,9}$. |
league_url | text | — | 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}(/.*)?$. |
fantasy_team_id | text | — | 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/player_rankings",
"input": {
"league_id": "<league_id>"
}
}'Frequently asked questions
How much does Yahoo Fantasy Basketball (public) · Player rankings 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) · Player rankings through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "basketball-fantasysports-yahoo-com/fantasy-basketball-players/player_rankings"` 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) · Player rankings?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use Yahoo Fantasy Basketball (public) · Player rankings?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.