Cricket Live

# ๐Ÿ Cricket Live

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Cricket Live" with this command: npx skills add harshilmathur/cricket-live

๐Ÿ Cricket Live

Live cricket scores, IPL tracking, and match alerts for OpenClaw.

Get real-time scores, upcoming schedules, detailed scorecards, and IPL standings โ€” all from your OpenClaw agent. Powered by CricketData.org API (endpoint: api.cricapi.com).


โœจ Features

  • ๐Ÿ”ด Live Scores โ€” All currently live matches with real-time scores, overs, and status
  • ๐Ÿ“‹ Match Details โ€” Full scorecards with batting and bowling stats
  • ๐Ÿ“… Upcoming Matches โ€” Next 7 days of scheduled matches, filterable by team
  • โœ… Recent Results โ€” Completed matches from the last 3 days
  • ๐Ÿ† IPL Hub โ€” Standings, upcoming IPL matches, live scores, and results
  • ๐Ÿ” Match Search โ€” Find any match by team name (supports aliases like "MI", "CSK", "AUS")
  • ๐Ÿ”” Alerts โ€” Cron-ready script for wicket, century, and result notifications
  • ๐Ÿ’พ Smart Caching โ€” Respects API quota with configurable TTL per endpoint
  • ๐Ÿ‡ฎ๐Ÿ‡ณ IST by Default โ€” All times displayed in Indian Standard Time

๐Ÿš€ Quick Start

1. Get a Free API Key

