# Leagues

The leagues endpoint typically serves as the initial access point for most users. Sending a request to this API will result in a response containing information about all the leagues available to you, depending on the subscription plan you have.&#x20;

The leagues endpoint provides you with League information ID, league name, image etc.

### API Request

[https://cricket.sportsjupiter.com/v1/leagues?api\_token={api\_token}](https://cricket.sportsjupiter.com/v1/leagues?api_token=d28295a9-3e65-4aef-89c5-9c39fe2b15ea)

<details>

<summary>API Response</summary>

```
{
  "data": [
    {
      "id": 2,
      "name": "One Day International",
      "code": "ODI",
      "image_url": "https://d2419d3f12rvro.cloudfront.net/cricket/assets/leagues/2.png",
      "type": "leagues"
    },
    {
      "id": 3,
      "name": "Twenty20 International",
      "code": "T20I",
      "image_url": "https://d2419d3f12rvro.cloudfront.net/cricket/assets/leagues/3.png",
      "type": "leagues"
    },
    {
      "id": 4,
      "name": "Test Series",
      "code": "TEST",
      "image_url": "https://d2419d3f12rvro.cloudfront.net/cricket/assets/leagues/4.png",
      "type": "leagues"
    },
    {
      "id": 5,
      "name": "Big Bash League",
      "code": "BBL",
      "image_url": "https://d2419d3f12rvro.cloudfront.net/cricket/assets/leagues/5.png",
      "type": "leagues"
    },
    {
      "id": 111,
      "name": "ICC World Test Championship",
      "code": "WTC",
      "image_url": "https://d2419d3f12rvro.cloudfront.net/cricket/assets/leagues/111.png",
      "type": "leagues"
    },
    {
      "id": 258,
      "name": "Twenty20 International Women",
      "code": "T20IW",
      "image_url": "https://d2419d3f12rvro.cloudfront.net/cricket/assets/leagues/258.png",
      "type": "leagues"
    },
    {
      "id": 261,
      "name": "One Day International Women",
      "code": "ODIW",
      "image_url": "https://d2419d3f12rvro.cloudfront.net/cricket/assets/leagues/261.png",
      "type": "leagues"
    }
  ]
}
```

</details>

### Downloads

{% file src="/files/x7MmaZS0Tni17gBF2qr4" %}


---

# 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://cricketdocs.sportsjupiter.com/leagues.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.
