Get MMA Fights
curl --request POST \
--url https://api.aisa.one/apis/v1/api-sports/get-mma-fights \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"category": "Flyweight",
"date": "2023-08-26",
"fighter": 2,
"id": 2,
"season": 2023,
"timezone": "Europe/London"
}
'import requests
url = "https://api.aisa.one/apis/v1/api-sports/get-mma-fights"
payload = {
"category": "Flyweight",
"date": "2023-08-26",
"fighter": 2,
"id": 2,
"season": 2023,
"timezone": "Europe/London"
}
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({
category: 'Flyweight',
date: '2023-08-26',
fighter: 2,
id: 2,
season: 2023,
timezone: 'Europe/London'
})
};
fetch('https://api.aisa.one/apis/v1/api-sports/get-mma-fights', 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-mma-fights",
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([
'category' => 'Flyweight',
'date' => '2023-08-26',
'fighter' => 2,
'id' => 2,
'season' => 2023,
'timezone' => 'Europe/London'
]),
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-mma-fights"
payload := strings.NewReader("{\n \"category\": \"Flyweight\",\n \"date\": \"2023-08-26\",\n \"fighter\": 2,\n \"id\": 2,\n \"season\": 2023,\n \"timezone\": \"Europe/London\"\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-mma-fights")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"category\": \"Flyweight\",\n \"date\": \"2023-08-26\",\n \"fighter\": 2,\n \"id\": 2,\n \"season\": 2023,\n \"timezone\": \"Europe/London\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-sports/get-mma-fights")
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 \"category\": \"Flyweight\",\n \"date\": \"2023-08-26\",\n \"fighter\": 2,\n \"id\": 2,\n \"season\": 2023,\n \"timezone\": \"Europe/London\"\n}"
response = http.request(request)
puts response.read_body{
"errors": [
"<unknown>"
],
"get": "<string>",
"parameters": {
"category": "<string>",
"date": "<string>",
"fighter": "<string>",
"id": "<string>",
"season": "<string>",
"timezone": "<string>"
},
"response": [
{
"category": "<string>",
"date": "<string>",
"fighters": {
"first": {
"id": 123,
"logo": "<string>",
"name": "<string>",
"winner": true
},
"second": {
"id": 123,
"logo": "<string>",
"name": "<string>",
"winner": true
}
},
"id": 123,
"is_main": true,
"slug": "<string>",
"status": {
"long": "<string>",
"short": "<string>"
},
"time": "<string>",
"timestamp": 123,
"timezone": "<string>"
}
],
"results": 1
}API-Sports
Get MMA Fights
Get MMA Fights
POST
https://api.aisa.one
/
apis
/
v1
/
api-sports
/
get-mma-fights
Get MMA Fights
curl --request POST \
--url https://api.aisa.one/apis/v1/api-sports/get-mma-fights \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"category": "Flyweight",
"date": "2023-08-26",
"fighter": 2,
"id": 2,
"season": 2023,
"timezone": "Europe/London"
}
'import requests
url = "https://api.aisa.one/apis/v1/api-sports/get-mma-fights"
payload = {
"category": "Flyweight",
"date": "2023-08-26",
"fighter": 2,
"id": 2,
"season": 2023,
"timezone": "Europe/London"
}
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({
category: 'Flyweight',
date: '2023-08-26',
fighter: 2,
id: 2,
season: 2023,
timezone: 'Europe/London'
})
};
fetch('https://api.aisa.one/apis/v1/api-sports/get-mma-fights', 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-mma-fights",
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([
'category' => 'Flyweight',
'date' => '2023-08-26',
'fighter' => 2,
'id' => 2,
'season' => 2023,
'timezone' => 'Europe/London'
]),
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-mma-fights"
payload := strings.NewReader("{\n \"category\": \"Flyweight\",\n \"date\": \"2023-08-26\",\n \"fighter\": 2,\n \"id\": 2,\n \"season\": 2023,\n \"timezone\": \"Europe/London\"\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-mma-fights")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"category\": \"Flyweight\",\n \"date\": \"2023-08-26\",\n \"fighter\": 2,\n \"id\": 2,\n \"season\": 2023,\n \"timezone\": \"Europe/London\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-sports/get-mma-fights")
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 \"category\": \"Flyweight\",\n \"date\": \"2023-08-26\",\n \"fighter\": 2,\n \"id\": 2,\n \"season\": 2023,\n \"timezone\": \"Europe/London\"\n}"
response = http.request(request)
puts response.read_body{
"errors": [
"<unknown>"
],
"get": "<string>",
"parameters": {
"category": "<string>",
"date": "<string>",
"fighter": "<string>",
"id": "<string>",
"season": "<string>",
"timezone": "<string>"
},
"response": [
{
"category": "<string>",
"date": "<string>",
"fighters": {
"first": {
"id": 123,
"logo": "<string>",
"name": "<string>",
"winner": true
},
"second": {
"id": 123,
"logo": "<string>",
"name": "<string>",
"winner": true
}
},
"id": 123,
"is_main": true,
"slug": "<string>",
"status": {
"long": "<string>",
"short": "<string>"
},
"time": "<string>",
"timestamp": 123,
"timezone": "<string>"
}
],
"results": 1
}Request contract
- Method and path: POST /apis/v1/api-sports/get-mma-fights
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/api-sports/get-mma-fights
{
"operationId": "api-sports.get-mma-fights",
"method": "POST",
"path": "/apis/v1/api-sports/get-mma-fights",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"category": {
"description": "The name of the weight class category (e.g., 'Flyweight', 'Lightweight').",
"examples": [
"Flyweight"
],
"type": "string"
},
"date": {
"description": "A valid date in YYYY-MM-DD format to filter fights by date.",
"examples": [
"2023-08-26"
],
"type": "string"
},
"fighter": {
"description": "The id of the fighter to filter fights by specific fighter. When using fighter, either date or season must also be provided.",
"minimum": 1,
"type": "integer"
},
"id": {
"description": "The id of the fight.",
"minimum": 1,
"type": "integer"
},
"season": {
"description": "A valid season year in YYYY format to filter fights by season.",
"examples": [
2023
],
"maximum": 9999,
"minimum": 1000,
"type": "integer"
},
"timezone": {
"description": "A valid IANA timezone (e.g., 'Europe/London', 'America/New_York') for date conversion. Defaults to UTC if not specified.",
"examples": [
"Europe/London"
],
"type": "string"
}
},
"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.000344 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json