Get Teams
curl --request POST \
--url https://api.aisa.one/apis/v1/api-sports/get-teams \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "MUN",
"country": "England",
"id": 33,
"league": 39,
"name": "Manchester United",
"search": "Man",
"season": 2021,
"venue": 556
}
'import requests
url = "https://api.aisa.one/apis/v1/api-sports/get-teams"
payload = {
"code": "MUN",
"country": "England",
"id": 33,
"league": 39,
"name": "Manchester United",
"search": "Man",
"season": 2021,
"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({
code: 'MUN',
country: 'England',
id: 33,
league: 39,
name: 'Manchester United',
search: 'Man',
season: 2021,
venue: 556
})
};
fetch('https://api.aisa.one/apis/v1/api-sports/get-teams', 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-teams",
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([
'code' => 'MUN',
'country' => 'England',
'id' => 33,
'league' => 39,
'name' => 'Manchester United',
'search' => 'Man',
'season' => 2021,
'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-teams"
payload := strings.NewReader("{\n \"code\": \"MUN\",\n \"country\": \"England\",\n \"id\": 33,\n \"league\": 39,\n \"name\": \"Manchester United\",\n \"search\": \"Man\",\n \"season\": 2021,\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-teams")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"code\": \"MUN\",\n \"country\": \"England\",\n \"id\": 33,\n \"league\": 39,\n \"name\": \"Manchester United\",\n \"search\": \"Man\",\n \"season\": 2021,\n \"venue\": 556\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-sports/get-teams")
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 \"code\": \"MUN\",\n \"country\": \"England\",\n \"id\": 33,\n \"league\": 39,\n \"name\": \"Manchester United\",\n \"search\": \"Man\",\n \"season\": 2021,\n \"venue\": 556\n}"
response = http.request(request)
puts response.read_body{
"get": "<string>",
"paging": {
"current": 123,
"total": 123
},
"parameters": {},
"response": [
{
"team": {
"id": 123,
"name": "<string>",
"code": "<string>",
"country": "<string>",
"founded": 123,
"logo": "<string>",
"national": true
},
"venue": {
"address": "<string>",
"capacity": 123,
"city": "<string>",
"id": 123,
"image": "<string>",
"name": "<string>",
"surface": "<string>"
}
}
],
"results": 1,
"errors": [
"<unknown>"
]
}API-Sports
Get Teams
Get Teams
POST
https://api.aisa.one
/
apis
/
v1
/
api-sports
/
get-teams
Get Teams
curl --request POST \
--url https://api.aisa.one/apis/v1/api-sports/get-teams \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "MUN",
"country": "England",
"id": 33,
"league": 39,
"name": "Manchester United",
"search": "Man",
"season": 2021,
"venue": 556
}
'import requests
url = "https://api.aisa.one/apis/v1/api-sports/get-teams"
payload = {
"code": "MUN",
"country": "England",
"id": 33,
"league": 39,
"name": "Manchester United",
"search": "Man",
"season": 2021,
"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({
code: 'MUN',
country: 'England',
id: 33,
league: 39,
name: 'Manchester United',
search: 'Man',
season: 2021,
venue: 556
})
};
fetch('https://api.aisa.one/apis/v1/api-sports/get-teams', 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-teams",
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([
'code' => 'MUN',
'country' => 'England',
'id' => 33,
'league' => 39,
'name' => 'Manchester United',
'search' => 'Man',
'season' => 2021,
'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-teams"
payload := strings.NewReader("{\n \"code\": \"MUN\",\n \"country\": \"England\",\n \"id\": 33,\n \"league\": 39,\n \"name\": \"Manchester United\",\n \"search\": \"Man\",\n \"season\": 2021,\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-teams")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"code\": \"MUN\",\n \"country\": \"England\",\n \"id\": 33,\n \"league\": 39,\n \"name\": \"Manchester United\",\n \"search\": \"Man\",\n \"season\": 2021,\n \"venue\": 556\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/api-sports/get-teams")
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 \"code\": \"MUN\",\n \"country\": \"England\",\n \"id\": 33,\n \"league\": 39,\n \"name\": \"Manchester United\",\n \"search\": \"Man\",\n \"season\": 2021,\n \"venue\": 556\n}"
response = http.request(request)
puts response.read_body{
"get": "<string>",
"paging": {
"current": 123,
"total": 123
},
"parameters": {},
"response": [
{
"team": {
"id": 123,
"name": "<string>",
"code": "<string>",
"country": "<string>",
"founded": 123,
"logo": "<string>",
"national": true
},
"venue": {
"address": "<string>",
"capacity": 123,
"city": "<string>",
"id": 123,
"image": "<string>",
"name": "<string>",
"surface": "<string>"
}
}
],
"results": 1,
"errors": [
"<unknown>"
]
}请求规范
- 方法与路径: POST /apis/v1/api-sports/get-teams
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/api-sports/get-teams
{
"operationId": "api-sports.get-teams",
"method": "POST",
"path": "/apis/v1/api-sports/get-teams",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"code": {
"description": "Three-letter team code (e.g., 'MUN' for Manchester United).",
"examples": [
"MUN"
],
"type": "string"
},
"country": {
"description": "Name of the country the team represents.",
"examples": [
"England"
],
"type": "string"
},
"id": {
"description": "Unique identifier of the team.",
"examples": [
33
],
"minimum": 1,
"type": "integer"
},
"league": {
"description": "Unique identifier of the league to filter teams.",
"examples": [
39
],
"minimum": 1,
"type": "integer"
},
"name": {
"description": "Name of the team.",
"examples": [
"Manchester United"
],
"type": "string"
},
"search": {
"description": "Search term for team name (min length 3).",
"examples": [
"Man"
],
"minLength": 3,
"type": "string"
},
"season": {
"description": "Season year (e.g., 2021).",
"examples": [
2021
],
"maximum": 9999,
"minimum": 1000,
"type": "integer"
},
"venue": {
"description": "Unique identifier of the team's home venue.",
"examples": [
556
],
"minimum": 1,
"type": "integer"
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.000384 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
application/json