Get Fixtures
curl --request POST \
--url https://api.aisa.one/apis/v1/api-sports/get-fixtures \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"date": "2020-05-30",
"from": "2020-05-30",
"id": 215662,
"last": 2,
"league": 39,
"live": "all",
"next": 2,
"round": "Regular Season - 1",
"season": 2019,
"status": "NS",
"team": 33,
"timezone": "Europe/London",
"to": "2020-06-30",
"venue": 556
}
'import requests
url = "https://api.aisa.one/apis/v1/api-sports/get-fixtures"
payload = {
"date": "2020-05-30",
"from": "2020-05-30",
"id": 215662,
"last": 2,
"league": 39,
"live": "all",
"next": 2,
"round": "Regular Season - 1",
"season": 2019,
"status": "NS",
"team": 33,
"timezone": "Europe/London",
"to": "2020-06-30",
"venue": 556
}
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({
date: '2020-05-30',
from: '2020-05-30',
id: 215662,
last: 2,
league: 39,
live: 'all',
next: 2,
round: 'Regular Season - 1',
season: 2019,
status: 'NS',
team: 33,
timezone: 'Europe/London',
to: '2020-06-30',
venue: 556
})
};
fetch('https://api.aisa.one/apis/v1/api-sports/get-fixtures', 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-fixtures",
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([
'date' => '2020-05-30',
'from' => '2020-05-30',
'id' => 215662,
'last' => 2,
'league' => 39,
'live' => 'all',
'next' => 2,
'round' => 'Regular Season - 1',
'season' => 2019,
'status' => 'NS',
'team' => 33,
'timezone' => 'Europe/London',
'to' => '2020-06-30',
'venue' => 556
]),
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-fixtures"
payload := strings.NewReader("{\n \"date\": \"2020-05-30\",\n \"from\": \"2020-05-30\",\n \"id\": 215662,\n \"last\": 2,\n \"league\": 39,\n \"live\": \"all\",\n \"next\": 2,\n \"round\": \"Regular Season - 1\",\n \"season\": 2019,\n \"status\": \"NS\",\n \"team\": 33,\n \"timezone\": \"Europe/London\",\n \"to\": \"2020-06-30\",\n \"venue\": 556\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-fixtures")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"date\": \"2020-05-30\",\n \"from\": \"2020-05-30\",\n \"id\": 215662,\n \"last\": 2,\n \"league\": 39,\n \"live\": \"all\",\n \"next\": 2,\n \"round\": \"Regular Season - 1\",\n \"season\": 2019,\n \"status\": \"NS\",\n \"team\": 33,\n \"timezone\": \"Europe/London\",\n \"to\": \"2020-06-30\",\n \"venue\": 556\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-sports/get-fixtures")
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 \"date\": \"2020-05-30\",\n \"from\": \"2020-05-30\",\n \"id\": 215662,\n \"last\": 2,\n \"league\": 39,\n \"live\": \"all\",\n \"next\": 2,\n \"round\": \"Regular Season - 1\",\n \"season\": 2019,\n \"status\": \"NS\",\n \"team\": 33,\n \"timezone\": \"Europe/London\",\n \"to\": \"2020-06-30\",\n \"venue\": 556\n}"
response = http.request(request)
puts response.read_body{
"errors": [
"<unknown>"
],
"get": "<string>",
"paging": {
"current": 123,
"total": 123
},
"parameters": {
"date": "<string>",
"from": "<string>",
"id": "<string>",
"last": "<string>",
"league": "<string>",
"live": "<string>",
"next": "<string>",
"round": "<string>",
"season": "<string>",
"status": "<string>",
"team": "<string>",
"timezone": "<string>",
"to": "<string>",
"venue": "<string>"
},
"response": [
{
"fixture": {
"date": "<string>",
"id": 123,
"status": {
"long": "<string>",
"short": "<string>",
"elapsed": 123,
"extra": 123
},
"timestamp": 123,
"timezone": "<string>",
"periods": {
"first": 123,
"second": 123
},
"referee": "<string>",
"venue": {
"city": "<string>",
"id": 123,
"name": "<string>"
}
},
"goals": {
"away": 123,
"home": 123
},
"league": {
"country": "<string>",
"id": 123,
"name": "<string>",
"season": 123,
"flag": "<string>",
"logo": "<string>",
"round": "<string>",
"standings": true
},
"score": {
"fulltime": {
"away": 123,
"home": 123
},
"halftime": {
"away": 123,
"home": 123
},
"extratime": {
"away": 123,
"home": 123
},
"penalty": {
"away": 123,
"home": 123
}
},
"teams": {
"away": {
"id": 123,
"name": "<string>",
"logo": "<string>",
"winner": true
},
"home": {
"id": 123,
"name": "<string>",
"logo": "<string>",
"winner": true
}
},
"events": [
{
"detail": "<string>",
"player": {
"id": 123,
"name": "<string>"
},
"team": {
"id": 123,
"logo": "<string>",
"name": "<string>"
},
"time": {
"elapsed": 123,
"extra": 123
},
"type": "<string>",
"assist": {
"id": 123,
"name": "<string>"
},
"comments": "<string>"
}
],
"lineups": [
{
"team": {
"id": 123,
"logo": "<string>",
"name": "<string>",
"colors": {
"goalkeeper": {
"border": "<string>",
"number": "<string>",
"primary": "<string>"
},
"player": {
"border": "<string>",
"number": "<string>",
"primary": "<string>"
}
}
},
"coach": {
"id": 123,
"name": "<string>",
"photo": "<string>"
},
"formation": "<string>",
"startXI": [
{
"player": {
"id": 123,
"name": "<string>",
"number": 123,
"grid": "<string>",
"pos": "<string>"
}
}
],
"substitutes": [
{
"player": {
"id": 123,
"name": "<string>",
"number": 123,
"grid": "<string>",
"pos": "<string>"
}
}
]
}
],
"players": [
{
"players": [
{
"player": {
"id": 123,
"name": "<string>",
"photo": "<string>"
},
"statistics": [
{
"cards": {
"red": 123,
"yellow": 123,
"yellowred": 123
},
"dribbles": {
"attempts": 123,
"past": 123,
"success": 123
},
"duels": {
"total": 123,
"won": 123
},
"fouls": {
"committed": 123,
"drawn": 123
},
"games": {
"captain": true,
"minutes": 123,
"number": 123,
"position": "<string>",
"rating": "<string>",
"substitute": true
},
"goals": {
"assists": 123,
"conceded": 123,
"saves": 123,
"total": 123
},
"offsides": 123,
"passes": {
"accuracy": "<string>",
"key": 123,
"total": 123
},
"penalty": {
"commited": 123,
"missed": 123,
"saved": 123,
"scored": 123,
"won": 123
},
"shots": {
"on": 123,
"total": 123
},
"tackles": {
"blocks": 123,
"interceptions": 123,
"total": 123
}
}
]
}
],
"team": {
"id": 123,
"logo": "<string>",
"name": "<string>",
"update": "<string>"
}
}
],
"statistics": [
{
"statistics": [
{
"type": "<string>",
"value": "<string>"
}
],
"team": {
"id": 123,
"name": "<string>",
"logo": "<string>"
}
}
]
}
],
"results": 1
}API-Sports
Get Fixtures
Get Fixtures
POST
https://api.aisa.one
/
apis
/
v1
/
api-sports
/
get-fixtures
Get Fixtures
curl --request POST \
--url https://api.aisa.one/apis/v1/api-sports/get-fixtures \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"date": "2020-05-30",
"from": "2020-05-30",
"id": 215662,
"last": 2,
"league": 39,
"live": "all",
"next": 2,
"round": "Regular Season - 1",
"season": 2019,
"status": "NS",
"team": 33,
"timezone": "Europe/London",
"to": "2020-06-30",
"venue": 556
}
'import requests
url = "https://api.aisa.one/apis/v1/api-sports/get-fixtures"
payload = {
"date": "2020-05-30",
"from": "2020-05-30",
"id": 215662,
"last": 2,
"league": 39,
"live": "all",
"next": 2,
"round": "Regular Season - 1",
"season": 2019,
"status": "NS",
"team": 33,
"timezone": "Europe/London",
"to": "2020-06-30",
"venue": 556
}
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({
date: '2020-05-30',
from: '2020-05-30',
id: 215662,
last: 2,
league: 39,
live: 'all',
next: 2,
round: 'Regular Season - 1',
season: 2019,
status: 'NS',
team: 33,
timezone: 'Europe/London',
to: '2020-06-30',
venue: 556
})
};
fetch('https://api.aisa.one/apis/v1/api-sports/get-fixtures', 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-fixtures",
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([
'date' => '2020-05-30',
'from' => '2020-05-30',
'id' => 215662,
'last' => 2,
'league' => 39,
'live' => 'all',
'next' => 2,
'round' => 'Regular Season - 1',
'season' => 2019,
'status' => 'NS',
'team' => 33,
'timezone' => 'Europe/London',
'to' => '2020-06-30',
'venue' => 556
]),
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-fixtures"
payload := strings.NewReader("{\n \"date\": \"2020-05-30\",\n \"from\": \"2020-05-30\",\n \"id\": 215662,\n \"last\": 2,\n \"league\": 39,\n \"live\": \"all\",\n \"next\": 2,\n \"round\": \"Regular Season - 1\",\n \"season\": 2019,\n \"status\": \"NS\",\n \"team\": 33,\n \"timezone\": \"Europe/London\",\n \"to\": \"2020-06-30\",\n \"venue\": 556\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-fixtures")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"date\": \"2020-05-30\",\n \"from\": \"2020-05-30\",\n \"id\": 215662,\n \"last\": 2,\n \"league\": 39,\n \"live\": \"all\",\n \"next\": 2,\n \"round\": \"Regular Season - 1\",\n \"season\": 2019,\n \"status\": \"NS\",\n \"team\": 33,\n \"timezone\": \"Europe/London\",\n \"to\": \"2020-06-30\",\n \"venue\": 556\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-sports/get-fixtures")
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 \"date\": \"2020-05-30\",\n \"from\": \"2020-05-30\",\n \"id\": 215662,\n \"last\": 2,\n \"league\": 39,\n \"live\": \"all\",\n \"next\": 2,\n \"round\": \"Regular Season - 1\",\n \"season\": 2019,\n \"status\": \"NS\",\n \"team\": 33,\n \"timezone\": \"Europe/London\",\n \"to\": \"2020-06-30\",\n \"venue\": 556\n}"
response = http.request(request)
puts response.read_body{
"errors": [
"<unknown>"
],
"get": "<string>",
"paging": {
"current": 123,
"total": 123
},
"parameters": {
"date": "<string>",
"from": "<string>",
"id": "<string>",
"last": "<string>",
"league": "<string>",
"live": "<string>",
"next": "<string>",
"round": "<string>",
"season": "<string>",
"status": "<string>",
"team": "<string>",
"timezone": "<string>",
"to": "<string>",
"venue": "<string>"
},
"response": [
{
"fixture": {
"date": "<string>",
"id": 123,
"status": {
"long": "<string>",
"short": "<string>",
"elapsed": 123,
"extra": 123
},
"timestamp": 123,
"timezone": "<string>",
"periods": {
"first": 123,
"second": 123
},
"referee": "<string>",
"venue": {
"city": "<string>",
"id": 123,
"name": "<string>"
}
},
"goals": {
"away": 123,
"home": 123
},
"league": {
"country": "<string>",
"id": 123,
"name": "<string>",
"season": 123,
"flag": "<string>",
"logo": "<string>",
"round": "<string>",
"standings": true
},
"score": {
"fulltime": {
"away": 123,
"home": 123
},
"halftime": {
"away": 123,
"home": 123
},
"extratime": {
"away": 123,
"home": 123
},
"penalty": {
"away": 123,
"home": 123
}
},
"teams": {
"away": {
"id": 123,
"name": "<string>",
"logo": "<string>",
"winner": true
},
"home": {
"id": 123,
"name": "<string>",
"logo": "<string>",
"winner": true
}
},
"events": [
{
"detail": "<string>",
"player": {
"id": 123,
"name": "<string>"
},
"team": {
"id": 123,
"logo": "<string>",
"name": "<string>"
},
"time": {
"elapsed": 123,
"extra": 123
},
"type": "<string>",
"assist": {
"id": 123,
"name": "<string>"
},
"comments": "<string>"
}
],
"lineups": [
{
"team": {
"id": 123,
"logo": "<string>",
"name": "<string>",
"colors": {
"goalkeeper": {
"border": "<string>",
"number": "<string>",
"primary": "<string>"
},
"player": {
"border": "<string>",
"number": "<string>",
"primary": "<string>"
}
}
},
"coach": {
"id": 123,
"name": "<string>",
"photo": "<string>"
},
"formation": "<string>",
"startXI": [
{
"player": {
"id": 123,
"name": "<string>",
"number": 123,
"grid": "<string>",
"pos": "<string>"
}
}
],
"substitutes": [
{
"player": {
"id": 123,
"name": "<string>",
"number": 123,
"grid": "<string>",
"pos": "<string>"
}
}
]
}
],
"players": [
{
"players": [
{
"player": {
"id": 123,
"name": "<string>",
"photo": "<string>"
},
"statistics": [
{
"cards": {
"red": 123,
"yellow": 123,
"yellowred": 123
},
"dribbles": {
"attempts": 123,
"past": 123,
"success": 123
},
"duels": {
"total": 123,
"won": 123
},
"fouls": {
"committed": 123,
"drawn": 123
},
"games": {
"captain": true,
"minutes": 123,
"number": 123,
"position": "<string>",
"rating": "<string>",
"substitute": true
},
"goals": {
"assists": 123,
"conceded": 123,
"saves": 123,
"total": 123
},
"offsides": 123,
"passes": {
"accuracy": "<string>",
"key": 123,
"total": 123
},
"penalty": {
"commited": 123,
"missed": 123,
"saved": 123,
"scored": 123,
"won": 123
},
"shots": {
"on": 123,
"total": 123
},
"tackles": {
"blocks": 123,
"interceptions": 123,
"total": 123
}
}
]
}
],
"team": {
"id": 123,
"logo": "<string>",
"name": "<string>",
"update": "<string>"
}
}
],
"statistics": [
{
"statistics": [
{
"type": "<string>",
"value": "<string>"
}
],
"team": {
"id": 123,
"name": "<string>",
"logo": "<string>"
}
}
]
}
],
"results": 1
}Request contract
- Method and path: POST /apis/v1/api-sports/get-fixtures
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/api-sports/get-fixtures
{
"operationId": "api-sports.get-fixtures",
"method": "POST",
"path": "/apis/v1/api-sports/get-fixtures",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"date": {
"description": "A valid date (YYYY-MM-DD).",
"examples": [
"2020-05-30"
],
"type": "string"
},
"from": {
"description": "Start date for date range (YYYY-MM-DD).",
"examples": [
"2020-05-30"
],
"type": "string"
},
"id": {
"description": "Unique identifier of the fixture.",
"examples": [
215662
],
"minimum": 1,
"type": "integer"
},
"last": {
"description": "Number of last fixtures to retrieve. Capped at ~20 fixtures; use league with from/to for extended range coverage.",
"examples": [
2
],
"maximum": 20,
"minimum": 1,
"type": "integer"
},
"league": {
"description": "Unique identifier of the league.",
"examples": [
39
],
"minimum": 1,
"type": "integer"
},
"live": {
"description": "Get all live fixtures (all) or only those with events (all-events).",
"examples": [
"all"
],
"type": "string"
},
"next": {
"description": "Number of next fixtures to retrieve.",
"examples": [
2
],
"maximum": 20,
"minimum": 1,
"type": "integer"
},
"round": {
"description": "Round of the fixture.",
"examples": [
"Regular Season - 1"
],
"type": "string"
},
"season": {
"description": "Season year (4-digit year).",
"examples": [
2019
],
"maximum": 9999,
"minimum": 1000,
"type": "integer"
},
"status": {
"description": "Status of the fixture (NS, LIVE, FT, etc.).",
"examples": [
"NS"
],
"type": "string"
},
"team": {
"description": "Unique identifier of the team.",
"examples": [
33
],
"minimum": 1,
"type": "integer"
},
"timezone": {
"description": "IANA timezone for date conversion. Set correctly to avoid empty results when filtering by date, live, or status, as all times default to UTC.",
"examples": [
"Europe/London"
],
"type": "string"
},
"to": {
"description": "End date for date range (YYYY-MM-DD).",
"examples": [
"2020-06-30"
],
"type": "string"
},
"venue": {
"description": "Unique identifier of the venue.",
"examples": [
556
],
"minimum": 1,
"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.000384 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json