NAV
bash javascript

Welome

Welcome to the API documentation for SportsFixturesApi.com.

V1 Methods

Display list of sports.

Example request:

curl -X GET "https://api.sportfixturesapi.com/v1/sports" \
-H "Accept: application/json" \
-H "Authorization: Bearer ***********************************"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://api.sportfixturesapi.com/v1/sports",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "Authorization": "Bearer ***********************************"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "id": 1,
        "title": "Football"
    },
    {
        "id": 2,
        "title": "Tennis"
    },
    {
        "id": 3,
        "title": "Formula1"
    },
    {
        "id": 4,
        "title": "Rugby"
    }
]

HTTP Request

GET v1/sports

HEAD v1/sports

Display specific sport.

Example request:

curl -X GET "https://api.sportfixturesapi.com/v1/sports/{sport}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ***********************************"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://api.sportfixturesapi.com/v1/sports/{sport}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "Authorization": "Bearer ***********************************"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "id": 1,
    "title": "Football"
}

HTTP Request

GET v1/sports/{sport}

HEAD v1/sports/{sport}

Display list of tournaments for sport

Example request:

curl -X GET "https://api.sportfixturesapi.com/v1/sports/{sport}/tournaments" \
-H "Accept: application/json" \
-H "Authorization: Bearer ***********************************"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://api.sportfixturesapi.com/v1/sports/{sport}/tournaments",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "Authorization": "Bearer ***********************************"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "id": 1,
        "title": "English Premier League",
        "year": "2016",
        "sports_id": 1
    }
]

HTTP Request

GET v1/sports/{sport}/tournaments

HEAD v1/sports/{sport}/tournaments

Display list of tournaments.

Example request:

curl -X GET "https://api.sportfixturesapi.com/v1/tournaments" \
-H "Accept: application/json" \
-H "Authorization: Bearer ***********************************"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://api.sportfixturesapi.com/v1/tournaments",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "Authorization": "Bearer ***********************************"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "id": 1,
        "title": "English Premier League",
        "year": "2016",
        "sports_id": 1
    },
    {
        "id": 2,
        "title": "Aviva Premiership",
        "year": "2017",
        "sports_id": 4
    },
    {
        "id": 3,
        "title": "Wimbledon",
        "year": "2017",
        "sports_id": 2
    },
    {
        "id": 4,
        "title": "Grand prix",
        "year": "2017",
        "sports_id": 3
    }
]

HTTP Request

GET v1/tournaments

HEAD v1/tournaments

Display specific tournament.

Example request:

curl -X GET "https://api.sportfixturesapi.com/v1/tournaments/{tournament}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ***********************************"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://api.sportfixturesapi.com/v1/tournaments/{tournament}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "Authorization": "Bearer ***********************************"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "id": 1,
    "title": "English Premier League",
    "year": "2016",
    "sports_id": 1
}

HTTP Request

GET v1/tournaments/{tournament}

HEAD v1/tournaments/{tournament}

Display list of events in a tournament.

Example request:

curl -X GET "https://api.sportfixturesapi.com/v1/tournaments/{tournament}/events" \
-H "Accept: application/json" \
-H "Authorization: Bearer ***********************************"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://api.sportfixturesapi.com/v1/tournaments/{tournament}/events",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "Authorization": "Bearer ***********************************"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

[
    {
        "id": 8,
        "title": "molestiae",
        "team1": "Stantonshire",
        "team2": "Olsonview",
        "stadium": "Port Thalia Stadium",
        "date_start": "2017-01-30 17:55:01",
        "date_end": null,
        "tournament_id": 1
    }
]

HTTP Request

GET v1/tournaments/{tournament}/events

HEAD v1/tournaments/{tournament}/events

Display specific event.

Example request:

curl -X GET "https://api.sportfixturesapi.com/v1/events/{event}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ***********************************"
var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://api.sportfixturesapi.com/v1/events/{event}",
    "method": "GET",
    "headers": {
        "accept": "application/json",
        "Authorization": "Bearer ***********************************"
    }
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Example response:

{
    "id": 1,
    "title": "animi",
    "team1": "Altenwerthton",
    "team2": "Grahamport",
    "stadium": "Donaldborough Stadium",
    "date_start": "2017-11-15 13:06:09",
    "date_end": null,
    "tournament_id": 2
}

HTTP Request

GET v1/events/{event}

HEAD v1/events/{event}