Skip to main content
SportXAPI works out of the box with any HTTP client in any language. Below are copy-paste examples for popular runtimes.

Node.js / TypeScript

Using native fetch (Node.js 18+):

Python

Using requests:

Server-Sent Events (SSE) Stream

For realtime match score feeds without polling, use the streaming endpoint /cricket/api/v2/match/:matchId/stream: