非洲COSAFA杯足球数据 API
通过一套快速、稳定、对开发者友好的 REST 与 WebSocket API,接入非洲COSAFA杯的实时比分、赛程、积分榜、阵容与赔率。15 家俱乐部、1 个赛季历史,统一的 JSON 结构。
无需信用卡
同一套数据结构支撑非洲COSAFA杯及全球 1,000+ 项赛事。
获取非洲COSAFA杯的完整数据
非洲COSAFA杯的每一场比赛、每一张积分榜、每一笔转会都通过同一套整洁的 JSON 输出——无需爬虫、无需解析 HTML、无需手动更新。选一个端点,发一次请求,即可获得能直接用于产品的结构化数据。
GET
https://data.anysport.io/v1/soccer/livescore?match_id=as_0059673e806d4a0788a0d38a6a72f500&lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/livescore',
headers={'apikey': 'YOUR_API_KEY'},
params={'match_id': 'as_0059673e806d4a0788a0d38a6a72f500', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"match_id": "as_0059673e806d4a0788a0d38a6a72f500",
"home": "ABC",
"away": "Luverdense",
"league": "Brazil Serie D",
"minute": 90,
"phase": "finished",
"phase_label": "Finished",
"home_score": 4,
"away_score": 1,
"ht_score": "2-1",
"reg_score": "4-1",
"updated_at": "2026-07-26T21:57:59Z"
}
],
"meta": {
"total": 1
}
}GET
https://data.anysport.io/v1/soccer/matches?league_id=asl_1bb9db04a0394ed68929e21d2e224da8&season=2025&lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/matches',
headers={'apikey': 'YOUR_API_KEY'},
params={'league_id': 'asl_1bb9db04a0394ed68929e21d2e224da8', 'season': '2025', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"match_id": "as_c0d19caf343f4d3e93ec17b718f71d9a",
"date": "2025-06-13",
"time": "13:00",
"status": "FT",
"league": "COSAFA Cup",
"league_id": "asl_1bb9db04a0394ed68929e21d2e224da8",
"season": "2025",
"home": {
"name": "Angola",
"team_id": "ast_0945f9c0e71f4f6abdde1819a9320aed"
},
"away": {
"name": "Madagascar",
"team_id": "ast_b832f2f45de14411a6ebd9791d3f1c6e"
},
"ht_score": "2-0",
"reg_score": "4-1",
"venue": "Free State Toyota Stadium (Bloemfontein, FS)"
},
{
"match_id": "as_ca068cdf57b14d299f04e8453e7a33e6",
"date": "2025-06-13",
"time": "16:00",
"status": "FT",
"league": "COSAFA Cup",
"league_id": "asl_1bb9db04a0394ed68929e21d2e224da8",
"season": "2025",
"home": {
"name": "South Africa",
"team_id": "ast_e4aec9c8fe00488bb961a82e111d5484"
},
"away": {
"name": "Comoros",
"team_id": "ast_fb76768979544a90b5e949f15d2a8c35"
},
"ht_score": "2-1",
"reg_score": "3-1",
"venue": "Free State Toyota Stadium (Bloemfontein, FS)"
}
],
"meta": {
"total": 2
}
}GET
https://data.anysport.io/v1/soccer/standings?league_id=asl_1bb9db04a0394ed68929e21d2e224da8&season=2025&lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/standings',
headers={'apikey': 'YOUR_API_KEY'},
params={'league_id': 'asl_1bb9db04a0394ed68929e21d2e224da8', 'season': '2025', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"position": 1,
"team_id": "ast_e4aec9c8fe00488bb961a82e111d5484",
"team": "South Africa",
"played": 3,
"wins": 1,
"draws": 1,
"losses": 1,
"goals_for": 2,
"goals_against": 1,
"goal_difference": 1,
"points": 4,
"form": "DWL"
},
{
"position": 1,
"team_id": "ast_0945f9c0e71f4f6abdde1819a9320aed",
"team": "Angola",
"played": 3,
"wins": 2,
"draws": 1,
"losses": 0,
"goals_for": 6,
"goals_against": 1,
"goal_difference": 5,
"points": 7,
"form": "WWD"
},
{
"position": 1,
"team_id": "ast_b832f2f45de14411a6ebd9791d3f1c6e",
"team": "Madagascar",
"played": 2,
"wins": 1,
"draws": 1,
"losses": 0,
"goals_for": 2,
"goals_against": 1,
"goal_difference": 1,
"points": 4,
"form": "DW"
}
],
"meta": {
"total": 15
}
}GET
https://data.anysport.io/v1/soccer/topscorers?league_id=asl_30c1e028124f46529e230d780bbe0e9e&season=2025-2026&kind=goals&lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/topscorers',
headers={'apikey': 'YOUR_API_KEY'},
params={'league_id': 'asl_30c1e028124f46529e230d780bbe0e9e', 'season': '2025-2026', 'kind': 'goals', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"rank": 1,
"player_id": "asp_0fc5b0bbf9de418abd1ea1459081e326",
"player_name": "Harry Kane",
"team_id": "ast_dd1f5dc0480040f89a8992e6659671c3",
"team_name": "Bayern Munich",
"value": 36
},
{
"rank": 2,
"player_id": "asp_251cc25a651c4aabad97ab9d83776c92",
"player_name": "Deniz Undav",
"team_id": "ast_15c6fce8ebc446a0acb0013afecc9bc2",
"team_name": "Stuttgart",
"value": 19
},
{
"rank": 3,
"player_id": "asp_aa4271c8822a498a863e5c8fa42d7f04",
"player_name": "Serhou Guirassy",
"team_id": "ast_c4a3b3c90a89431ca93d828e19f20284",
"team_name": "Dortmund",
"value": 19
}
],
"meta": {
"total": 3
}
}GET
https://data.anysport.io/v1/soccer/teams?league_id=asl_1bb9db04a0394ed68929e21d2e224da8&season=2025&lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/teams',
headers={'apikey': 'YOUR_API_KEY'},
params={'league_id': 'asl_1bb9db04a0394ed68929e21d2e224da8', 'season': '2025', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"team_id": "ast_0945f9c0e71f4f6abdde1819a9320aed",
"name": "Angola",
"country": "intl",
"venue": "Estádio 11 de Novembro"
},
{
"team_id": "ast_6335a82a90c6470798e5a2f6b5db5e4e",
"name": "Botswana",
"country": "International",
"venue": "Francistown Stadium"
},
{
"team_id": "ast_fb76768979544a90b5e949f15d2a8c35",
"name": "Comoros",
"country": "intl",
"venue": "Bingu National Stadium"
}
],
"meta": {
"total": 15
}
}GET
https://data.anysport.io/v1/soccer/odds/live?lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/odds/live',
headers={'apikey': 'YOUR_API_KEY'},
params={'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"match_id": "as_0059673e806d4a0788a0d38a6a72f500",
"home": "ABC",
"away": "Luverdense",
"league": "Brazil Serie D",
"bookmaker": "bet365",
"phase": "live",
"main_market": "fulltime_result",
"main_market_label": "Fulltime Result",
"home_odd": 1.008,
"draw_odd": 26,
"away_odd": 51,
"markets": [
{
"market_code": "home_4th_goal_in_interval",
"market_code_label": "Home 4th Goal in Interval",
"handicap": 80,
"options": [
{
"name": "Yes",
"name_label": "Yes",
"odd": 9
},
{
"name": "No",
"name_label": "No",
"odd": 1.04
}
]
},
{
"market_code": "last_corner",
"market_code_label": "Last Corner",
"options": [
{
"name": "1",
"name_label": "1",
"odd": 1.8
},
{
"name": "2",
"name_label": "2",
"odd": 1.909
}
]
},
{
"market_code": "how_many_goals_will_away_team_score",
"market_code_label": "How many goals will Away Team score?",
"options": [
{
"name": "No goal",
"name_label": "No goal",
"odd": 1.571
},
{
"name": "1",
"name_label": "1",
"odd": 1.142
},
{
"name": "2",
"name_label": "2",
"odd": 5.5
},
{
"name": "3 or more",
"name_label": "3 or more",
"odd": 17
}
]
},
{
"market_code": "asian_handicap",
"market_code_label": "Asian Handicap",
"handicap": -2.25,
"options": [
{
"name": "1",
"name_label": "1",
"odd": 2.5
},
{
"name": "2",
"name_label": "2",
"odd": 1.5
}
]
}
],
"updated_at": "2026-07-26T21:41:43Z"
}
],
"meta": {
"total": 1
}
}GET
https://data.anysport.io/v1/soccer/players?team_id=ast_e4aec9c8fe00488bb961a82e111d5484&league_id=asl_1bb9db04a0394ed68929e21d2e224da8&lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/players',
headers={'apikey': 'YOUR_API_KEY'},
params={'team_id': 'ast_e4aec9c8fe00488bb961a82e111d5484', 'league_id': 'asl_1bb9db04a0394ed68929e21d2e224da8', 'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"player_id": "asp_aa577c9f11cc4335892c8c45ea381e87",
"name": "Jayden Adams",
"position": "M",
"number": "23",
"age": "25",
"team_id": "ast_e4aec9c8fe00488bb961a82e111d5484",
"team_name": "South Africa"
},
{
"player_id": "asp_3f73f3ed25bd4f8ba0bb46d33a6e6c9e",
"name": "Ricardo Goss",
"position": "G",
"number": "22",
"age": "32",
"team_id": "ast_e4aec9c8fe00488bb961a82e111d5484",
"team_name": "South Africa",
"season_stats": {
"league_id": "asl_1bb9db04a0394ed68929e21d2e224da8"
}
},
{
"player_id": "asp_ec6162bcc41444c49c6a5a734cc2e81f",
"name": "Thapelo Maseko",
"position": "A",
"number": "12",
"age": "22",
"team_id": "ast_e4aec9c8fe00488bb961a82e111d5484",
"team_name": "South Africa",
"season_stats": {
"league_id": "asl_1bb9db04a0394ed68929e21d2e224da8",
"appearances": 3,
"minutes": 245,
"goals": 1,
"assists": 0,
"yellow_cards": 0,
"red_cards": 0,
"rating": 7.1
}
}
],
"meta": {
"total": 3
}
}GET
https://data.anysport.io/v1/soccer/odds/prematch?lang=enimport requests
resp = requests.get(
'https://data.anysport.io/v1/soccer/odds/prematch',
headers={'apikey': 'YOUR_API_KEY'},
params={'lang': 'en'}
)
print(resp.json()){
"success": true,
"data": [
{
"match_id": "as_d21c97e73a5e45c7b87cb82e28c9f986",
"home": "Hafnarfjordur",
"away": "KR Reykjavik",
"league": "Iceland: Besta Deild Karla",
"bookmaker": "bet365",
"phase": "prematch",
"main_market": "match_winner",
"main_market_label": "Match Winner",
"home_odd": 3.9,
"draw_odd": 4.5,
"away_odd": 1.57,
"markets": [
{
"market_code": "match_winner",
"market_code_label": "Match Winner",
"options": [
{
"name": "Home",
"name_label": "Home",
"odd": 3.9
},
{
"name": "Draw",
"name_label": "Draw",
"odd": 4.5
},
{
"name": "Away",
"name_label": "Away",
"odd": 1.57
}
]
},
{
"market_code": "home_away",
"market_code_label": "Home/Away",
"options": [
{
"name": "Home",
"name_label": "Home",
"odd": 3.4
},
{
"name": "Away",
"name_label": "Away",
"odd": 1.3
}
]
},
{
"market_code": "2nd_half_winner",
"market_code_label": "2nd Half Winner",
"options": [
{
"name": "Home",
"name_label": "Home",
"odd": 3.6
},
{
"name": "Draw",
"name_label": "Draw",
"odd": 3.4
},
{
"name": "Away",
"name_label": "Away",
"odd": 1.83
}
]
},
{
"market_code": "asian_handicap",
"market_code_label": "Asian Handicap",
"options": [
{
"name": "Home -1",
"name_label": "Home -1",
"odd": 7
},
{
"name": "Away +1",
"name_label": "Away +1",
"odd": 1.1
},
{
"name": "Home -0.75",
"name_label": "Home -0.75",
"odd": 5
},
{
"name": "Away +0.75",
"name_label": "Away +0.75",
"odd": 1.17
},
{
"name": "Home -0.5",
"name_label": "Home -0.5",
"odd": 4
},
{
"name": "Away +0.5",
"name_label": "Away +0.5",
"odd": 1.23
},
{
"name": "Home -0.25",
"name_label": "Home -0.25",
"odd": 3.7
},
{
"name": "Away +0.25",
"name_label": "Away +0.25",
"odd": 1.26
},
{
"name": "Home +0",
"name_label": "Home +0",
"odd": 3.45
},
{
"name": "Away 0",
"name_label": "Away 0",
"odd": 1.3
},
{
"name": "Home +0.25",
"name_label": "Home +0.25",
"odd": 2.68
},
{
"name": "Away -0.25",
"name_label": "Away -0.25",
"odd": 1.45
},
{
"name": "Home +0.5",
"name_label": "Home +0.5",
"odd": 2.3
},
{
"name": "Away -0.5",
"name_label": "Away -0.5",
"odd": 1.6
},
{
"name": "Home +0.75",
"name_label": "Home +0.75",
"odd": 2.08
},
{
"name": "Away -0.75",
"name_label": "Away -0.75",
"odd": 1.72
},
{
"name": "Home +1",
"name_label": "Home +1",
"odd": 1.9
},
{
"name": "Away -1",
"name_label": "Away -1",
"odd": 1.9
},
{
"name": "Home +2",
"name_label": "Home +2",
"odd": 1.35
},
{
"name": "Away -2",
"name_label": "Away -2",
"odd": 3.1
},
{
"name": "Home +3",
"name_label": "Home +3",
"odd": 1.12
},
{
"name": "Away -3",
"name_label": "Away -3",
"odd": 6
},
{
"name": "Home +1.25",
"name_label": "Home +1.25",
"odd": 1.72
},
{
"name": "Away -1.25",
"name_label": "Away -1.25",
"odd": 2.08
},
{
"name": "Home +1.5",
"name_label": "Home +1.5",
"odd": 1.6
},
{
"name": "Away -1.5",
"name_label": "Away -1.5",
"odd": 2.3
},
{
"name": "Home +1.75",
"name_label": "Home +1.75",
"odd": 1.48
},
{
"name": "Away -1.75",
"name_label": "Away -1.75",
"odd": 2.6
},
{
"name": "Home +2.25",
"name_label": "Home +2.25",
"odd": 1.3
},
{
"name": "Away -2.25",
"name_label": "Away -2.25",
"odd": 3.45
},
{
"name": "Home +2.5",
"name_label": "Home +2.5",
"odd": 1.26
},
{
"name": "Away -2.5",
"name_label": "Away -2.5",
"odd": 3.7
},
{
"name": "Home +2.75",
"name_label": "Home +2.75",
"odd": 1.19
},
{
"name": "Away -2.75",
"name_label": "Away -2.75",
"odd": 4.5
}
]
}
],
"updated_at": "2026-07-28T14:20:04Z"
}
],
"meta": {
"total": 1
}
}一次请求,获取完整的非洲COSAFA杯积分榜
这不是截图。下面的积分榜由一次 GET /standings 请求实时返回——正是你的应用收到的响应。名次、近况、净胜球自动更新,你无需碰任何表格。
| 排名 | 球队 | 场次 | 胜/平/负 | 进球 / 失球 | 净胜球 | 近况 |
|---|---|---|---|---|---|---|
| 1 | 南非 | 3 | 1/1/1 | 2/1 | 1 | DWL |
| 1 | 安哥拉 | 3 | 2/1/0 | 6/1 | 5 | WWD |
| 1 | 马达加斯加 | 2 | 1/1/0 | 2/1 | 1 | DW |
| 1 | 科摩罗 | 2 | 1/1/0 | 1/0 | 1 | DW |
| 2 | 津巴布韦 | 3 | 1/1/1 | 3/3 | 0 | WLD |
| 2 | 纳米比亚 | 3 | 1/2/0 | 4/1 | 3 | WDD |
| 2 | 坦桑尼亚 | 2 | 1/0/1 | 2/2 | 0 | WL |
| 2 | 博茨瓦纳 | 2 | 0/2/0 | 3/3 | 0 | DD |
| 3 | 莫桑比克 | 3 | 1/1/1 | 2/3 | -1 | LDW |
| 3 | 莱索托 | 3 | 1/0/2 | 1/7 | -6 | LLW |
| 3 | 斯威士兰 | 2 | 0/1/1 | 2/3 | -1 | LD |
| 3 | 赞比亚 | 2 | 0/1/1 | 3/4 | -1 | DL |
| 4 | 毛里求斯 | 3 | 0/3/0 | 0/0 | 0 | DDD |
| 4 | 马拉维 | 3 | 0/1/2 | 0/2 | -2 | LDL |
| 4 | 摩洛哥 | 0 | 0/0/0 | 0/0 | 0 |
数据来自 AnySport 联赛积分榜端点。更新日期:2026/10/18
非洲COSAFA杯 2025 赛季数据一览
下面每个数字都由 API 返回的原始比赛数据计算得出,而非人工录入。你可以基于同样的数据搭建看板、模型或编辑组件。
2已完成比赛
9总进球
4.5场均进球
2主胜
0平局
0客胜
100%主胜率
3最大分差
5单场最多进球
南非领头羊
最近更新:2026/10/18
常见问题
你们的 API 覆盖多少非洲COSAFA杯球队和球员?
我们的非洲COSAFA杯 API 覆盖 15 支球队,含完整阵容与球员资料,均可通过 /teams 与 /players 端点获取。
你们提供多少历史数据?
1 个赛季的积分榜,回溯至 2025,每一张最终积分榜、冠军与赛季均已归档、可按赛季查询。
你们的 API 提供哪些实时足球数据?
实时比分、滚球赔率与比赛事件通过 REST 与 WebSocket 推送,可用同一套结构驱动实时组件与滚球产品。
免费试用是否包含非洲COSAFA杯的比赛数据?
包含。免费试用可访问非洲COSAFA杯的赛程、赛果、积分榜与球员数据,无需信用卡。