Search APIs
Add Your API
Cricket Devs API thumbnail

Cricket Devs

8.9 Popularity
100% Service Level
1626ms Latency
N/A Test

Spotlights

API Overview

Introduction

Welcome to Cricket Devs! In Sport Devs, we provide data for 21 Sports played around the globe! Feel free to check them out! If you are searching for Cricket API, ours is perfect to build applications, fantasy games, etc. You can see all the endpoints for the Cricket API, such as Teams, Players, Cuptrees, Standings, Odds, and many more.

Full Documentation

For more specific details about the usage of our API go to: https://docs.sportdevs.com/docs/getting_started_cricket

Coverage

More about the data you can access with our API at: https://sportdevs.com/cricket

Customizable Plans & Pricing

We can work out a custom plan if you want more requests. For more information about this offer, please contact us: https://sportdevs.com/support / support@sportdevs.com

Once you reach the daily quota, we automatically suspend you from making any more requests, so you do not have to worry about additional fees.

Authentication - RAPIDAPI Account

On the RapidAPI developer dashboard, you can access analytics for every app in your account. In order to do that, click on the 'Analytics' tab of your app. The chart you see on the top of the page represents all the calls being made to all the APIs your application is connected to. You'll also be able to see a log with all the requested data. By filtering you can choose which APIs should be shown in the app. You can view these measurements in every graph:

  • API Calls: how many requests are being made
  • Error rates: how many requests are error some
  • Latency: how long it takes to get a response to an API request You can also change the time period you're looking at if you click on the calendar icon and choose a time range.

Architecture

architecture

Headers sent as a response

When consuming our API, you will always receive the following headers appended to the response: server: The current version of the API proxy used by RapidAPI. x-ratelimit-requests-limit: The number of requests the plan you are currently subscribed to allows you to make, before incurring overages. x-ratelimit-requests-remaining: The number of requests remaining before you reach the limit of requests your application is allowed to make, before experiencing overage charges. X-RapidAPI-Proxy-Response: This header is set to true when the RapidAPI proxy generates the response, (i.e. the response is not generated from our servers)

Restful API and WebSockets for Cricket covering events, livescores, players, teams, predictions, odds, leagues, seasons, managers, statistics, lineups, fixtures, scores, injuries, tv channels, referees, penalty history, news and standings. **Documentation:** https://docs.sportdevs.com/docs/getting_started_cricket. **Support:** support@sportdevs.com.

Getting started

Hello from the SportDevs team. For you as a customer, it is of vital importance to be properly instructed on how to effectively use and integrate with our APIs. In this documentation you will get multiple explanations about all the endpoints.

You can see the code examples which are written in several programming languages such as C#, cURL, Go, Javascript, NodeJs, PHP, Python, Ruby, and many more!

Furthermore, we have request generation utility for our APIs for the purpose of calling API endpoints using JavaScript. This utility is available on https://github.com/SportDevs/endpoint.

RapidAPI Authentication

You can see the RapidApi developer dashboard (https://rapidapi.com/developer/dashboard) to learn about your subscription details: API keys location, analytics, billing settings and apps.

Click on the tabs on the left-hand side of the screen to get more information.

App Specific Analytics

On the RapidAPI developer dashboard, you can access analytics for every app in your account. In order to do that, click on the 'Analytics' tab of your app. The chart you see on the top of the page represents all the calls being made to all the APIs your application is connected to.

You'll also be able to see a log with all the request data. By filtering you can choose which APIs should be shown in the app.

You can view these measurements in every graph:

  • API Calls: how many requests are being made
  • Error rates: how many requests are error some
  • Latency: how long it takes to get a response to an API request

You can also change the time period you're looking at if you click on the calendar icon and choose a time range.

Headers sent as response

When consuming our API, you will always receive the following headers appended to the response:

  • server: The current version of the API proxy used by RapidAPI.
  • x-ratelimit-requests-limit: The number of requests the plan you are currently subscribed to allows you to make, before incurring overages.
  • x-ratelimit-requests-remaining: The number of requests remaining before you reach the limit of requests your application is allowed to make, before experiencing overage charges.
  • x-rapidapi-proxy-response: This header is set to true when the RapidAPI proxy generates the response, (i.e. the response is not generated from our servers)

Logos and images

Logos and images are completely free of charge.

The URL to request logos and images is:

> https://images.sportdevs.com/{hash}.png

We offer logos and images for:

  • Classes
  • Arenas
  • Leagues
  • Teams
  • Players
  • Referees
  • Coaches

WebSockets

> You can get WebSockets access with any active API key. We don't charge for WebSockets.

We offer WebSockets for various types:

  • score { "sport": "sport", "match_id": 1, "score": 2, "team_id": 1 }
  • time { "sport": "sport", "match_id": 1, "specific_start_time": "time", "period_1": 23, "period_2": 35, "period_3": 32, "period_4": 12 }
  • graph { "sport": "sport", "match_id": 1, "minute": 23, "value": 3 }
  • incident { "sport": "sport", "match_id": 1, "type": "type", "text": "text", "home_score": 2, "away_score": 1, "is_live": true, "added_time": 1, "length": 54, "player_id": 3, "player_name": "Name", "player_hash_image": "hash", "reason": "reason", "is_home": true, "class": "class", "player_in_id": 1, "player_in_hash_image": "hash", "player_out_id": 4, "player_out_name": "Name", "player_out_hash_image": "hash", "assist1_id": 3, "assist1_name": "Name", "assist1_hash_image": "hash", "assist2_id": 23, "assist2_name": "Name", "assist2_hash_image": "hash" }

Get all updates by type using websockets

const ws = new WebSocket('wss://{sport}.sportdevs.com/live/{type}?token={API-KEY}', ['updates'])
ws.addEventListener('message', ev => console.log(ev.data))

Get all updates by type using server sent events

const es = new EventSource('https://{sport}.sportdevs.com/live/{type}?token={API-KEY}')
es.addEventListener('message', ev => console.log(ev.data))

Get changes for a specific event ID and type using websockets

const ws = new WebSocket('wss://{sport}.sportdevs.com/live/{type}/1?token={API-KEY}', ['updates'])
ws.addEventListener('message', ev => console.log(ev.data))

Get changes for a specific event ID and type using server sent events

const es = new EventSource('https://{sport}.sportdevs.com/live/{type}/1?token={API-KEY}')
es.addEventListener('message', ev => console.log(ev.data))

For more info about WebSockets visit this: https://developer.mozilla.org/en-US/docs/Web/API/EventSource