How to Build a Fantasy Cricket App in India — Developer Guide 2025
Complete guide to building a fantasy cricket app like Dream11 in India. Tech stack, fantasy points API, playing XI data, leaderboard system, and how TechWareZen helps startups launch their fantasy platform.
Fantasy Cricket — India Ka ₹50,000 Crore Market
India ka fantasy cricket market 2025 mein ₹50,000 crore se zyada ka ho chuka hai. Dream11, MPL, My11Circle jaise platforms crores of users serve karte hain. Agar aap apna fantasy cricket app develop karna chahte hain — chahe Dream11 clone ho, niche fantasy platform ho, ya corporate fantasy league — yeh guide aapke liye complete roadmap hai.
Fantasy Cricket App Ke Core Features
1. User Registration & Authentication
Mobile number OTP login, Google/Facebook social login, KYC verification (Aadhaar/PAN for real-money platforms).
2. Match Lobby
Upcoming matches list with contest details — prize pool, entry fee, team count, deadline. Data from CricLive API's schedule endpoint.
3. Team Selection
11 players select karo — 1 WK, 3-5 BAT, 1-3 AR, 3-5 BOWL. Credit system (100 credits total). Captain (2x points) aur Vice-Captain (1.5x points) selection.
4. Playing XI Integration
Sabse critical feature — confirmed playing XI match se 30-60 minute pehle dikhana. CricLive API ka /fantasy/playing-xi/{match_id} endpoint yeh data provide karta hai jaise hi official announcement hoti hai.
5. Live Fantasy Points
Match ke dauran har ball ke baad fantasy points update hone chahiye. CricLive API ka Fantasy Points API auto-calculate karta hai — runs, wickets, catches, stumpings, economy rate, strike rate sab include hain.
6. Leaderboard
Real-time contest leaderboard — user ki rank, points, prize eligibility. CricLive API ka /contest/leaderboard/{contest_id} endpoint use karo.
7. Wallet & Payments
Entry fee collection, prize distribution, withdrawal. Razorpay ya Cashfree integrate karo for Indian payments.
Tech Stack for Fantasy Cricket App
Frontend (Mobile)
- Flutter — Best choice. Single codebase, Android + iOS, fast development
- React Native — Good for JavaScript teams
Backend
- Laravel (PHP) — Robust REST API, admin panel, payment integration
- Node.js — Real-time leaderboard updates via WebSocket
- MySQL — User data, teams, contests, transactions
- Redis — Cache live fantasy points for fast leaderboard
Cricket Data API
CricLive API — provides all fantasy-specific data: playing XI, live fantasy points, player stats, match schedule. Plans from ₹999/month.
Fantasy Points API — Code Example
Fetch Live Fantasy Points (Python)
import requests
import time
API_KEY = "your_cricklive_api_key"
MATCH_ID = "ipl-2025-mi-vs-csk-42"
def get_fantasy_points():
response = requests.get(
f"https://cricketliveapi.com/api/v1/fantasy/points/{MATCH_ID}",
headers={"Authorization": f"Bearer {API_KEY}"}
)
return response.json()["players"]
def update_leaderboard():
players = get_fantasy_points()
# Calculate team scores
# Each user's team = sum of fantasy points of their 11 selected players
# Captain points x2, Vice-Captain points x1.5
for player in players:
print(f"{player['name']:25} {player['fantasy_points']:6.1f} pts "
f"({player['runs']}r {player['wickets']}w)")
# Update every 10 seconds during live match
while True:
update_leaderboard()
time.sleep(10)
Playing XI — Flutter Integration
import 'package:http/http.dart' as http;
import 'dart:convert';
class FantasyService {
static const String apiKey = 'your_cricklive_api_key';
static const String baseUrl = 'https://cricketliveapi.com/api/v1';
// Get confirmed Playing XI for team selection
static Future<Map<String, dynamic>> getPlayingXI(String matchId) async {
final response = await http.get(
Uri.parse('$baseUrl/fantasy/playing-xi/$matchId'),
headers: {'Authorization': 'Bearer $apiKey'},
);
if (response.statusCode == 200) {
return jsonDecode(response.body);
}
throw Exception('Failed to load Playing XI');
}
// Get live fantasy points for leaderboard
static Future<List<dynamic>> getFantasyPoints(String matchId) async {
final response = await http.get(
Uri.parse('$baseUrl/fantasy/points/$matchId'),
headers: {'Authorization': 'Bearer $apiKey'},
);
if (response.statusCode == 200) {
return jsonDecode(response.body)['players'];
}
throw Exception('Failed to load fantasy points');
}
}
Fantasy Points Calculation System
CricLive API automatically calculates fantasy points — aapko khud calculation engine nahi banana padega. Standard Dream11-compatible rules:
- Run scored: +1 point each
- Boundary bonus: +1 (four), +2 (six)
- Half-century bonus: +8 points
- Century bonus: +16 points
- Wicket: +25 points
- Maiden over: +8 points
- Catch: +8 points
- Stumping: +12 points
- Economy rate bonus/penalty (bowling)
- Strike rate bonus/penalty (batting)
Development Timeline & Cost
DIY Development (Using CricLive API)
- Backend API: 4-6 weeks
- Flutter app: 6-8 weeks
- Admin panel: 2-3 weeks
- Testing & launch: 2 weeks
- Total: 3-4 months
Professional Development — TechWareZen
Agar aap faster launch chahte hain aur professional quality ensure karna chahte hain, TechWareZen — Noida ki leading IT company — fantasy cricket app development mein specialist hai.
TechWareZen ke saath advantages:
- Ready-made fantasy app framework — faster development, lower cost
- CricLive API integration — already experienced with the API
- Complete solution — app + backend + admin panel + payment gateway
- Launch in 6-8 weeks — vs 3-4 months DIY
- Post-launch support — bug fixes, updates, scaling
- India-based team — same timezone, Hindi/English communication
Visit techwarezen.com to discuss your fantasy cricket app project.
CricLive API — Fantasy Data Endpoints
GET /api/v1/fantasy/matches — Fantasy-ready match list
GET /api/v1/fantasy/playing-xi/{id} — Confirmed Playing XI
GET /api/v1/fantasy/points/{id} — Live fantasy points (all players)
GET /api/v1/fantasy/player-points/{id} — Individual player points
GET /api/v1/fantasy/points-engine — Points calculation rules
GET /api/v1/contest/leaderboard/{id} — Contest leaderboard
Launch Checklist
- ✅ CricLive API key — Get free at cricketliveapi.com
- ✅ Backend server setup (Laravel + Node.js)
- ✅ Flutter app — Android + iOS
- ✅ Payment gateway (Razorpay/Cashfree)
- ✅ Admin panel for contest management
- ✅ Push notifications (Firebase FCM)
- ✅ Play Store + App Store submission
- ✅ Legal compliance (real-money gaming laws in India)