Skip to main content
All production cricket API requests authenticate using a secret API key passed in the X-API-Key HTTP header.

Request Header

Host-Tier Enforcement

SportSXAPI strictly separates free evaluation traffic from paid production traffic at the gateway middleware layer (X-SportXAPI-Tier-Host):
  • https://api.sportsxapi.com accepts Free plan keys (capped at 3,000 requests/month) and X-Demo-Mode: 1 requests.
  • https://apiv2.sportsxapi.com accepts Paid plan keys (Starter, Pro, Business, Ultra, Custom).
Sending a key to the wrong host returns 403 Forbidden:
Sending requests through any unconfigured hostname returns 421 Misdirected Request:

Interactive Demo Mode (X-Demo-Mode: 1)

To evaluate endpoints without an API key on https://api.sportsxapi.com, send X-Demo-Mode: 1:
  • Limited to 5 requests per endpoint per client IP.
  • Returns tracking headers X-Demo-Used and X-Demo-Remaining.
  • Does not cover /cricket/api/v2/match/{matchId}/stream (paid plans only; returns 429).

Security Guidelines

Never expose your X-API-Key inside frontend browser JavaScript, mobile app binaries without a proxy, or public repositories.
  1. Always proxy from your backend: Keep keys inside server environment variables such as process.env.SPORTSXAPI_KEY.
  2. Watch for failed auth throttles: Sending more than 60 missing or invalid API key attempts within 60 seconds from the same IP triggers 429 Too many authentication attempts.
  3. Expired paid plans: When a paid subscription expires, its effective entitlement falls back to FREE (api.sportsxapi.com Free tier quota limits apply) until renewed in the Dashboard.
  4. Rotate leaked keys immediately: Revoke compromised keys from your dashboard or request rotation via Contact Support.
Last modified on November 29, 2026