> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Search players

> Resolve a player name to Yahoo player ids/keys before list_players, public_team_roster or player_news. Give league_id or league_url of any public league (10000 is a Yahoo-run public 9-category league); player ids are league-independent.

## Request contract

* **Method and path:** POST /apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/basketball-fantasysports-yahoo-com.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "basketball-fantasysports-yahoo-com.fantasy-basketball-players.search-players",
  "method": "POST",
  "path": "/apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "league_id": "10000",
              "query": "LeBron James"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "allOf": [
            {
              "anyOf": [
                {
                  "properties": {
                    "league_id": {}
                  },
                  "required": [
                    "league_id"
                  ]
                },
                {
                  "properties": {
                    "league_url": {}
                  },
                  "required": [
                    "league_url"
                  ]
                }
              ]
            }
          ],
          "properties": {
            "count": {
              "default": 25,
              "description": "Maximum results returned (the API answers with every match; extra rows are dropped).\n\nProvider reference: minimum 1; maximum 25; default 25.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 25,
                "min": 1
              }
            },
            "league_id": {
              "description": "Public league id, the number after /nba/ in a league URL (e.g. 10000). Pattern: ^[0-9]{1,9}$.",
              "type": "string"
            },
            "league_url": {
              "description": "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}(/.*)?$.",
              "type": "string"
            },
            "query": {
              "description": "Player name or name prefix.",
              "type": "string"
            }
          },
          "required": [
            "query"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/basketball-fantasysports-yahoo-com.json POST /apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players
openapi: 3.1.0
info:
  description: ''
  title: Yahoo Fantasy Basketball (public)
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    basketball-fantasysports-yahoo-com:
      description: ''
      title: Yahoo Fantasy Basketball (public)
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 69bf9747620c2ceb8c3de9471f76b9d23d54f71b6a00a633e604d61537cfd50b
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - >-
      /apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/list-players
    - >-
      /apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/player-news
    - >-
      /apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/player-rankings
    - >-
      /apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/public-team-roster
    - >-
      /apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:8033056d74470586a80a57d0179fdc37ef47c65dee71f45bf7a415558b4e23e3
    facts_hash: 69bf9747620c2ceb8c3de9471f76b9d23d54f71b6a00a633e604d61537cfd50b
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: basketball-fantasysports-yahoo-com
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players:
    post:
      tags:
        - Yahoo Fantasy Basketball (public)
      summary: Search players
      description: >-
        Resolve a player name to Yahoo player ids/keys before list_players,
        public_team_roster or player_news. Give league_id or league_url of any
        public league (10000 is a Yahoo-run public 9-category league); player
        ids are league-independent.
      operationId: >-
        basketball-fantasysports-yahoo-com.fantasy-basketball-players.search-players
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  league_id: '10000'
                  query: LeBron James
            schema:
              additionalProperties: true
              allOf:
                - anyOf:
                    - properties:
                        league_id: {}
                      required:
                        - league_id
                    - properties:
                        league_url: {}
                      required:
                        - league_url
              properties:
                count:
                  default: 25
                  description: >-
                    Maximum results returned (the API answers with every match;
                    extra rows are dropped).


                    Provider reference: minimum 1; maximum 25; default 25.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 25
                    min: 1
                league_id:
                  description: >-
                    Public league id, the number after /nba/ in a league URL
                    (e.g. 10000). Pattern: ^[0-9]{1,9}$.
                  type: string
                league_url:
                  description: >-
                    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}(/.*)?$.
                  type: string
                query:
                  description: Player name or name prefix.
                  type: string
              required:
                - query
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-14.
                  summary: Official provider example
                  value:
                    count: 1
                    game_key: '478'
                    league:
                      current_week: 1
                      draft_status: postdraft
                      league_id: '10000'
                      league_key: 478.l.10000
                      league_type: public
                      name: Yahoo H2H-Cat 10000
                      num_teams: 10
                      scoring_label: H2H Cat
                      scoring_type: head
                      season: '2026'
                      url: https://basketball.fantasysports.yahoo.com/nba/10000
                    observed_at_ms: 1792005379451
                    players:
                      - display_position: SF,PF
                        eligible_positions:
                          - SF
                          - PF
                          - F
                          - Util
                        first_name: LeBron
                        has_player_notes: true
                        headshot_url: >-
                          https://s.yimg.com/iu/api/res/1.2/4FkD8iJO6zI0zgkZl.6xMA--~C/YXBwaWQ9eXNwb3J0cztjaD0yMzM2O2NyPTE7Y3c9MTc5MDtkeD04NTc7ZHk9MDtmaT11bGNyb3A7aD02MDtxPTEwMDt3PTQ2/https://s.yimg.com/xe/i/us/sp/v/nba_cutout/players_l/10082026/3704.1.png
                        injury_note: Rest
                        is_undroppable: false
                        last_name: James
                        name: LeBron James
                        nba_team_abbr: PHI
                        nba_team_key: nba.t.20
                        nba_team_name: Philadelphia 76ers
                        news_url: https://sports.yahoo.com/nba/players/3704/news
                        player_id: '3704'
                        player_key: 478.p.3704
                        position_type: P
                        primary_position: SF
                        profile_url: https://sports.yahoo.com/nba/players/3704
                        status: Q
                        status_full: Questionable
                        uniform_number: '23'
                    query: LeBron James
                    season: '2026'
                    source_url: >-
                      https://pub-api-ro.fantasysports.yahoo.com/fantasy/v2/league/478.l.10000/players;search=LeBron%20James?format=json
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Search NBA players by name through Yahoo's read-only Fantasy API
            inside a public league (the game-level search endpoint ignores its
            search filter, so a public league is required).


            The response contains the tool result directly.


            The provider identifies `players` as the primary payload key.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `display_position` | string |  |

            | `eligible_positions` | string[] |  |

            | `first_name` | string |  |

            | `has_player_notes` | boolean |  |

            | `headshot_url` | string |  |

            | `injury_note` | string |  |

            | `is_undroppable` | boolean |  |

            | `last_name` | string |  |

            | `name` | string |  |

            | `nba_team_abbr` | string |  |

            | `nba_team_key` | string |  |

            | `nba_team_name` | string |  |

            | `news_url` | string | Public Yahoo Sports news index for the
            player (input for player_news). |

            | `player_id` | string |  |

            | `player_key` | string | Yahoo player key
            `{game_key}.p.{player_id}`. |

            | `position_type` | string |  |

            | `primary_position` | string |  |

            | `profile_url` | string | sports.yahoo.com player page. |

            | `status` | string | Injury/roster status code as Yahoo reports it
            (Q, O, IR, NA...). Null when the player has none. |

            | `status_full` | string |  |

            | `uniform_number` | string |  |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.