How-to build a schedule page
Step 1: Assemble the tools
Step 2: Request the rounds of the English Premier League
https://soccer.sportmonks.com/api/v2.0/seasons/17420?api_token={API_TOKEN}&include=rounds{
"data": {
"id": 17420,
"name": "2020/2021",
"league_id": 8,
"is_current_season": true,
"current_round_id": 201970,
"current_stage_id": 77448322,
"rounds": {
"data": [
{
"id": 201963,
"name": 1,
"league_id": 8,
"season_id": 17420,
"stage_id": 77448322,
"start": "2020-09-12",
"end": "2020-09-14"
},
{
"id": 201964,
"name": 2,
"league_id": 8,
"season_id": 17420,
"stage_id": 77448322,
"start": "2020-09-19",
"end": "2020-09-21"
},
{
"id": 201965,
"name": 3,
"league_id": 8,
"season_id": 17420,
"stage_id": 77448322,
"start": "2020-09-26",
"end": "2020-09-28"
},
{
"id": 201966,
"name": 4,
"league_id": 8,
"season_id": 17420,
"stage_id": 77448322,
"start": "2020-10-03",
"end": "2020-10-04"
},
{
"id": 201967,
"name": 5,
"league_id": 8,
"season_id": 17420,
"stage_id": 77448322,
"start": "2020-10-17",
"end": "2020-10-19"
},
{
"id": 201968,
"name": 6,
"league_id": 8,
"season_id": 17420,
"stage_id": 77448322,
"start": "2020-10-23",
"end": "2020-10-26"
},
{
"id": 201969,
"name": 7,
"league_id": 8,
"season_id": 17420,
"stage_id": 77448322,
"start": "2020-10-30",
"end": "2020-11-02"
},
{
"id": 201970,
"name": 8,
"league_id": 8,
"season_id": 17420,
"stage_id": 77448322,
"start": "2020-11-06",
"end": "2020-11-08"
},
{
"id": 201971,
"name": 9,
"league_id": 8,
"season_id": 17420,
"stage_id": 77448322,
"start": "2020-11-21",
"end": "2020-11-23"
},
{
"id": 201972,
"name": 10,
"league_id": 8,
"season_id": 17420,
"stage_id": 77448322,
"start": "2020-11-27",
"end": "2020-11-30"
https://soccer.sportmonks.com/api/v2.0/seasons/17420?api_token={API_TOKEN}&include=rounds.fixtures{
"data": {
"id": 17420,
"name": "2020/2021",
"league_id": 8,
"is_current_season": true,
"current_round_id": 201970,
"current_stage_id": 77448322,
"rounds": {
"data": [
{
"id": 201963,
"name": 1,
"league_id": 8,
"season_id": 17420,
"stage_id": 77448322,
"start": "2020-09-12",
"end": "2020-09-14",
"fixtures": {
"data": [
{
"id": 16924595,
"league_id": 8,
"season_id": 17420,
"stage_id": 77448322,
"round_id": 201963,
"group_id": null,
"aggregate_id": null,
"venue_id": 200,
"referee_id": null,
"localteam_id": 27,
"visitorteam_id": 14,
"winner_team_id": null,
"weather_report": {
"code": "rain",
"type": "light rain",
"icon": "https://cdn.sportmonks.com/images/weather/10n.png",
"temperature": {
"temp": 54.34,
"unit": "fahrenheit"
},
"temperature_celcius": {
"temp": 12.4,
"unit": "celcius"
},
"clouds": "100%",
"humidity": "95%",
"pressure": 1012,
"wind": {
"speed": "3 m/s",
"degree": 257
},
"coordinates": {
"lat": 53.8,
"lon": -2.23
},
"updated_at": "2020-09-11T21:45:05.220485Z"
},
"commentaries": false,
"attendance": null,
"pitch": null,
"details": null,
"neutral_venue": false,
"winning_odds_calculated": false,
"formations": {
"localteam_formation": null,
"visitorteam_formation": null
},
"scores": {
"localteam_score": 0,
"visitorteam_score": 0,
"localteam_pen_score": null,
"visitorteam_pen_score": null,
"ht_score": null,
"ft_score": null,
"et_score": null,
"ps_score": null
},
"time": {
"status": "POSTP",
"starting_at": {
"date_time": "2020-09-12 00:00:00",
"date": "2020-09-12",
"time": "00:00:00",
"timestamp": 1599868800,
"timezone": "UTC"
},
"minute": null,
"second": null,
"added_time": null,
"extra_minute": null,
"injury_time": null
},
"coaches": {
"localteam_coach_id": 455461,
"visitorteam_coach_id": 524307
},
"standings": {
"localteam_position": 4,
"visitorteam_position": 13
},
"assistants": {
"first_assistant_id": null,
"second_assistant_id": null,
"fourth_official_id": null
},
"leg": "1/1",
"colors": null,
"deleted": false
},https://soccer.sportmonks.com/api/v2.0/seasons/17420?api_token={API_TOKEN}&include=stages.rounds.fixtures.localTeam,stages.rounds.fixtures.visitorTeamStep 3: Request the Champions League stages
Requesting the fixtures
Knock-out stages
Last updated
Was this helpful?