League
curl --request POST \
--url https://api.aisa.one/apis/v1/sleeper-com/fantasy-football-leagues/league \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"league_id": "1383225688680583168"
}
'import requests
url = "https://api.aisa.one/apis/v1/sleeper-com/fantasy-football-leagues/league"
payload = { "league_id": "1383225688680583168" }
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: '1383225688680583168'})
};
fetch('https://api.aisa.one/apis/v1/sleeper-com/fantasy-football-leagues/league', 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/sleeper-com/fantasy-football-leagues/league",
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' => '1383225688680583168'
]),
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/sleeper-com/fantasy-football-leagues/league"
payload := strings.NewReader("{\n \"league_id\": \"1383225688680583168\"\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/sleeper-com/fantasy-football-leagues/league")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"league_id\": \"1383225688680583168\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/sleeper-com/fantasy-football-leagues/league")
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\": \"1383225688680583168\"\n}"
response = http.request(request)
puts response.read_body{
"draft_id": "1383225689943048192",
"league_id": "1383225688680583168",
"name": "#SFB16 - Forza",
"observed_at_ms": 1792622184887,
"previous_league_id": null,
"roster_positions": [
"FLEX",
"FLEX",
"FLEX",
"FLEX",
"FLEX",
"FLEX",
"FLEX",
"FLEX",
"SUPER_FLEX",
"SUPER_FLEX",
"BN",
"BN",
"BN",
"BN",
"BN",
"BN",
"BN",
"BN",
"BN",
"BN"
],
"scoring_settings": {
"blk_kick": 0,
"bonus_fd_te": 1,
"bonus_fd_wr": 0,
"bonus_pass_yd_300": 10,
"bonus_pass_yd_400": 20,
"bonus_rec_rb": 0,
"bonus_rec_te": 1,
"bonus_rec_wr": 0,
"bonus_rec_yd_100": 0,
"bonus_rec_yd_200": 0,
"bonus_rush_rec_yd_100": 10,
"bonus_rush_rec_yd_200": 20,
"bonus_rush_yd_100": 0,
"bonus_rush_yd_200": 0,
"bonus_sack_2p": 0,
"bonus_tkl_10p": 0,
"def_st_ff": 0,
"def_st_fum_rec": 0,
"def_st_td": 6,
"def_td": 0,
"ff": 0,
"fgm_0_19": 0,
"fgm_20_29": 0,
"fgm_30_39": 0,
"fgm_40_49": 0,
"fgm_50p": 0,
"fgm_yds": 0,
"fgmiss": 0,
"fum": 0,
"fum_lost": 0,
"fum_rec": 0,
"fum_rec_td": 6,
"int": 0,
"kr_yd": 0,
"pass_2pt": 2,
"pass_cmp": 0,
"pass_cmp_40p": 10,
"pass_fd": 0,
"pass_int": 0,
"pass_td": 6,
"pass_td_40p": 0,
"pass_yd": 0.04,
"pr_yd": 0,
"pts_allow_0": 0,
"pts_allow_14_20": 0,
"pts_allow_1_6": 0,
"pts_allow_21_27": 0,
"pts_allow_28_34": 0,
"pts_allow_35p": 0,
"pts_allow_7_13": 0,
"rec": 0.5,
"rec_20_29": 10,
"rec_2pt": 2,
"rec_30_39": 10,
"rec_40p": 10,
"rec_fd": 0.5,
"rec_td": 6,
"rec_yd": 0.1,
"rush_2pt": 2,
"rush_40p": 10,
"rush_att": 0,
"rush_fd": 0.5,
"rush_td": 6,
"rush_yd": 0.1,
"sack": 0,
"safe": 0,
"st_ff": 0,
"st_fum_rec": 0,
"st_td": 6,
"st_tkl_solo": 0,
"xpm": 0,
"xpmiss": 0
},
"season": "2026",
"season_type": "regular",
"settings": {
"bench_lock": 1,
"best_ball": 0,
"capacity_override": 0,
"commissioner_direct_invite": 0,
"daily_waivers": 1,
"daily_waivers_days": 5888,
"daily_waivers_hour": 8,
"daily_waivers_last_ran": 21,
"disable_adds": 0,
"disable_trades": 0,
"draft_rounds": 3,
"faab_suggestions": 0,
"last_report": 6,
"last_scored_leg": 6,
"league_average_match": 1,
"leg": 7,
"max_keepers": 1,
"max_subs": 0,
"num_teams": 12,
"offseason_adds": 0,
"pick_trading": 0,
"playoff_round_type": 0,
"playoff_seed_type": 0,
"playoff_teams": 6,
"playoff_type": 0,
"playoff_week_start": 0,
"reserve_allow_cov": 0,
"reserve_allow_dnr": 0,
"reserve_allow_doubtful": 0,
"reserve_allow_na": 0,
"reserve_allow_out": 0,
"reserve_allow_sus": 0,
"reserve_slots": 0,
"start_week": 1,
"sub_lock_if_starter_active": 0,
"sub_start_time_eligibility": 0,
"taxi_allow_vets": 0,
"taxi_deadline": 0,
"taxi_slots": 0,
"taxi_years": 0,
"trade_deadline": 9,
"trade_review_days": 3,
"type": 0,
"veto_auto_poll": 0,
"veto_show_votes": 0,
"veto_votes_needed": 6,
"waiver_bid_min": 0,
"waiver_budget": 100,
"waiver_clear_days": 0,
"waiver_day_of_week": 2,
"waiver_type": 2
},
"status": "in_season",
"total_rosters": 12
}Sleeper
League
Learn a league’s lineup slots and scoring before advising on it.
POST
https://api.aisa.one
/
apis
/
v1
/
sleeper-com
/
fantasy-football-leagues
/
league
League
curl --request POST \
--url https://api.aisa.one/apis/v1/sleeper-com/fantasy-football-leagues/league \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"league_id": "1383225688680583168"
}
'import requests
url = "https://api.aisa.one/apis/v1/sleeper-com/fantasy-football-leagues/league"
payload = { "league_id": "1383225688680583168" }
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: '1383225688680583168'})
};
fetch('https://api.aisa.one/apis/v1/sleeper-com/fantasy-football-leagues/league', 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/sleeper-com/fantasy-football-leagues/league",
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' => '1383225688680583168'
]),
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/sleeper-com/fantasy-football-leagues/league"
payload := strings.NewReader("{\n \"league_id\": \"1383225688680583168\"\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/sleeper-com/fantasy-football-leagues/league")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"league_id\": \"1383225688680583168\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/sleeper-com/fantasy-football-leagues/league")
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\": \"1383225688680583168\"\n}"
response = http.request(request)
puts response.read_body{
"draft_id": "1383225689943048192",
"league_id": "1383225688680583168",
"name": "#SFB16 - Forza",
"observed_at_ms": 1792622184887,
"previous_league_id": null,
"roster_positions": [
"FLEX",
"FLEX",
"FLEX",
"FLEX",
"FLEX",
"FLEX",
"FLEX",
"FLEX",
"SUPER_FLEX",
"SUPER_FLEX",
"BN",
"BN",
"BN",
"BN",
"BN",
"BN",
"BN",
"BN",
"BN",
"BN"
],
"scoring_settings": {
"blk_kick": 0,
"bonus_fd_te": 1,
"bonus_fd_wr": 0,
"bonus_pass_yd_300": 10,
"bonus_pass_yd_400": 20,
"bonus_rec_rb": 0,
"bonus_rec_te": 1,
"bonus_rec_wr": 0,
"bonus_rec_yd_100": 0,
"bonus_rec_yd_200": 0,
"bonus_rush_rec_yd_100": 10,
"bonus_rush_rec_yd_200": 20,
"bonus_rush_yd_100": 0,
"bonus_rush_yd_200": 0,
"bonus_sack_2p": 0,
"bonus_tkl_10p": 0,
"def_st_ff": 0,
"def_st_fum_rec": 0,
"def_st_td": 6,
"def_td": 0,
"ff": 0,
"fgm_0_19": 0,
"fgm_20_29": 0,
"fgm_30_39": 0,
"fgm_40_49": 0,
"fgm_50p": 0,
"fgm_yds": 0,
"fgmiss": 0,
"fum": 0,
"fum_lost": 0,
"fum_rec": 0,
"fum_rec_td": 6,
"int": 0,
"kr_yd": 0,
"pass_2pt": 2,
"pass_cmp": 0,
"pass_cmp_40p": 10,
"pass_fd": 0,
"pass_int": 0,
"pass_td": 6,
"pass_td_40p": 0,
"pass_yd": 0.04,
"pr_yd": 0,
"pts_allow_0": 0,
"pts_allow_14_20": 0,
"pts_allow_1_6": 0,
"pts_allow_21_27": 0,
"pts_allow_28_34": 0,
"pts_allow_35p": 0,
"pts_allow_7_13": 0,
"rec": 0.5,
"rec_20_29": 10,
"rec_2pt": 2,
"rec_30_39": 10,
"rec_40p": 10,
"rec_fd": 0.5,
"rec_td": 6,
"rec_yd": 0.1,
"rush_2pt": 2,
"rush_40p": 10,
"rush_att": 0,
"rush_fd": 0.5,
"rush_td": 6,
"rush_yd": 0.1,
"sack": 0,
"safe": 0,
"st_ff": 0,
"st_fum_rec": 0,
"st_td": 6,
"st_tkl_solo": 0,
"xpm": 0,
"xpmiss": 0
},
"season": "2026",
"season_type": "regular",
"settings": {
"bench_lock": 1,
"best_ball": 0,
"capacity_override": 0,
"commissioner_direct_invite": 0,
"daily_waivers": 1,
"daily_waivers_days": 5888,
"daily_waivers_hour": 8,
"daily_waivers_last_ran": 21,
"disable_adds": 0,
"disable_trades": 0,
"draft_rounds": 3,
"faab_suggestions": 0,
"last_report": 6,
"last_scored_leg": 6,
"league_average_match": 1,
"leg": 7,
"max_keepers": 1,
"max_subs": 0,
"num_teams": 12,
"offseason_adds": 0,
"pick_trading": 0,
"playoff_round_type": 0,
"playoff_seed_type": 0,
"playoff_teams": 6,
"playoff_type": 0,
"playoff_week_start": 0,
"reserve_allow_cov": 0,
"reserve_allow_dnr": 0,
"reserve_allow_doubtful": 0,
"reserve_allow_na": 0,
"reserve_allow_out": 0,
"reserve_allow_sus": 0,
"reserve_slots": 0,
"start_week": 1,
"sub_lock_if_starter_active": 0,
"sub_start_time_eligibility": 0,
"taxi_allow_vets": 0,
"taxi_deadline": 0,
"taxi_slots": 0,
"taxi_years": 0,
"trade_deadline": 9,
"trade_review_days": 3,
"type": 0,
"veto_auto_poll": 0,
"veto_show_votes": 0,
"veto_votes_needed": 6,
"waiver_bid_min": 0,
"waiver_budget": 100,
"waiver_clear_days": 0,
"waiver_day_of_week": 2,
"waiver_type": 2
},
"status": "in_season",
"total_rosters": 12
}Request contract
- Method and path: POST /apis/v1/sleeper-com/fantasy-football-leagues/league
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/sleeper-com/fantasy-football-leagues/league
{
"operationId": "sleeper-com.fantasy-football-leagues.league",
"method": "POST",
"path": "/apis/v1/sleeper-com/fantasy-football-leagues/league",
"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": "1383225688680583168"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"league_id": {
"description": "Sleeper league id (digits), from a sleeper.com/leagues/<id> URL or the Sleeper app. Pattern: ^[0-9]{6,20}$.",
"type": "string"
}
},
"required": [
"league_id"
],
"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
application/json
Response
One public Sleeper NFL league: name, season, status, team count, starting lineup slots (roster_positions), league settings (waivers, trade deadline, playoffs, reserve rules) and scoring settings. An unknown league is not_found.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
draft_id | string | |
league_id | string | |
name | string | |
observed_at_ms | number | When this program observed the upstream response (ms since epoch). |
previous_league_id | string | |
roster_positions | string[] | Lineup slots in order; BN is bench, IR reserve, TAXI taxi. |
scoring_settings | object | Points per stat (e.g. rec, pass_td, rush_yd). |
season | string | |
season_type | string | |
settings | object | Sleeper league settings as published (waiver_type, waiver_budget, trade_deadline, playoff_week_start, reserve_slots, taxi_slots, ...). |
status | string | pre_draft, drafting, in_season or complete. |
total_rosters | number |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.