Introduction to API

Now that all prerequisites have been fulfilled, we’re ready to send our first request to the API!

Before you are able to call our API, you need a SportMonks account. Register now.arrow-up-right

To make our first request, we’ll need a way to get authenticated first. Cricket API 2.0 utilizes API tokens for the authentication of requests. You can obtain and manage your API key in the SportsAPI360arrow-up-right.

Example API key: [HdoiD312ND….]

The API key is only meant for your eyes and, as such, should be stored away safely.

triangle-exclamation

Cricket API

The request consists of the following components:

  • The base URL

  • A path parameter, in this example, we use [series]

  • A query string parameter, which is optional, so we leave this out for now

  • And finally, your API key

https://apiv3.sportsapi360.com/cricket/api/v2

An example of a correctly authenticated request would be:

curl --location 'https://apiv3.sportsapi360.com/cricket/api/v2/series?filter=live' \
--header 'x-app-key: {{ your api key }}'
circle-info

We recommend you use Postman for convenience. Every endpoint has an example request ready for you to use. Hit the button below to import our Cricket API collection. Run in Postmanarrow-up-right

Last updated