Sign up at cricketdata.org โ€” the free tier gives you 100 API calls/day. (CricketData.org's API is served at api.cricapi.com โ€” they are the same service.)

2. Set the Environment Variable

export CRICKET_API_KEY="your-api-key-here"
# Add to your shell profile or ~/.openclaw/.env for persistence

3. Run Any Script

bash scripts/live-scores.sh              # What's happening right now?
bash scripts/upcoming-matches.sh         # What's coming up?
bash scripts/ipl.sh standings            # IPL points table

๐Ÿ“– Usage

Live Scores

bash scripts/live-scores.sh

Shows all currently live matches with scores, overs, and match status.

Example output:

๐Ÿ LIVE CRICKET SCORES
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

๐Ÿ”ด India vs England โ€” 3rd Test, Day 2
๐Ÿ‡ฎ๐Ÿ‡ณ India: 285/6 (78.2 ov)
๐Ÿด England: 312 (98.4 ov)
๐Ÿ“Š India trail by 27 runs

๐Ÿ”ด Australia vs South Africa โ€” 1st ODI
๐Ÿ‡ฆ๐Ÿ‡บ Australia: 156/3 (28.1 ov)
๐Ÿ“Š In Progress

Upcoming Matches

bash scripts/upcoming-matches.sh              # All upcoming
bash scripts/upcoming-matches.sh --team India  # Filter by team
bash scripts/upcoming-matches.sh MI            # Works with aliases

Example output:

๐Ÿ“… UPCOMING MATCHES (Next 7 Days)
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

๐Ÿ‡ฎ๐Ÿ‡ณ India vs England โ€” 4th Test
๐Ÿ“ Ranchi
๐Ÿ• 16 Feb 2026, 09:30 AM IST

๐Ÿ Mumbai Indians vs Chennai Super Kings โ€” IPL 2026
๐Ÿ“ Wankhede Stadium, Mumbai
๐Ÿ• 18 Feb 2026, 07:30 PM IST

Recent Results

bash scripts/recent-results.sh

Example output:

โœ… RECENT RESULTS
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

๐Ÿ† India won by 5 wickets
India vs England โ€” 2nd Test
๐Ÿ“ Visakhapatnam

๐Ÿ† Australia won by 73 runs
Australia vs Sri Lanka โ€” 3rd ODI
๐Ÿ“ Melbourne

IPL Hub

bash scripts/ipl.sh standings   # Points table
bash scripts/ipl.sh upcoming    # Upcoming IPL matches
bash scripts/ipl.sh live        # Live IPL scores
bash scripts/ipl.sh results     # Recent IPL results

Match Details (Scorecard)

bash scripts/match-details.sh <match-id>

Get match IDs from live-scores or search results.

Search Matches

bash scripts/search-match.sh "India vs Australia"
bash scripts/search-match.sh "MI vs CSK"

Cricket Alerts (Cron)

bash scripts/cricket-alert.sh

Detects wickets, centuries, and match completions since last check. Outputs only when something notable happens โ€” perfect for cron.


๐Ÿ—ฃ๏ธ Natural Language Mapping

User saysScript
"What's the score?" / "Live scores"live-scores.sh
"Show me the scorecard for match X"match-details.sh <id>
"Upcoming matches" / "What's coming up?"upcoming-matches.sh
"Recent results" / "Who won?"recent-results.sh
"IPL table" / "IPL standings"ipl.sh standings
"IPL matches today"ipl.sh live
"India vs Australia"search-match.sh "India vs Australia"

โš™๏ธ Configuration

config/cricket.yaml

Main configuration file. API key can be set here or via CRICKET_API_KEY env var (env var takes priority).

api_key: ""                    # Set via env var recommended
favorite_teams:                # Teams for alert filtering
  - India
  - Mumbai Indians
alert_events:                  # Events that trigger alerts
  - wicket
  - century
  - match_end
cache_dir: /tmp/cricket-cache  # Cache directory
cache_ttl:                     # Cache TTL in seconds per endpoint
  live: 120
  upcoming: 1800
  results: 1800
  series: 86400
  scorecard: 300

config/teams.yaml

Team name aliases for fuzzy matching. Maps shorthand names (MI, CSK, IND, AUS) to canonical API names. See config/README.md for details.


โฐ Cron Integration

Set up periodic match alerts:

# Check for notable events every 5 minutes during match hours
*/5 9-23 * * * CRICKET_API_KEY="your-key" bash /path/to/skills/cricket-scores/scripts/cricket-alert.sh

# Or use OpenClaw cron:
# Schedule cricket-alert.sh to run during IPL match times (7-11 PM IST)

The alert script tracks state in /tmp/cricket-alert-state.json and only outputs when something new happens (wicket, century, match result).


๐Ÿ“Š API Quota Management

TierCalls/DayCost
Free100$0
Pro2,000$5.99/mo

How Caching Helps

All scripts cache API responses locally in /tmp/cricket-cache/:

  • Live scores: 2 min TTL (fresh during matches)
  • Upcoming/Results: 30 min TTL
  • Series info: 24 hour TTL
  • Scorecards: 5 min TTL

Budget During a Match Day

~10 list calls + ~50 score checks + 40 ad-hoc = 100 calls (fits free tier)

When Quota is Exhausted

Scripts show a clear message: "API quota exhausted (100 calls/day limit reached). Try again tomorrow or upgrade."


๐Ÿ“‚ Output Format

All output is messaging-friendly:

  • No markdown tables (works on WhatsApp, Discord, Telegram)
  • Bullet point lists with emoji
  • Times converted to IST
  • Match IDs included for drill-down

๐Ÿ“‹ Requirements

  • bash 4.0+
  • curl (usually pre-installed)
  • jq โ€” apt install jq or brew install jq
  • CricketData.org API key (free) โ€” sign up at cricketdata.org

๐Ÿ”’ Security Notes

  • API key in URL query parameter: The CricketData.org API (api.cricapi.com) requires the API key to be passed as a URL query parameter (?apikey=...). This means the key may appear in shell history, process listings, server access logs, and any HTTP proxy/inspection logs. Mitigations:
    • Set the key via the CRICKET_API_KEY environment variable (not hardcoded in config files).
    • Use the free tier key for this skill โ€” it has limited scope and can be rotated easily.
    • Avoid running scripts in shared/multi-tenant environments where process arguments are visible to other users.
    • The CricketData.org API does not support header-based authentication, so query-param passing is unavoidable.

๐Ÿ“„ License

MIT โ€” see LICENSE

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Ai Competitor Analyzer

ๆไพ›AI้ฉฑๅŠจ็š„็ซžไบ‰ๅฏนๆ‰‹ๅˆ†ๆž๏ผŒๆ”ฏๆŒๆ‰น้‡่‡ชๅŠจๅค„็†๏ผŒๆๅ‡ไผไธšๅ’Œไธ“ไธšๅ›ข้˜Ÿๅˆ†ๆžๆ•ˆ็އไธŽไธ“ไธšๅบฆใ€‚

Registry SourceRecently Updated
General

Ai Data Visualization

ๆไพ›่‡ชๅŠจๅŒ–AIๅˆ†ๆžไธŽๅคšๆ ผๅผๆ‰น้‡ๅค„็†๏ผŒๆ˜พ่‘—ๆๅ‡ๆ•ฐๆฎๅฏ่ง†ๅŒ–ๆ•ˆ็އ๏ผŒ่Š‚็œๆˆๆœฌ๏ผŒ้€‚็”จไผไธšๅ’Œไธชไบบ็”จๆˆทใ€‚

Registry SourceRecently Updated
General

Ai Cost Optimizer

ๆไพ›ๅŸบไบŽ้ข„็ฎ—ๅ’ŒไปปๅŠก้œ€ๆฑ‚็š„AIๆจกๅž‹ๆˆๆœฌไผ˜ๅŒ–ๆ–นๆกˆ๏ผŒ่ฎก็ฎ—่Š‚็œๅนถๆŒ‡ๅฏผOpenClaw้…็ฝฎไธŽๆจกๅž‹ๅˆ‡ๆข็ญ–็•ฅใ€‚

Registry SourceRecently Updated