Skip to content

GradleD/cricket-api

Repository files navigation

Free Cricket API 🏏

dependencies Status Github Workflow

Node.js Version - Get Live Cricket Score data from Cricbuzz.com

This is an unofficial API and not Linked or Partnered with Any Brands/Company.

How it Works? 🤔

Build using Node.js and cheerio.js - using cheerio for Scrape the data and Converted in JSON API with the Help of Express Server.

Everything is scraped live and shown to end users in realtime.

API URL

  • Live Match Data - https://criapi.vercel.app/live
  • Get Live data from the URL - https://criapi.vercel.app/score?url=<Live Match URL>

Requirements 📑

  • Server With Latest LTS Node.JS Support and Nginx
  • HTTPS for Secure SSL Connection

(OR)

  • use Vercel or Heroku Free Cloud Hosting

Installation and Development 📥

  • Download the Clone the Repo
git clone https://github.com/mskian/cricket-api-nodejs.git
cd cricket-api-nodejs
  • install Node Modules via yarn
yarn
  • Test Locally
yarn dev
  • Production
yarn start

Usage 🍟

  • Get the Live Match Score URL from - https://www.cricbuzz.com/cricket-match/live-scores
  • Enter them Directly or replace www with m

Example 📋

http://localhost:3000/score?url=https://www.cricbuzz.com/live-cricket-scores/30524/53rd-match-indian-premier-league-2020

(OR)

  • Update the Match URL on app.json File
http://localhost:3000/live

Free Hosting 😍

  • Deploy on Vercel

Deploy with Vercel

Contributing 🙌

Your PR's are Welcome

Disclaimer 🗃

  • This is not an Offical API from Cricbuzz - it's an Unofficial API
  • This is for Education Purpose only - use at your own risk on Production Site

All Credits Goes to https://www.cricbuzz.com/

My other Projects 🤓

# Project Name Description
01 Cricket API - PHP Version Live Cricket Score API PHP Version - Scrape using PHP preg_match and preg_math_all
02 Live Cricket Score Static Site A Simple Scrape Method - Fetch the Live Cricket Score from espncricinfo.com using Nodejs and Cheerio.js
03 IPL Special Cricket API for Get the Live IPL Cricket Score
04 Live IPL Score Update on Telegram Get Live IPL cricket Score on Telegram
05 Live Cricket Score Wordpress Plugin (JS Version) Get Live Cricket Score on Wordpress site call API using Javascript Fetch API
06 Live Cricket Score Wordpress Plugin (Wp Remote URL) Get Live Cricket Score on Wordpress site call API using Wordpress HTTP Remote URL
07 PWA Web App Real-time Live Cricket Score Web app + PWA Built using Nuxt.js

LICENSE 📕

MIT