view

View championship with its data 🟨 🟦 🟩

GET https://api.soccerfootball.info/v1/championships/view/?i=ID

This endpoint returns with champiosnhip data and tables The parameter l must be a language code getted from languages/list endpoint. Some elements such as championship and team names can be translated

Query Parameters

Name
Type
Description

t

string

Your API Token DIRECT API ONLY

i

string

Championship ID

l

string

Language code (default value is "en_US")

Headers

Name
Type
Description

X-RapidAPI-Key

string

Your API token RAPIDAPI ONLY

X-RapidAPI-Host

string

soccerfootballinfo.rapidapi.com RAPIDAPI ONLY

{
   "status":200,
   "errors":[],
   "pagination":[],
   "result":[
      {
         "id":"5fda5fab11fbd288",
         "name":"Italy Serie A",
         "country":"IT",
         "has_image":false,
         "important": true, // important championship has extended stats
         "seasons":[
            {
               "name":"Serie A 20/21",
               "from":"2020-09-19",
               "to":"2021-05-23",
               "groups":[
                  {
                     "name":"Serie A",
                     "table":[
                        {
                           "team":{
                              "id":"5fda5fcad92584cd",
                              "name":"AC Milan"
                           },
                           "position":1,
                           "win":11,
                           "draw":4,
                           "loss":1,
                           "points":37,
                           "goals_scored":35,
                           "goals_conceded":19,
                           "note":"Champions League"
                        },
                        ...
                     ]
                  }
               ]
            }
         ]
      }
   ]
}

Example of code for direct API

Example of code for RapidAPI

More example of code on rapidAPI

Last updated

Was this helpful?