First Step

Roanuz Cricket API, a product of Roanuz Sports, brings to you a collection of API endpoints that provides you with the data required to power best-in-class sports applications. The endpoints are HTTP REST-based, and work just like other traditional REST-based API endpoints. This makes the integration of the endpoints to the applications a seamless and easy experience for your developers.

Step 1: Creating your First Application

Your application is your gateway to access data from the Cricket API server. Create an application in less than 5 minutes by following the steps below:
  1. To begin with, create your Roanuz account. Enter your credentials for the website and click Sign Up.
  2. Once you are successfully signed up, you will be redirected to the Create Project page. Provide a name for your project and click Continue.
  3. In the page that appears next, you will be requested to associate your project with an appropriate license. You can compare the licenses and check out the pricing details from the same page.
  4. Select an appropriate license and click Continue. You can always upgrade or downgrade your license when required.
  5. In the next page, you can opt-in for one of our Committed-use benefits if interested, and click Continue. Customers who opt for committed use are provided with additional perks.
  6. If you don't want to opt for Committed use, click Proceed without committing.
  7. Based on the choice you make, you will be taken to the Billing page.
  8. You can either set up your billing profile for automatic monthly payments or prepay and access data. You can also try out our API endpoints with Free Virtual Sports.
  9. On successful setting up of billing profile, you will be redirected to your Console. The console is your home for finding your projects, usage reports, transaction history and your billing settings.

Step 2: Authenticate

Now that you have successfully created your project, you are ready to start accessing data from the Roanuz Cricket API endpoints. Before accessing the endpoint URLs, it is important to get authenticated. The Authentication API authenticates requests and provides access token required for retrieving data from the other API endpoints. Copy the API key and the Project Key from your console, and send a POST request to our systems as shown below:

Sample Request

TERMINAL
pip install requests
pip install requests
icon copy
get_auth.py
import requests project_key = 'YOUR_PROJ_KEY' api_key = 'YOUR_API_KEY' url = "https://api.sports.roanuz.com/v5/core/{}/auth/".format(project_key) payload = { 'api_key': api_key } response = requests.post(url, json=payload) print(response.json())
import requests

project_key = 'YOUR_PROJ_KEY'
api_key = 'YOUR_API_KEY'
url = "https://api.sports.roanuz.com/v5/core/{}/auth/".format(project_key)
payload = {
    'api_key': api_key
}
response = requests.post(url, json=payload)

print(response.json())
icon copy

Step 3: Access Featured Matches

Once you have authenticated successfully, you can start accessing data from the various endpoints such as the Featured Matches API . The Featured Matches API provides a manually curated list of matches that are expected to create huge demand. Include the access token you received while authentication and send a request to the Featured Matches API as shown below.

Sample Request

TERMINAL
pip install requests
pip install requests
icon copy
get_featured_matches.py
import requests project_key = 'YOUR_PROJ_KEY' token = 'YOUR_ACCESS_TOKEN' url = "https://api.sports.roanuz.com/v5/cricket/{}/featured-matches/".format(project_key) headers = { 'rs-token': token } response = requests.get(url, headers=headers) print(response.json())
import requests

project_key = 'YOUR_PROJ_KEY'
token = 'YOUR_ACCESS_TOKEN'
url = "https://api.sports.roanuz.com/v5/cricket/{}/featured-matches/".format(project_key)
headers = {
    'rs-token': token
}
response = requests.get(url, headers=headers)

print(response.json())
icon copy

Step 4: Start Exploring!

It only takes three simple steps to get started with Roanuz Cricket API. However, as a bonus step, you can now go ahead and check out all the API endpoints and their corresponding documentation.