JavaScript/Nodejs Code Samples
Nodejs
APIs
Matches List
...
const apikey = "%APIKEY%"; axios.get(`https://api.cricapi.com/v1/series?apikey=${apikey}&offset=0`)
...
Replace %APIKEY% with your Cricket Data API key
Check out the below link for the complete code
Series Info
...
const apikey = "%APIKEY%"; axios.get(`https://api.cricapi.com/v1/series_info?apikey=${apikey}&offset=0&id=${id}`)
...
Replace %APIKEY% with your Cricket Data API key
Check out the below link for the complete code
Player Info
...
const apikey = "%APIKEY%"; axios.get(`https://api.cricapi.com/v1/players_info?apikey=${apikey}&offset=0&id=${id}`)
...
Replace %APIKEY% with your Cricket Data API key
Check out the below link for the complete code
Fantasy scorecard
...
const apikey = "%APIKEY%"; axios.get(`https://api.cricapi.com/v1/match_scorecard?apikey=${apikey}&offset=0&id=${id}`)
...
Replace %APIKEY% with your Cricket Data API key
Check out the below link for the complete code
Fantasy Match Points
...
const apikey = "%APIKEY%"; axios.get(`https://api.cricapi.com/v1/match_points?apikey=${apikey}&offset=0&id=${id}`)
...
Replace %APIKEY% with your Cricket Data API key
Check out the below link for the complete code
Fantasy Match Squad
...
const apikey = "%APIKEY%"; axios.get(`https://api.cricapi.com/v1/match_squad?apikey=${apikey}&offset=0&id=${id}`)
...
Replace %APIKEY% with your Cricket Data API key
Check out the below link for the complete code