Cricwix
← Back to blog
Tutorial·5 min read·June 10, 2026

Getting Started with Cricwix API in 5 Minutes

A step-by-step guide to fetching live cricket scores, player stats, and fixtures using the Cricwix REST API — no cricket scraping required.

By Cricwix Team

Building a cricket app used to mean juggling scrapers, broken HTML parsers, and 3am alerts when a scorecard layout changed mid-series. Cricwix was built to end that. This guide gets you from zero to a live API response in under five minutes.

Step 1: Get Your Free API Key

Sign up at cricwix.com and navigate to your dashboard. Under Tokens, click Generate New Key. Your free plan gives you 100 requests per day — enough to prototype a full app without spending a rupee.

Step 2: Make Your First Request

Every request needs your API key in the x-api-key header. Here is a curl example fetching live fixtures:

bash
curl -X GET "https://api.cricwix.com/ext/v1/fixtures?status=live" \
  -H "x-api-key: YOUR_API_KEY"

The response comes back as clean JSON — no XML, no namespacing, no surprises.

Step 3: Explore the Core Endpoints

The Cricwix API is organised around six core resources:

  • /fixtures — Upcoming, live, and completed matches
  • /scores — Ball-by-ball live scores and scorecards
  • /players — Player profiles, career stats, and recent form
  • /teams — Team rosters and head-to-head records
  • /series — Tournament and series metadata
  • /rankings — Live ICC rankings across all formats

Step 4: Integrate in JavaScript

javascript
const res = await fetch(
  'https://api.cricwix.com/ext/v1/fixtures?status=live',
  { headers: { 'x-api-key': process.env.CRICWIX_API_KEY } }
);
const { data } = await res.json();
console.log(data); // array of live matches

Step 5: Handle Errors Gracefully

Cricwix uses standard HTTP status codes. A 429 means you have hit your rate limit. A 401 means your key is missing or invalid. All error responses include a machine-readable code field so you can handle them without parsing message strings.

💡

Tip: Cache fixture lists for 30 seconds on your server to reduce your daily call count without impacting user experience.

What to Build Next

With the basics working, you can build a live scorecard widget in an afternoon, a Telegram bot that pings wicket alerts, or a full fantasy cricket scoring engine. The API documentation covers pagination, filtering by league, and streaming ball-by-ball updates.

Cricket data should be the easy part. With Cricwix, it finally is.

// ready to build?

Start free today

100 free API calls per day. No credit card required.

Get your API key →