> For the complete documentation index, see [llms.txt](https://docs.sportsapi360.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sportsapi360.com/cricket-docs/cricket-api/all-endpoints-v5/match-commentary.md).

# Match Commentary

### Match Commentary

Retrieves ball-by-ball commentary for a specific cricket match, with optional filtering by innings and highlight events.

#### Path Variables

| Variable | Description                                                                |
| -------- | -------------------------------------------------------------------------- |
| `id`     | The unique match ID. Populated via the `{{match_id}}` collection variable. |

#### Query Parameters

| Parameter   | Required | Description                                                                            |
| ----------- | -------- | -------------------------------------------------------------------------------------- |
| `api_key`   | Yes      | Your API access token. Use the `{{api_token}}` collection variable.                    |
| `innings`   | No       | Filter commentary by innings number (e.g. `1`, `2`).                                   |
| `highlight` | No       | Filter by event type. Comma-separated values: `4` (boundary), `6` (six), `w` (wicket). |
| `page`      | No       | Page number for paginated results. Starts at `1`.                                      |
| `limit`     | No       | Number of commentary entries to return per page.                                       |

#### Response

Returns a paginated list of commentary entries, each containing the ball description, runs scored, event type, and over/ball number.

#### Notes

* Use `highlight=4,6,w` to fetch only key moments (boundaries and wickets).
* Combine `innings` and `highlight` filters to narrow results further.

#### Authentication

Pass your API token via the `api_key` query parameter.

```json
{"openapi":"3.0.3","info":{"title":"All Endpoints V5","version":"1.0.0"},"servers":[{"url":"https://apiv5.sportsapi360.com"}],"paths":{"/cricket/v1/matches/{id}/commentary":{"get":{"summary":"Match Commentary","description":"## Match Commentary\n\nRetrieves ball-by-ball commentary for a specific cricket match, with optional filtering by innings and highlight events.\n\n### Path Variables\n\n| Variable | Description |\n|----------|-------------|\n| `id` | The unique match ID. Populated via the `{{match_id}}` collection variable. |\n\n### Query Parameters\n\n| Parameter | Required | Description |\n|-----------|----------|-------------|\n| `api_key` | Yes | Your API access token. Use the `{{api_token}}` collection variable. |\n| `innings` | No | Filter commentary by innings number (e.g. `1`, `2`). |\n| `highlight` | No | Filter by event type. Comma-separated values: `4` (boundary), `6` (six), `w` (wicket). |\n| `page` | No | Page number for paginated results. Starts at `1`. |\n| `limit` | No | Number of commentary entries to return per page. |\n\n### Response\n\nReturns a paginated list of commentary entries, each containing the ball description, runs scored, event type, and over/ball number.\n\n### Notes\n\n- Use `highlight=4,6,w` to fetch only key moments (boundaries and wickets).\n- Combine `innings` and `highlight` filters to narrow results further.\n\n### Authentication\n\nPass your API token via the `api_key` query parameter.","operationId":"matchCommentary","parameters":[{"name":"innings","in":"query","schema":{"type":"string"},"description":"Filter commentaries by innings number."},{"name":"highlight","in":"query","schema":{"type":"string"},"description":"Filter commentaries by event type (e.g. 4,6,w)"},{"name":"page","in":"query","schema":{"type":"string"},"description":"Page number for request"},{"name":"limit","in":"query","schema":{"type":"string"},"description":"Number of commentaries to list in each api request"},{"name":"api_key","in":"query","required":true,"schema":{"type":"string"},"description":"API Access token"}],"responses":{"200":{"description":"Match Commentary","headers":{"CF-RAY":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string"}},"Connection":{"schema":{"type":"string"}},"Content-Encoding":{"schema":{"type":"string"}},"Date":{"schema":{"type":"string"}},"Nel":{"schema":{"type":"string"}},"Report-To":{"schema":{"type":"string"}},"Server":{"schema":{"type":"string"}},"Transfer-Encoding":{"schema":{"type":"string"}},"Vary":{"schema":{"type":"string"}},"X-Request-Id":{"schema":{"type":"string"}},"alt-svc":{"schema":{"type":"string"}},"cf-cache-status":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"actual_ball":{"type":"string"},"ball":{"type":"string"},"bat_run":{"type":"string"},"batter_balls":{"type":"number"},"batter_id":{"type":"string"},"batter_image":{"type":"string"},"batter_name":{"type":"string"},"batter_runs":{"type":"number"},"batter_scorecard":{"type":"object","nullable":true},"batter_short_name":{"type":"string"},"batters":{"type":"array","items":{"type":"object","properties":{"balls_faced":{"type":"number"},"batter_id":{"type":"string"},"fours":{"type":"number"},"player_image":{"type":"string"},"player_name":{"type":"string"},"runs":{"type":"number"},"short_name":{"type":"string"},"sixes":{"type":"number"}}}},"batting_team_id":{"type":"string"},"bowler_id":{"type":"string"},"bowler_image":{"type":"string"},"bowler_name":{"type":"string"},"bowler_short_name":{"type":"string"},"bowlers":{"type":"array","items":{"type":"object","properties":{"bowler_id":{"type":"string"},"maidens":{"type":"number"},"overs":{"type":"string"},"player_image":{"type":"string"},"player_name":{"type":"string"},"runs_conceded":{"type":"number"},"short_name":{"type":"string"},"wickets":{"type":"number"}}}},"bye_run":{"type":"string"},"commentary":{"type":"string"},"event":{"type":"string"},"event_id":{"type":"string"},"fielding_team_id":{"type":"string"},"how_out":{"type":"string"},"id":{"type":"string"},"inning_number":{"type":"number"},"is_four":{"type":"boolean"},"is_free_hit":{"type":"boolean"},"is_no_ball":{"type":"boolean"},"is_no_ball_dismissal":{"type":"boolean"},"is_six":{"type":"boolean"},"is_wide_ball":{"type":"boolean"},"leg_bye_run":{"type":"string"},"match_id":{"type":"string"},"no_ball_run":{"type":"string"},"over":{"type":"string"},"runs":{"type":"number"},"score":{"type":"string"},"status":{"type":"string"},"sub_commentary":{"type":"string"},"updated_at":{"type":"string"},"wide_run":{"type":"string"}}}},"meta":{"type":"object","properties":{"api_version":{"type":"string"},"page":{"type":"object","properties":{"has_more":{"type":"boolean"},"limit":{"type":"number"},"page":{"type":"number"},"total":{"type":"number"},"total_pages":{"type":"number"}}},"provider":{"type":"string"},"request_id":{"type":"string"}}},"success":{"type":"boolean"}}}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sportsapi360.com/cricket-docs/cricket-api/all-endpoints-v5/match-commentary.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
