Get NBA Player Statistics
curl --request POST \
--url https://api.aisa.one/apis/v1/api-sports/get-nba-players-statistics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"game": 1,
"id": 123,
"season": 5499,
"team": 123
}
'import requests
url = "https://api.aisa.one/apis/v1/api-sports/get-nba-players-statistics"
payload = {
"game": 1,
"id": 123,
"season": 5499,
"team": 123
}
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({game: 1, id: 123, season: 5499, team: 123})
};
fetch('https://api.aisa.one/apis/v1/api-sports/get-nba-players-statistics', 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/api-sports/get-nba-players-statistics",
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([
'game' => 1,
'id' => 123,
'season' => 5499,
'team' => 123
]),
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/api-sports/get-nba-players-statistics"
payload := strings.NewReader("{\n \"game\": 1,\n \"id\": 123,\n \"season\": 5499,\n \"team\": 123\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/api-sports/get-nba-players-statistics")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"game\": 1,\n \"id\": 123,\n \"season\": 5499,\n \"team\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-sports/get-nba-players-statistics")
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 \"game\": 1,\n \"id\": 123,\n \"season\": 5499,\n \"team\": 123\n}"
response = http.request(request)
puts response.read_body{
"errors": [
"<unknown>"
],
"get": "<string>",
"parameters": {},
"response": [
{
"assists": 123,
"blocks": 123,
"comment": "<string>",
"defReb": 123,
"fga": 123,
"fgm": 123,
"fgp": "<string>",
"fta": 123,
"ftm": 123,
"ftp": "<string>",
"game": {
"id": 1
},
"min": "<string>",
"offReb": 123,
"pFouls": 123,
"player": {
"firstname": "<string>",
"id": 123,
"lastname": "<string>"
},
"plusMinus": "<string>",
"points": 123,
"pos": "<string>",
"steals": 123,
"team": {
"code": "<string>",
"id": 123,
"logo": "<string>",
"name": "<string>",
"nickname": "<string>"
},
"totReb": 123,
"tpa": 123,
"tpm": 123,
"tpp": "<string>",
"turnovers": 123
}
],
"results": 1
}API-Sports
Get NBA Player Statistics
Get NBA Player Statistics
POST
https://api.aisa.one
/
apis
/
v1
/
api-sports
/
get-nba-players-statistics
Get NBA Player Statistics
curl --request POST \
--url https://api.aisa.one/apis/v1/api-sports/get-nba-players-statistics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"game": 1,
"id": 123,
"season": 5499,
"team": 123
}
'import requests
url = "https://api.aisa.one/apis/v1/api-sports/get-nba-players-statistics"
payload = {
"game": 1,
"id": 123,
"season": 5499,
"team": 123
}
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({game: 1, id: 123, season: 5499, team: 123})
};
fetch('https://api.aisa.one/apis/v1/api-sports/get-nba-players-statistics', 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/api-sports/get-nba-players-statistics",
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([
'game' => 1,
'id' => 123,
'season' => 5499,
'team' => 123
]),
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/api-sports/get-nba-players-statistics"
payload := strings.NewReader("{\n \"game\": 1,\n \"id\": 123,\n \"season\": 5499,\n \"team\": 123\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/api-sports/get-nba-players-statistics")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"game\": 1,\n \"id\": 123,\n \"season\": 5499,\n \"team\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-sports/get-nba-players-statistics")
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 \"game\": 1,\n \"id\": 123,\n \"season\": 5499,\n \"team\": 123\n}"
response = http.request(request)
puts response.read_body{
"errors": [
"<unknown>"
],
"get": "<string>",
"parameters": {},
"response": [
{
"assists": 123,
"blocks": 123,
"comment": "<string>",
"defReb": 123,
"fga": 123,
"fgm": 123,
"fgp": "<string>",
"fta": 123,
"ftm": 123,
"ftp": "<string>",
"game": {
"id": 1
},
"min": "<string>",
"offReb": 123,
"pFouls": 123,
"player": {
"firstname": "<string>",
"id": 123,
"lastname": "<string>"
},
"plusMinus": "<string>",
"points": 123,
"pos": "<string>",
"steals": 123,
"team": {
"code": "<string>",
"id": 123,
"logo": "<string>",
"name": "<string>",
"nickname": "<string>"
},
"totReb": 123,
"tpa": 123,
"tpm": 123,
"tpp": "<string>",
"turnovers": 123
}
],
"results": 1
}Request contract
- Method and path: POST /apis/v1/api-sports/get-nba-players-statistics
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/api-sports/get-nba-players-statistics
{
"operationId": "api-sports.get-nba-players-statistics",
"method": "POST",
"path": "/apis/v1/api-sports/get-nba-players-statistics",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"game": {
"description": "NBA game ID.",
"examples": [
1
],
"type": "integer"
},
"id": {
"description": "NBA player ID.",
"type": "integer"
},
"season": {
"description": "Four-digit NBA season starting year.",
"maximum": 9999,
"minimum": 1000,
"type": "integer"
},
"team": {
"description": "NBA team ID.",
"type": "integer"
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.000367 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json