# Compare Recent Batting Form Between Two Players

**Use case:** 

Compare the recent batting form of two players side by side using their last ten ODI innings each. Runs Form & Matchup Analysis mode on two player IDs at once, returning one summary per player with recent runs, average, and strike rate instead of raw innings rows. Ideal for fantasy cricket picks and pundit-style form comparisons before a series.

## Input

```json
{
  "analysisMode": "form_matchup",
  "format": "odi",
  "statType": "batting",
  "view": "innings",
  "team": "India",
  "opposition": "Australia",
  "groundId": "",
  "groundUrl": "",
  "playerId": "",
  "playerUrl": "",
  "playerIds": [
    "253802",
    "34102"
  ],
  "playerUrls": [],
  "dateFrom": "",
  "dateTo": "",
  "homeOrAway": "",
  "result": "",
  "maxItems": 50,
  "formWindow": 10,
  "orderBy": "runs",
  "orderDirection": "desc",
  "minQualification": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "player_name": {
    "label": "Player",
    "format": "string"
  },
  "stat_type": {
    "label": "Analysis",
    "format": "string"
  },
  "form_window_records": {
    "label": "Recent innings",
    "format": "number"
  },
  "latest_match_date": {
    "label": "Latest match",
    "format": "string"
  },
  "form_runs": {
    "label": "Runs",
    "format": "number"
  },
  "form_average": {
    "label": "Batting average",
    "format": "number"
  },
  "form_strike_rate": {
    "label": "Strike rate",
    "format": "number"
  },
  "form_wickets": {
    "label": "Wickets",
    "format": "number"
  },
  "form_overs": {
    "label": "Overs",
    "format": "number"
  },
  "form_economy": {
    "label": "Economy",
    "format": "number"
  },
  "player_url": {
    "label": "Profile",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Cricket Data API: ESPNcricinfo StatsGuru Export](https://apify.com/getascraper/espncricinfo-statsguru-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/getascraper/espncricinfo-statsguru-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/getascraper/espncricinfo-statsguru-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
