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.
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 -
http://localhost:3000/live
- Get Live data from the URL -
http://localhost:3000/score?url=<Live Match URL>
Note
API Caching, CORS and API Rate limit Was Enabled by default you can update the settings accoding to your usage - Files are Located in /routes/
folder
- Server With Latest LTS Node.JS Support and Nginx (For Self Host)
- HTTPS for Secure SSL Connection
(OR)
- use Vercel or Heroku Free Cloud Hosting
- 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
- Get the Live Match Score URL from -
https://www.cricbuzz.com/cricket-match/live-scores
- Enter them Directly or replace
www
withm
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
/utlis/app.json
File
http://localhost:3000/live
- Deploy on Vercel
Your PR's are Welcome
- 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/
# | Project Name | Description |
---|---|---|
01 | Live Cricket Score Static Site | A Simple Scrape Method - Fetch the Live Cricket Score from espncricinfo.com using Nodejs and Cheerio.js - Not Maintained |
02 | IPL Special | Cricket API for Get the Live IPL Cricket Score not maintained |
03 | Live IPL Score Update on Telegram | Get Live IPL cricket Score on Telegram - Partially maintained |
04 | Live Cricket Score Wordpress Plugin (JS Version) | Get Live Cricket Score on Wordpress site call API using Javascript Fetch API - not maintained |
05 | Live Cricket Score Wordpress Plugin (Wp Remote URL) | Get Live Cricket Score on Wordpress site call API using Wordpress HTTP Remote URL - not maintained |
06 | PWA Web App | Real-time Live Cricket Score Web app + PWA Built using Nuxt.js - not maintained |
07 | Cricket API Nodejs | JSON API Node.js Version - Active Development |
08 | Cricket Score Widget | Live Cricket Score Javascript Widget Build using Svelte JS - Partially maintained |
09 | Live Cricket Score CLI | Get Live Cricket Score Update on Terminal and CMD - Active Development |
MIT