# Build the request

## 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

{% tabs %}
{% tab title="Base URL" %}
{% code overflow="wrap" %}

```mathml
https://apiv3.sportsapi360.com/
```

{% endcode %}
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Base Endpoints" %}
{% code overflow="wrap" %}

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

{% endcode %}
{% endtab %}
{% endtabs %}

An example of a correctly authenticated request would be:

{% tabs %}
{% tab title="Request" %}
{% code overflow="wrap" %}

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

{% endcode %}
{% endtab %}

{% tab title="Response" %}

```
[{
    "tourName": "Indian Premier League, 2025",
    "seriesSearchNameForES": "Indian Premier League, 2025, March, Mar",
    "tourID": "7126",
    "league": "IPL",
    "seriesStartDate": "1742652000000",
    "seriesEndDate": "1748979000000",
    "T20count": 79,
    "matchLevel": "domestic",
    "Odicount": null,
    "Testcount": null,
    "seriesStatus": "live"
  },
  {
    "tourName": "ICC CWC League 2, 2023-27",
    "seriesSearchNameForES": "ICC CWC League 2, 2023-27, February, Feb",
    "tourID": "4689",
    "league": "ICC",
    "seriesStartDate": "1707968700000",
    "seriesEndDate": "1749742200000",
    "T20count": null,
    "matchLevel": "international",
    "Odicount": 79,
    "Testcount": null,
    "seriesStatus": "live"
  },
  {
    "tourName": "West Indies Women tour of England, 2025",
    "seriesSearchNameForES": "West Indies Women tour of England, 2025, May, May",
    "tourID": "6986",
    "league": "Women's International",
    "seriesStartDate": "1747848600000",
    "seriesEndDate": "1749310200000",
    "T20count": 3,
    "matchLevel": "international-womens",
    "Odicount": 3,
    "Testcount": null,
    "seriesStatus": "live"
  }]
```

{% endtab %}
{% endtabs %}

This request will return all of the leagues.

{% hint style="info" %}
Please note that our entire Cricket API collection with all endpoints is available in Postman. [![Run in Postman](https://docs.sportmonks.com/~gitbook/image?url=https%3A%2F%2Frun.pstmn.io%2Fbutton.svg\&width=300\&dpr=4\&quality=100\&sign=5f4dbf4c\&sv=2)](https://cricket-postman.sportsapi360.com/)
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docsv3.sportsapi360.com/cricket-docs/cricket-api/build-the-request.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
