First Step

Getting started with Roanuz Cricket GraphQL is same as every other GraphQL APIs. All you need is a Project Key. We also provide GraphQL Playground.

Step 1: Create a new project

Project Key, API Key and GraphQL URL are available on Project Console. alt text

Step 2: Accessing Your GraphQL Endpoint

Follow the below structure to form your project’s GraphQL URL. Fully constructed GraphQL URL is also available on Project Console.
https://api.sports.roanuz.com/v5/core/<PROJ_KEY>/graphql/

Step 3: Authenticate

Now that you have successfully created your project, you are ready to start accessing data from GraphQL endpoint. Before accessing the endpoint, get authenticated
mutation { auth (api_key: "APIKEY") { token expires } }
mutation {
  auth (api_key: "APIKEY") {
    token
    expires
  }
}
icon copy

Step 4: Perform GraphQL Query

Once you have authenticated successfully, you can start accessing data using various queries such as the Featured Matches Query. The Featured Matches Query provides a manually curated list of matches that are expected to create huge demand. Pass the access token on header key “rs-token”.
featured_matches { matches { name shortName playStatus subTitle teams { a { name } b { name } } startAt venue { name city } format metricGroup } }
featured_matches {
    matches {
      name
      shortName
      playStatus
      subTitle
      teams {
        a {
          name
        }
        b {
          name
        }
      }
      startAt 
      venue {
        name
        city
      }
      format
      metricGroup
    }
  }
icon copy
HTTP Headers
{"rs-token": "TOKEN"}

Step 5: Start Exploring

Use our documentation or GraphQL Playground to explore all queries and mutations. Our developers also uses Altair GraphQL Client.