WebSocket Token

⚠️
MEGA plan only

MEGA required. FREE, PRO and ULTRA receive HTTP 403 and no token.

GET/tennis/v2/extend/api/ws-token
Returns a Socket.IO auth token for Mega plan subscribers. Use this token (not the RapidAPI key) when connecting to https://live.matchstat.com. Full connect examples are on the Socket.IO page.
Example Request: CURL
curl --request GET \
	--url 'https://tennis-api-atp-wta-itf.p.rapidapi.com/tennis/v2/extend/api/ws-token' \
	--header 'X-RapidAPI-Host: tennis-api-atp-wta-itf.p.rapidapi.com' \
	--header 'X-RapidAPI-Key: YOUR_RAPIDAPI_KEY'

Response Properties

FieldTypeDescription
successbooleantrue when a token was issued.
tokenstringJWT for the Socket.IO handshake (auth.token). Valid for 24 hours. When the socket reports TOKEN_EXPIRED, call this endpoint again and reconnect with the new token.