Cricket API

The Highlightly Cricket API provides real time cricket data including live scores with scorecards, video highlights, standings, head to head data and last five games across 900+ leagues and tournaments in 80+ countries.

Coverage spans the ICC World Cup, T20 World Cup, IPL, Big Bash, CPL, PSL, The Hundred, SA20 and the County Championship, plus women's cricket, across the Test, ODI and T20 formats.

Base URL
cricket.highlightly.net
Endpoints
19
Format
JSON only
Version
7.0.2

Also available with an All Sports API subscription at sports.highlightly.net/cricket. See base URLs.

Where to start

Read Authentication first, since every request needs an API key. Pagination and limits covers paging and how your plan affects results.

If you want Start at
Sixes, wickets and innings recaps Highlights
Fixtures and live scores Matches
Career records by format and season Player summary
Tournament tables Standings

Matches run for minutes or for days

A match can carry a dayType of SINGLE or MULTI, which tells you whether it is played across multiple days. The match states include breaks such as Lunch and Tea, and Stumps marks the end of a day's play in a multi day match.

Plan polling around that. A multi day match can pass through several breaks before it ends.

Base URLs

Cricket data is available two ways. A Cricket API subscription covers cricket alone. An All Sports API subscription covers cricket and all other Highlightly sports under one key. Either one can be bought directly from Highlightly or through RapidAPI, which gives four base URLs.

Subscription Platform Base URL
Cricket API Highlightly https://cricket.highlightly.net
Cricket API RapidAPI https://cricket-highlights-api.p.rapidapi.com
All Sports API Highlightly https://sports.highlightly.net/cricket
All Sports API RapidAPI https://sport-highlights-api.p.rapidapi.com/cricket

Every endpoint in this reference is available on all four. On Highlightly, one API key works for every product, and the data returned depends on your subscription to that product. On RapidAPI, each product is separate and needs its own API key.

To call an endpoint, append its path to your base URL. /matches becomes https://cricket.highlightly.net/matches with a Cricket API subscription and https://sports.highlightly.net/cricket/matches with an All Sports API subscription. Parameters, responses and refresh intervals are the same on both, and every endpoint page shows both routes.

Your plan affects the data retrieved. On the Basic and Free plans highlights might have certain restrictions, and odds and geo restrictions are not available, with either subscription. See Pagination and limits.

What changes with an All Sports API subscription

The headers have the same names on every base URL. x-rapidapi-key is sent with every request, and x-rapidapi-host is sent only when calling through RapidAPI. What changes is the path and the host header, and on RapidAPI the key.

Cricket API All Sports API
Path /matches /cricket/matches
x-rapidapi-key on Highlightly Your Highlightly API key Your Highlightly API key
x-rapidapi-key on RapidAPI Your Cricket API key Your All Sports API key
x-rapidapi-host cricket-highlights-api.p.rapidapi.com sport-highlights-api.p.rapidapi.com

On Highlightly, the same API key works on cricket.highlightly.net and sports.highlightly.net, and the data returned depends on your subscription to each product. On RapidAPI, the Cricket API and the All Sports API are separate products, so each needs its own API key. One All Sports API quota covers every sport you call. See All Sports authentication.

Highlightly or RapidAPI

Both platforms give you analytics, billing settings and key management. RapidAPI does not offer custom plans or long term plan discounts.

Create an account at Highlightly or through RapidAPI. Plans and limits are listed on the Cricket API page and the All Sports API page.

OpenAPI specification

Import the OpenAPI 3.0 document into Postman or Insomnia, or generate a client from it.

Download docs.json

Support

For feature requests, questions, private plans or business enquiries, contact [email protected]. You can also start a discussion or send a private message through RapidAPI.