# Yahoo Fantasy Basketball (public) · 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.

- Provider: Alexandria
- Category: Sports
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `basketball-fantasysports-yahoo-com/fantasy-basketball-players/list_players`
- Page: https://spiral.ai/tools/alexandria/basketball-fantasysports-yahoo-com/fantasy-basketball-players/list_players

## Pricing

$0.00873 per call.

## Limits

- 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 | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `sdir` | one of | 0, 1 | 1 | Sort direction as the site encodes it (sdir). |
| `sort` | text |  | OR | 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})$. |
| `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}(/.*)?$. |
| `stat_period` | text |  | — | 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_id` | text |  | — | Fantasy team id in this league (fteam filter). Pattern: ^[0-9]{1,3}$. |

## Example

```bash
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>"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=basketball-fantasysports-yahoo-com%2Ffantasy-basketball-players%2Flist_players

## Common questions

### Yahoo Fantasy Basketball (public) · List players

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

