Shubhamrawat5 / cricket-api-nodejs

Free Live Cricket Score JSON API (Node.js Version) - Get data from Cricbuzz - Live Cricket Score API.

Home Page:https://cricket-api-nodejs-five.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Free Cricket API 🏏

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 - 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

Requirements πŸ“‘

  • 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

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 /utlis/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 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

LICENSE πŸ“•

MIT

About

Free Live Cricket Score JSON API (Node.js Version) - Get data from Cricbuzz - Live Cricket Score API.

https://cricket-api-nodejs-five.vercel.app

License:MIT License


Languages

Language:JavaScript 100.0%