ws

List of all teams with WebSocket ID mapping 🟩

GET https://api.soccerfootball.info/v1/teams/ws/

This endpoint returns a paginated list of teams with the dual ID mapping system for the MAIN_REALTIME WebSocket channel. Each field (id, name, country) is an object containing two values: ws_realtime: the value used exclusively in MAIN_REALTIME channel messages rest_releated: the value from the standard REST API and all other WebSocket channels (MAIN, STATS, ODDS, STATS_REALTIME, ODDS_REALTIME) This mapping allows you to match teams between MAIN_REALTIME events and the rest of the API. You can search by name or look up a specific team by either ID type. The parameters find_id and find_ws_id are mutually exclusive. Format CSV is in MS excel compatible mode (double click open without import!) The latest data are on the last page.

circle-exclamation

Query Parameters

Name
Type
Description

t

string

Your API Token DIRECT API ONLY

f

string

Format response can be "json" or "csv" (default is "json")

p

string

Page number (default value is 1)

search_ws

string

Search by WebSocket team name (partial match)

search

string

Search by REST team name (partial match)

find_id

string

Find by REST team ID (exact match)

find_ws_id

string

Find by WebSocket team ID (exact match)

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":[
      {
         "page":1,// current page
         "per_page":100, // items per page
         "items":1250 // total items number
      }
   ],
   "result":[
      {
         "id":{
            "ws_realtime":"a1b2c3d4e5f6a7b8", // WebSocket team ID
            "rest_releated":"5fda5faf06aa325e" // REST API team ID
         },
         "name":{
            "ws_realtime":"FC Internazionale Milano", // name from WebSocket data source
            "rest_releated":"Inter Milan" // name from REST API
         },
         "country":{
            "ws_realtime":null, // country from WebSocket data source (may be null)
            "rest_releated":"IT" // country from REST API
         }
      },
      ...
   ]
}

Example of code for direct API

Example of code for RapidAPI

More example of code on rapidAPIarrow-up-right

Last updated