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 Project

Your project is your gateway to access data from the Cricket API server. Create a new project 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 on completion of payment and billing procedures, you will be taken to the Console.
  5. You can obtain the Project Key and the API Key for all your projects from your console. These keys are required to access data using the API endpoints.
  6. The Console is also home to all your projects and consists of information such as 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.