curl --request POST \
--url https://api.aisa.one/apis/v1/cbssports-com/fantasy-sports-rankings/stats \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"position": "K"
}
'import requests
url = "https://api.aisa.one/apis/v1/cbssports-com/fantasy-sports-rankings/stats"
payload = { "position": "K" }
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({position: 'K'})
};
fetch('https://api.aisa.one/apis/v1/cbssports-com/fantasy-sports-rankings/stats', 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/cbssports-com/fantasy-sports-rankings/stats",
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([
'position' => 'K'
]),
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/cbssports-com/fantasy-sports-rankings/stats"
payload := strings.NewReader("{\n \"position\": \"K\"\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/cbssports-com/fantasy-sports-rankings/stats")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"position\": \"K\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/cbssports-com/fantasy-sports-rankings/stats")
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 \"position\": \"K\"\n}"
response = http.request(request)
puts response.read_bodyStats
Actual fantasy production: last week’s football scores, this season to date, a past season’s totals, or recent NBA fantasy basketball form.
curl --request POST \
--url https://api.aisa.one/apis/v1/cbssports-com/fantasy-sports-rankings/stats \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"position": "K"
}
'import requests
url = "https://api.aisa.one/apis/v1/cbssports-com/fantasy-sports-rankings/stats"
payload = { "position": "K" }
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({position: 'K'})
};
fetch('https://api.aisa.one/apis/v1/cbssports-com/fantasy-sports-rankings/stats', 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/cbssports-com/fantasy-sports-rankings/stats",
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([
'position' => 'K'
]),
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/cbssports-com/fantasy-sports-rankings/stats"
payload := strings.NewReader("{\n \"position\": \"K\"\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/cbssports-com/fantasy-sports-rankings/stats")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"position\": \"K\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/cbssports-com/fantasy-sports-rankings/stats")
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 \"position\": \"K\"\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/cbssports-com/fantasy-sports-rankings/stats
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/cbssports-com/fantasy-sports-rankings/stats
{
"operationId": "cbssports-com.fantasy-sports-rankings.stats",
"method": "POST",
"path": "/apis/v1/cbssports-com/fantasy-sports-rankings/stats",
"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": {
"limit": 20,
"position": "K"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"limit": {
"description": "Return only the top N rows. Omit for the whole table.\n\nProvider reference: minimum 1; maximum 200.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 200,
"min": 1
}
},
"period": {
"description": "Basketball only, current season, without week: yesterday, the last 7/14/21/28 days, or the three-year averages (published before the season starts). Periods the site is not showing are not_found.\n\nProvider reference: allowed values [\"yesterday\", \"last_7_days\", \"last_14_days\", \"last_21_days\", \"last_28_days\", \"three_year_average\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"yesterday",
"last_7_days",
"last_14_days",
"last_21_days",
"last_28_days",
"three_year_average"
]
}
},
"position": {
"description": "Football: QB, RB, WR, TE, K or DST (team defense and special teams). Basketball: PG, SG, SF, PF, C, or G (guards) and F (forwards).\n\nProvider reference: allowed values [\"QB\", \"RB\", \"WR\", \"TE\", \"K\", \"DST\", \"PG\", \"SG\", \"SF\", \"PF\", \"C\", \"G\", \"F\"].",
"type": "string"
},
"scoring": {
"description": "Football only: PPR (a point per reception, the default) or STD (non-PPR). The site publishes no half-PPR tables. Omit for basketball, whose tables use CBS points scoring.\n\nProvider reference: allowed values [\"PPR\", \"STD\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"PPR",
"STD"
]
}
},
"season": {
"description": "Season year; an NBA season is labelled by the year it starts (2025 is 2025-26). Omit for the current season. The site publishes the current and the two previous seasons (three before an NBA season starts); others are not_found.\n\nProvider reference: minimum 2000; maximum 2100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 2100,
"min": 2000
}
},
"sport": {
"default": "football",
"description": "football (default, NFL) or basketball (NBA). Positions, scoring and periods differ by sport; an option of the other sport is invalid_input.\n\nProvider reference: allowed values [\"football\", \"basketball\"]; default \"football\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"football",
"basketball"
]
}
},
"week": {
"description": "Current season only; omit for season totals. Football: a single NFL week 1-18; the site publishes only the last completed week. Basketball: a scoring period; the site publishes only the current one (\"This Period\"). Others are not_found.\n\nProvider reference: minimum 1; maximum 30.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 30,
"min": 1
}
}
},
"required": [
"position"
],
"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
Basketball only, current season, without week: yesterday, the last 7/14/21/28 days, or the three-year averages (published before the season starts). Periods the site is not showing are not_found.
Provider reference: allowed values ["yesterday", "last_7_days", "last_14_days", "last_21_days", "last_28_days", "three_year_average"].
Response
CBS Sports fantasy stats for one position: fantasy points, points per game and the stat line for the top 100 players. Football (GET www.cbssports.com/fantasy/football/stats/{position}/{season}/{period}/stats/{ppr|nonppr}/): omit week for season totals (year to date for the current season); week gives the last completed week. Basketball (GET www.cbssports.com/fantasy/basketball/stats/{position}/{season}/{period}/stats/): seasons are labelled by the year they start; omit week and period for season totals, give week for the current scoring period or period for yesterday, the last 7-28 days or the three-year averages.
The response contains the tool result directly.
The provider identifies players as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
fantasy_points | number | Fantasy points in the requested scoring; null where the site shows a dash (did not play), and always null for basketball, whose tables give points per game only. |
fantasy_points_per_game | number | Fantasy points per game. For basketball this is the site's fpts column, which is a per-game average. |
name | string | Player name, or the team's city for football DST. |
player_id | number | CBS Sports player id; null for football team defenses. |
player_url | string | The player's fantasy page, or the team page for football DST. |
position | string | |
stats | object | The stat line keyed by the site's column codes; the set depends on the sport and position. Football: gp, passing_yds, rushing_td, receiving_rec, fg_fgm, xp_xpm, sck, yards_allowed_total, ... Basketball: gp, gs, min, mpg, fgm, fga, fg_pct, ftm, fta, ft_pct, 3pm, 3pa, 3fg_pct, pts, ppg, reb, rpg, ast, apg, stl, spg, to, topg, blk, bpg (percentages as the site shows them, 0-100). Null where the site shows a dash. |
team | string | Team abbreviation as the site writes it (JAC, WAS, GS, NY). |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.