{
  "openapi": "3.0.1",
  "info": {
    "title": "Cricinfo Stats Scraper & Player Analytics",
    "description": "Scrape Cricinfo player stats, recent form, batting and bowling records. Compare players, apply advanced filters, and export structured cricket data.",
    "version": "1.3",
    "x-build-id": "MgfUaZD2JYUWF4pEe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zapticx~espncricinfo-cricket-stats-player-analytics/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zapticx-espncricinfo-cricket-stats-player-analytics",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/zapticx~espncricinfo-cricket-stats-player-analytics/runs": {
      "post": {
        "operationId": "runs-sync-zapticx-espncricinfo-cricket-stats-player-analytics",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/zapticx~espncricinfo-cricket-stats-player-analytics/run-sync": {
      "post": {
        "operationId": "run-sync-zapticx-espncricinfo-cricket-stats-player-analytics",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "What do you want to analyze?",
            "enum": [
              "recentForm",
              "playerComparison",
              "bulk"
            ],
            "type": "string",
            "description": "For comparison, enter ALL players in Players to compare. Single-player fields are used only by Player recent form.",
            "default": "recentForm"
          },
          "players": {
            "title": "Players to compare — enter ALL players",
            "type": "array",
            "description": "Compare players only: enter the complete list of 2–5 players, including player #1. Example: Virat Kohli and Babar Azam are TWO entries here. The Single player name, ID and URL fields are ignored. Each entry may be a full name, numeric Cricinfo profile ID, or Cricinfo profile URL. Leave empty for recent form/bulk.",
            "items": {
              "type": "string"
            }
          },
          "format": {
            "title": "Format",
            "enum": [
              "Test",
              "ODI",
              "T20I"
            ],
            "type": "string",
            "description": "One format per query; men's international cricket.",
            "default": "ODI"
          },
          "discipline": {
            "title": "Discipline",
            "enum": [
              "batting",
              "bowling"
            ],
            "type": "string",
            "description": "Batting uses last innings; bowling uses last matches, including did-not-bowl matches.",
            "default": "batting"
          },
          "lastInnings": {
            "title": "Latest batting innings",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Latest qualifying batting innings per player. Also the default bowling match count when lastMatches is omitted.",
            "default": 10
          },
          "lastMatches": {
            "title": "Latest bowling matches",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Bowling only. Includes matches in which the player did not bowl; Test matches may contain two bowling innings."
          },
          "maxResults": {
            "title": "Maximum raw records",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Global raw-record cap. Summaries are additional. Must cover all requested comparison samples.",
            "default": 1000
          },
          "player": {
            "title": "Single player name (recent form only)",
            "type": "string",
            "description": "Ignored in Compare players and Team bulk dataset modes. This is NOT player #1 in a comparison: enter every comparison player in Players to compare. Recent form: type a full name, or use URL/ID below.",
            "default": "Virat Kohli"
          },
          "playerId": {
            "title": "Single player ID (recent form only)",
            "minimum": 1,
            "maximum": 99999999,
            "type": "integer",
            "description": "Ignored in comparisons. Put comparison IDs in Players to compare. Recent form: profile ID, not Statsguru's internal player_involve ID."
          },
          "playerUrl": {
            "title": "Single player URL (recent form only)",
            "type": "string",
            "description": "Ignored in comparisons. Put comparison URLs in Players to compare. Recent form: plain HTTPS Cricinfo profile URL; takes precedence over single player ID/name."
          },
          "playerCountry": {
            "title": "Player country (identity hint)",
            "type": "string",
            "description": "Optional exact country for name disambiguation; applies to all comparison names. Separate from the team statistics filter."
          },
          "playerBirthYear": {
            "title": "Player birth year (identity hint)",
            "minimum": 1800,
            "maximum": 2100,
            "type": "integer",
            "description": "Optional birth year for same-name players; applies to all comparison names. Use IDs/URLs for mixed comparisons requiring different hints."
          },
          "team": {
            "title": "Team",
            "enum": [
              "England",
              "Australia",
              "South Africa",
              "West Indies",
              "New Zealand",
              "India",
              "Pakistan",
              "Sri Lanka",
              "Zimbabwe",
              "Netherlands",
              "Bangladesh",
              "United Arab Emirates",
              "Ireland",
              "Scotland",
              "Nepal",
              "Afghanistan"
            ],
            "type": "string",
            "description": "Required for bulk; optional source team filter for individual queries."
          },
          "opponent": {
            "title": "Opponent",
            "enum": [
              "England",
              "Australia",
              "South Africa",
              "West Indies",
              "New Zealand",
              "India",
              "Pakistan",
              "Sri Lanka",
              "Zimbabwe",
              "Netherlands",
              "Bangladesh",
              "United Arab Emirates",
              "Ireland",
              "Scotland",
              "Nepal",
              "Afghanistan"
            ],
            "type": "string",
            "description": "Filter before selecting the latest sample."
          },
          "hostCountry": {
            "title": "Host country",
            "enum": [
              "England",
              "Australia",
              "South Africa",
              "West Indies",
              "New Zealand",
              "India",
              "Pakistan",
              "Sri Lanka",
              "Zimbabwe",
              "Netherlands",
              "Bangladesh",
              "United Arab Emirates",
              "Ireland",
              "Scotland",
              "Nepal",
              "Afghanistan"
            ],
            "type": "string",
            "description": "Uses Statsguru's host-country filter; not inferred from team or venue text."
          },
          "venue": {
            "title": "Venue",
            "enum": [
              "Adelaide Oval",
              "Lord's",
              "Eden Gardens",
              "Wankhede"
            ],
            "type": "string",
            "description": "Verified ground IDs only. Other grounds are not yet supported."
          },
          "homeAwayNeutral": {
            "title": "Home / away / neutral",
            "enum": [
              "home",
              "away",
              "neutral"
            ],
            "type": "string",
            "description": "Source classification: away means home of opposition, not simply outside player's country."
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "Inclusive match start date YYYY-MM-DD. Both dates required for bulk; maximum bulk range four years."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Inclusive match start date YYYY-MM-DD. Both dates required for bulk; maximum bulk range four years."
          },
          "battingSituation": {
            "title": "Batting situation",
            "enum": [
              "battingFirst",
              "chasing"
            ],
            "type": "string",
            "description": "ODI/T20I batting only: team innings 1 or 2. Not inferred from batting position."
          },
          "matchResult": {
            "title": "Match result",
            "enum": [
              "won",
              "lost",
              "tied",
              "draw",
              "noResult"
            ],
            "type": "string",
            "description": "Source result from selected player's/team's perspective. Draw is Test-only."
          },
          "inningsNumber": {
            "title": "Match innings number",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "1–2 in limited overs, 1–4 in Tests."
          },
          "battingPosition": {
            "title": "Batting position",
            "minimum": 1,
            "maximum": 11,
            "type": "integer",
            "description": "Exact position, batting only."
          },
          "includeSummary": {
            "title": "Include calculated summaries (recent form / bulk only)",
            "type": "boolean",
            "description": "Comparison summaries are always included automatically: playerComparison ignores this setting and overrides false to true. In recent-form and bulk modes, disable to omit optional summary rows. Raw records are always returned. Summaries are free."
          },
          "proxyConfiguration": {
            "title": "Optional Apify proxy",
            "type": "object",
            "description": "Direct HTTP is the tested default. Proxies are used only when explicitly enabled; no automatic residential upgrade."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}