new
Create WebSocket Token 🟨 🟦 🟩
GET https://api.soccerfootball.info/v1/ws/new/
Generate a new WebSocket token or return an existing active token.
Query Parameters
Name
Type
Description
t
string
Your API Token DIRECT API TOKEN
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": [
{
"is_new": true,
"token": "abc123xyz789...", // The WebSocket authentication token
"server": "wss://ws-eu.soccerfootball.info/?token=abc123xyz789...", // Full WebSocket connection URL with token
"max_connections": 2, // Maximum simultaneous client connections allowed
"max_subscribe_per_connection" : 2,// Maximum subscribe allowed per connection
"allowed_channels": ["MAIN"], // List of channels available for subscription MAIN, STATS, ODDS, STATS_REALTIME, ODDS_REALTIME
"expires_at": "2024-01-15 14:30:00" // Token expiration timestamp (UTC)
}
]
}Example of code for direct API
Example of code for RapidAPI
More example of code on rapidAPI
Last updated
