API-FOOTBALL

부분 유료
Verified
분류별 API-SPORTS | 업데이트됨 2달 전 | Sports
인기

9.9 / 10

지연 시간

400ms

서비스 수준

100%

모든 토론으로 돌아가기

Live Score

Hey,

How can I get current live matches score data?

Thanks

avatar
api-sports commented 2달 전

It’s an array of result :

{
get: "fixtures"
parameters: {
live: “all”
}
errors: [
]
results: 35
paging: {
current: 1
total: 1
}
response: [
{
fixture: {
id: 831085
referee: "Mohammad Usman Aslam, Norway"
timezone: "UTC"
date: "2022-06-25T16:00:00+00:00"
timestamp: 1656172800
periods: {
first: 1656172800
second: null
}
venue: {
id: 1190
name: "Lerkendal Stadion"
city: “Trondheim”
}
status: {
long: "First Half"
short: "1H"
elapsed: 45
}
}
league: {
id: 103
name: "Eliteserien"
country: "Norway"
logo: "https://media.api-sports.io/football/leagues/103.png"
flag: "https://media.api-sports.io/flags/no.svg"
season: 2022
round: “Regular Season - 11”
}
teams: {
home: {
id: 331
name: "Rosenborg"
logo: "https://media.api-sports.io/football/teams/331.png"
winner: true
}
away: {
id: 320
name: "Kristiansund BK"
logo: "https://media.api-sports.io/football/teams/320.png"
winner: false
}
}
goals: {
home: 2
away: 1
}
score: {
halftime: {
home: 2
away: 1
}
fulltime: {
home: null
away: null
}
extratime: {
home: null
away: null
}
penalty: {
home: null
away: null
}
}
events: [
{
time: {
elapsed: 4
extra: null
}
team: {
id: 331
name: "Rosenborg"
logo: “https://media.api-sports.io/football/teams/331.png
}
player: {
id: 151471
name: “O. Saeter”
}
assist: {
id: 15837
name: “C. Holse”
}
type: "Goal"
detail: "Normal Goal"
comments: null
}
{
time: {
elapsed: 19
extra: null
}
team: {
id: 320
name: "Kristiansund BK"
logo: “https://media.api-sports.io/football/teams/320.png
}
player: {
id: 39164
name: “A. Diop”
}
assist: {
id: 39173
name: “B. Bye”
}
type: "Goal"
detail: "Normal Goal"
comments: null
}
{
time: {
elapsed: 25
extra: null
}
team: {
id: 320
name: "Kristiansund BK"
logo: “https://media.api-sports.io/football/teams/320.png
}
player: {
id: 2011
name: “A. Askar”
}
assist: {
id: null
name: null
}
type: "Card"
detail: "Yellow Card"
comments: null
}
{
time: {
elapsed: 29
extra: null
}
team: {
id: 331
name: "Rosenborg"
logo: “https://media.api-sports.io/football/teams/331.png
}
player: {
id: 39089
name: “V. Hoff”
}
assist: {
id: 38752
name: “V. Jensen”
}
type: "subst"
detail: "Substitution 1"
comments: null
}
{
time: {
elapsed: 37
extra: null
}
team: {
id: 331
name: "Rosenborg"
logo: “https://media.api-sports.io/football/teams/331.png
}
player: {
id: 151471
name: “O. Saeter”
}
assist: {
id: 1168
name: “A. Hansen”
}
type: "Goal"
detail: "Normal Goal"
comments: null
}
]
}
{
fixture: {
id: 831574
referee: null
timezone: "UTC"
date: "2022-06-25T16:00:00+00:00"
timestamp: 1656172800
periods: {
first: 1656172800
second: null
}
venue: {
id: 2301
name: "Batumi Arena"
city: “Batumi”
}
status: {
long: "First Half"
short: "1H"
elapsed: 43
}
}
league: {
id: 327
name: "Erovnuli Liga"
country: "Georgia"
logo: "https://media.api-sports.io/football/leagues/327.png"
flag: "https://media.api-sports.io/flags/ge.svg"
season: 2022
round: “Regular Season - 28”
}
teams: {
home: {
id: 705
name: "Dinamo Batumi"
logo: "https://media.api-sports.io/football/teams/705.png"
winner: null
}
away: {
id: 3503
name: "Sioni"
logo: "https://media.api-sports.io/football/teams/3503.png"
winner: null
}
}
goals: {
home: 0
away: 0
}
score: {
halftime: {
home: 0
away: 0
}
fulltime: {
home: null
away: null
}
extratime: {
home: null
away: null
}
penalty: {
home: null
away: null
}
}
events: [
]
}
{
fixture: {
id: 831575
referee: null
timezone: "UTC"
date: "2022-06-25T16:00:00+00:00"
timestamp: 1656172800
periods: {
first: 1656172800
second: null
}
venue: {
id: 2301
name: "Stadioni Tengiz Burjanadze"
city: “Gori”
}
status: {
long: "First Half"
short: "1H"
elapsed: 45

avatar
azizul-UA7PPTYMp commented 2달 전

Hi,

Thanks for your reply.
If same time has multiple live matches how it looks likes in data response.

Thanks

avatar
api-sports commented 2달 전

Hi,

With the endpoint “fixtures”, you can call this endpoint like this “fixtures?live=all” to get all games in progress.

==> https://www.api-football.com/documentation-v3#tag/Fixtures/operation/get-fixtures

Best

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입
등급: 4.1 - 투표: 15