curl --request POST \
--url https://api.aisa.one/apis/v1/cbssports-com/fantasy-sports-rankings/rankings \
--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/rankings"
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/rankings', 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/rankings",
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/rankings"
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/rankings")
.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/rankings")
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_bodyRankings
Start/sit rankings for a football position this week, football draft rankings, or NBA fantasy basketball roto rankings by position.
curl --request POST \
--url https://api.aisa.one/apis/v1/cbssports-com/fantasy-sports-rankings/rankings \
--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/rankings"
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/rankings', 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/rankings",
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/rankings"
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/rankings")
.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/rankings")
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/rankings
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/cbssports-com/fantasy-sports-rankings/rankings
{
"operationId": "cbssports-com.fantasy-sports-rankings.rankings",
"method": "POST",
"path": "/apis/v1/cbssports-com/fantasy-sports-rankings/rankings",
"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": {
"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
}
},
"position": {
"description": "Football: QB, RB, WR, TE, K, DST, FLX (top 150 RB/WR/TE, weekly only) or ALL (top 200, draft only). Basketball: G (guards), F (forwards), C (centers) or ALL (top 200).\n\nProvider reference: allowed values [\"QB\", \"RB\", \"WR\", \"TE\", \"K\", \"DST\", \"FLX\", \"ALL\", \"G\", \"F\", \"C\"].",
"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 rankings are roto.\n\nProvider reference: allowed values [\"PPR\", \"STD\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"PPR",
"STD"
]
}
},
"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"
]
}
},
"type": {
"description": "Football only: weekly (default), the current week, or draft, the preseason draft rankings. Omit for basketball, which publishes one list.\n\nProvider reference: allowed values [\"weekly\", \"draft\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"weekly",
"draft"
]
}
}
},
"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
Response
CBS Sports fantasy rankings. Football (GET www.cbssports.com/fantasy/football/rankings/{ppr|standard}/{list}/{weekly|yearly}/): the consensus rank of each player with every expert's own rank, opponent (weekly) or bye week and auction value (draft); FLX is the weekly top 150 RB/WR/TE and ALL the draft top 200. Basketball (GET www.cbssports.com/fantasy/basketball/rankings/roto/{G|F|C|top200}/): RotoWire's rankings for a 12-team, 8-category roto league, as rank and player only; ALL is the top 200 with each player's position.
The response contains the tool result directly.
The provider identifies players as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
auction_value | number | Football draft only: suggested salary-cap auction value in dollars; null otherwise. |
bye_week | number | Football draft only; null otherwise. |
expert_ranks | object[] | Each expert's rank, in the experts order; empty for basketball. |
name | string | Player name, or the team nickname for football DST. |
opponent | string | Football weekly only: "vs. NYJ" / "at NYJ"; null for draft and basketball. |
player_id | number | CBS Sports player id; null for football team defenses. |
player_url | string | The player's fantasy page; null for football DST. |
pos_rank | string | Positional rank label, for example RB1 or G1; null on the basketball ALL list, which gives no positional rank. |
position | string | Position; for basketball the list position (G, F, C), or the player's position on the ALL list. |
rank_ecr | number | The site's consensus rank in the list. |
team | string | Team abbreviation as the site writes it (JAC, WAS); null for basketball, whose rankings name no team. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.