Football Pro

부분 유료
Verified
분류별 SportMonks-com | 업데이트됨 20 दिन पहले | Sports
인기

9.8 / 10

지연 시간

848ms

서비스 수준

100%

Health Check

N/A

모든 자습서로 돌아가기 (4)

How-To guide: Livescores & Fixtures

[Sportmonks’ livescore API](https://www.sportmonks.com/football-api/ provides you with the fastest and most reliable data possible, allowing you to create your dream livescore website. Our APIs are so fast that the provided data will show events that didn’t even happen on live television yet!

In this how-to guide, we’ll walk you through the steps of making standard and advanced livescore requests and what tools you need to build a livescore website.

Livescores

In this part we’ll explain what livescores are, how people use them and most importantly, how you can work with them.

What are Livescores?

As its name suggests, livescores is the act of displaying real-time sports data to its audience. For example, many livescore websites allow you to see the match’s minute, the people who scored a goal, received a card, etc.

Now, you might wonder how you can get this data yourself. Well, it’s actually quite easy. You can simply use one of our Livescores endpoints!

For this example we use the endpoint: “Fixtures Currently Inplay”.

url: ‘https://football-pro.p.rapidapi.com/api/v2.0/livescores/now’,
GET /api/v2.0/livescores/now?tz=Europe%2FAmsterdam&leagues=8&include=localTeam%2CvisitorTeam%2Cevents

Part of the response:
id:11997804
league_id:1457
season_id:16836
stage_id:77446574
round_id:null
group_id:null
aggregate_id:null
venue_id:10028
referee_id:17003
localteam_id:3608
visitorteam_id:3432
winner_team_id:null

Scores part of the response:
localteam_score:2
visitorteam_score:2
localteam_pen_score:null
visitorteam_pen_score:null
ht_score:"2-2"
ft_score:"2-2"
et_score:"0-0"
ps_score:“5-4”