Start Plans Docs Litzscore.com Love My Apps
Get Started Usage Limits Concept Free APIs API Coverage Spider API Coverage Auth API Match API Ball By Ball API Recent Matches API Recent Seasons API Schedule API Season API Season Stats API Season Points API Season Player Stats API Over Summary API News Aggregation API Card Objects ICC Teams League Teams Properties Team Object Player Object Season Object Innings Object
  • Answer
  • Answer Metrics
  • Player Stats
  • Team Stats
  • Player Vs Team Stats
  • Player Timeline
  • Team Timeline
  • Guide API's Spider API's Reference

    Authentication API

    Flow


    To access any API, you need access token. Auth API provides you the access token, by validating your request. Call Auth API whenever the access token is expired.

    Request


    • Path: /rest/v2/auth/
    • Method: POST
    • POST Params:
      • access_key - Required. Access key of your application.
      • secret_key - Required. Secret key of your application.
      • app_id - Required. Your app_id
      • device_id - Required. Unique id of the client device or browser.

    Response


    • auth.access_token - String. Access token for your future requests.
    • auth.expires - String (long). Expiration date in unix epoch timestamp.

    Example


    A simple auth request,
        $ curl -X POST \
        -d "access_key=YOURACCESSKEY" \
        -d "secret_key=YOURSECRETKEY" \
        -d "app_id=com.yourcompany.appname" \
        -d "device_id=abr344mkd99" \
        https://rest.cricketapi.com/rest/v2/auth/
    and the sample response
      {
        "status": True, "status_code": 200, "version": "2.0.0",
        "auth": {
          "access_token": "6d6d543ad9e4f7bda7daf32b1fc3bf03",
          "expires": "234234435345345",
        },
        "cache_key": None, "Etag": None
      }

    Example with callback


    A simple auth request with callback,
        $ curl -X POST \
        -d "access_key=YOURACCESSKEY" \
        -d "secret_key=YOURSECRETKEY" \
        -d "app_id=com.yourcompany.appname" \
        -d "device_id=abr344mkd99" \
        https://rest.cricketapi.com/rest/v2/auth/?callback=/rest/v2/match/MATCHKEY/
    and the sample response with callback response
      {
        "status": True, "status_code": 200, "version": "2.0.0",
        "auth": {
          "access_token": "6d6d543ad9e4f7bda7daf32b1fc3bf03",
          "expires": "234234435345345",
        },
        "callback":{
          "status": True, "status_code": 200, "version": "2.0.0",
          "data": {/* MATCH RESPONSE HERE */}
        }
        "cache_key": None, "Etag": None
      }

    Match API

    • With match API you will get,
    • Super fast live update for cricket score.
    • Toss information.
    • Playing 11.
    • Short description about the match with timing and venue details.
    • Alert for live matches.
    • Notification for fall of wickets.
    • Squad details with exclusive player photos.
    • Man of the match for completed matches.
    • Automatic ball by ball comments.

    Schedule API

    • Correct match start time in GMT
    • Country codes of participating teams with expanded country names
    • Venue details with stadium name, place and country.
    • Finely designed png flag images for all teams
    • Tiny description about the match schedule

    Season API

    • List of all matches in a season
    • List of all participating teams
    • Player info for all teams which contains player name,
    • Venue details with stadium name and place
    • Start date and time

    Stats API

    • Points table for all teams
    • Count for matches won, lost and tie
    • Net Run Rate for every teams
    • Points earned by a team
    • Overall tournament sixes, fours
    • Top four Runs, Wickets, Sixes, Fours, Boundaries,
    • Top four batsman, bowler, catches, bowlers boundaries