{
  "openapi": "3.0.1",
  "info": {
    "title": "Cricket Intelligence API",
    "description": "Structured cricket match, player, series, ranking, news, and historical intelligence for sports apps, dashboards, and research workflows.",
    "version": "0.9",
    "x-build-id": "A7DlUPfOXFa7frVqh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fetchfinch~cricket-intelligence-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fetchfinch-cricket-intelligence-api",
        "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/fetchfinch~cricket-intelligence-api/runs": {
      "post": {
        "operationId": "runs-sync-fetchfinch-cricket-intelligence-api",
        "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/fetchfinch~cricket-intelligence-api/run-sync": {
      "post": {
        "operationId": "run-sync-fetchfinch-cricket-intelligence-api",
        "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": "Mode",
            "enum": [
              "sync",
              "cache"
            ],
            "type": "string",
            "description": "Sync may collect fresh data when cache entries expire. Cache reads stored data and may return a stale result.",
            "default": "sync"
          },
          "resource": {
            "title": "Resource",
            "enum": [
              "overview",
              "liveMatches",
              "match",
              "matchHistory",
              "series",
              "playerSearch",
              "player",
              "team",
              "venue",
              "rankings",
              "news"
            ],
            "type": "string",
            "description": "The intelligence resource to retrieve.",
            "default": "overview"
          },
          "matchId": {
            "title": "Match ID",
            "type": "integer",
            "description": "Optional expert shortcut. If omitted, use Match search, teams, date, or series below."
          },
          "matchQuery": {
            "title": "Match search",
            "type": "string",
            "description": "Optional text search across team names, match description, and series name. Use this instead of Match ID for friendly lookup."
          },
          "teamName": {
            "title": "Team name",
            "type": "string",
            "description": "For match lookup, the team playing in the match. Combine with Opponent or Match date when possible."
          },
          "opponent": {
            "title": "Opponent",
            "type": "string",
            "description": "For match lookup, the opposing team name."
          },
          "matchDate": {
            "title": "Match date",
            "type": "string",
            "description": "Optional match start date in YYYY-MM-DD format."
          },
          "seriesQuery": {
            "title": "Series name",
            "type": "string",
            "description": "For match or series lookup, a partial or full series name such as India tour of Sri Lanka."
          },
          "matchParts": {
            "title": "Match data to include",
            "type": "array",
            "description": "Full commentary is intentionally opt-in because it can be very large.",
            "items": {
              "type": "string",
              "enum": [
                "info",
                "liveScore",
                "scorecard",
                "fullCommentary",
                "squads",
                "overs"
              ]
            },
            "default": [
              "info",
              "liveScore",
              "scorecard"
            ]
          },
          "hydrateLive": {
            "title": "Hydrate live matches",
            "type": "boolean",
            "description": "For liveMatches, fetch detailed data for up to maxLiveMatches live matches and record their history.",
            "default": false
          },
          "maxLiveMatches": {
            "title": "Maximum live matches",
            "minimum": 1,
            "maximum": 2,
            "type": "integer",
            "description": "Maximum number of live matches to hydrate during a liveMatches sync.",
            "default": 1
          },
          "hydratedMatchParts": {
            "title": "Hydrated match data",
            "type": "array",
            "description": "Match parts fetched for each hydrated live match. Full commentary is excluded by default.",
            "items": {
              "type": "string",
              "enum": [
                "info",
                "liveScore",
                "scorecard",
                "squads",
                "overs"
              ]
            },
            "default": [
              "info",
              "liveScore",
              "scorecard"
            ]
          },
          "seriesId": {
            "title": "Series ID",
            "type": "integer",
            "description": "Optional expert shortcut. If omitted for Series, use Series name and category below."
          },
          "seriesType": {
            "title": "Series category",
            "enum": [
              "international",
              "league",
              "domestic",
              "women"
            ],
            "type": "string",
            "description": "Category used when resolving a series name without an ID.",
            "default": "international"
          },
          "playerId": {
            "title": "Player ID",
            "type": "integer",
            "description": "Optional expert shortcut. If omitted for Player profile, enter Player name below."
          },
          "playerName": {
            "title": "Player name",
            "type": "string",
            "description": "Player name used to resolve a profile without knowing the canonical ID."
          },
          "playerQuery": {
            "title": "Player search",
            "type": "string",
            "description": "Required for Player search."
          },
          "teamId": {
            "title": "Team ID",
            "type": "integer",
            "description": "Required for the Team profile resource."
          },
          "venueId": {
            "title": "Venue ID",
            "type": "integer",
            "description": "Required for the Venue profile resource."
          },
          "historyLimit": {
            "title": "History snapshots",
            "minimum": 1,
            "maximum": 240,
            "type": "integer",
            "description": "Maximum number of most-recent match snapshots to return from the persistent cache.",
            "default": 100
          },
          "rankingType": {
            "title": "Ranking type",
            "enum": [
              "teams",
              "batsmen",
              "bowlers",
              "allrounders"
            ],
            "type": "string",
            "description": "ICC ranking category to retrieve when resource is Rankings.",
            "default": "teams"
          },
          "rankingFormat": {
            "title": "Ranking format",
            "enum": [
              "test",
              "odi",
              "t20"
            ],
            "type": "string",
            "description": "Match format for ICC rankings. Women rankings support test and t20.",
            "default": "odi"
          },
          "rankingWomen": {
            "title": "Women rankings",
            "type": "boolean",
            "description": "Return women rankings instead of men rankings.",
            "default": false
          },
          "refresh": {
            "title": "Force refresh",
            "type": "boolean",
            "description": "Ignore fresh cache entries and collect fresh data in sync mode.",
            "default": false
          },
          "maxRequests": {
            "title": "Maximum requests",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Hard per-run quota guard. Use 1–5 for ordinary scheduled runs.",
            "default": 5
          },
          "includeRawData": {
            "title": "Include original response",
            "type": "boolean",
            "description": "Adds the original unnormalized response to the dataset result. Prefer false for regular runs.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}