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.
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 SportsAPI360.
Example API key: [HdoiD312ND….]
The API key is only meant for your eyes and, as such, should be stored away safely.
API key has no expiration date and will remain valid until you manually delete it yourself.
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 }}'
Last updated