curl --request POST \
--url https://api.aisa.one/apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"league_id": "10000",
"query": "LeBron James"
}
'import requests
url = "https://api.aisa.one/apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players"
payload = {
"league_id": "10000",
"query": "LeBron James"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({league_id: '10000', query: 'LeBron James'})
};
fetch('https://api.aisa.one/apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'league_id' => '10000',
'query' => 'LeBron James'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players"
payload := strings.NewReader("{\n \"league_id\": \"10000\",\n \"query\": \"LeBron James\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"league_id\": \"10000\",\n \"query\": \"LeBron James\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"league_id\": \"10000\",\n \"query\": \"LeBron James\"\n}"
response = http.request(request)
puts response.read_body{
"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"
}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.
curl --request POST \
--url https://api.aisa.one/apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"league_id": "10000",
"query": "LeBron James"
}
'import requests
url = "https://api.aisa.one/apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players"
payload = {
"league_id": "10000",
"query": "LeBron James"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({league_id: '10000', query: 'LeBron James'})
};
fetch('https://api.aisa.one/apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'league_id' => '10000',
'query' => 'LeBron James'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players"
payload := strings.NewReader("{\n \"league_id\": \"10000\",\n \"query\": \"LeBron James\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"league_id\": \"10000\",\n \"query\": \"LeBron James\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/basketball-fantasysports-yahoo-com/fantasy-basketball-players/search-players")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"league_id\": \"10000\",\n \"query\": \"LeBron James\"\n}"
response = http.request(request)
puts response.read_body{
"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"
}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
{
"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.Authorizations
Body
- Option 1
- Option 2
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}(/.*)?$.
Response
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.