{
  "openapi": "3.0.1",
  "info": {
    "title": "UFC & MMA Stats Scraper — Fighters, Fights, Events & Rankings",
    "description": "Build MMA betting models, fantasy tools and fight databases on clean data: bout results with method and round, 42 measured stats per fighter per fight, reach, stance and gym per athlete. 19 promotions — UFC, PFL, ONE, Bellator, plus defunct PRIDE and Strikeforce. UFC back to 1994.",
    "version": "0.0",
    "x-build-id": "RBs0p3CA8sCYvcfk8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~ufc-mma-stats-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-ufc-mma-stats-scraper",
        "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/memo23~ufc-mma-stats-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-ufc-mma-stats-scraper",
        "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/memo23~ufc-mma-stats-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-ufc-mma-stats-scraper",
        "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 to scrape",
            "enum": [
              "fights",
              "fightStats",
              "fighters",
              "fighterCareer",
              "rankings",
              "events"
            ],
            "type": "string",
            "description": "fights = one row per bout (fighters, weight class, winner, method, round, time). fightStats = one row per fighter per bout with the full 42-stat striking and grappling breakdown. fighters = one row per fighter profile. fighterCareer = career totals plus strikes-per-minute, accuracy and defence, computed from that fighter's own bouts. rankings = current division rankings, champions and pound-for-pound. events = one row per fight card.",
            "default": "fights"
          },
          "promotions": {
            "title": "Promotions",
            "type": "array",
            "description": "Which promotions to cover. UFC has the deepest history (1994 to today). Defunct promotions such as PRIDE, Strikeforce and WEC are included for historical research.",
            "items": {
              "type": "string",
              "enum": [
                "ufc",
                "pfl",
                "bellator",
                "ofc",
                "lfa",
                "cage-warriors",
                "ksw",
                "rizin",
                "ifc",
                "pancrase",
                "m1",
                "tfc",
                "strikeforce",
                "wec",
                "pride",
                "xfc",
                "k1",
                "dream",
                "ifl"
              ]
            },
            "default": [
              "ufc"
            ]
          },
          "years": {
            "title": "Years",
            "type": "array",
            "description": "Calendar years to cover, e.g. 2024, 2025. One run can span several years. Defaults to the current year. Ignored when a date range is set below.",
            "items": {
              "type": "string"
            }
          },
          "fromDate": {
            "title": "From date (YYYYMMDD)",
            "type": "string",
            "description": "Start of an explicit date window, e.g. 20240101. Overrides Years when both this and To date are set."
          },
          "toDate": {
            "title": "To date (YYYYMMDD)",
            "type": "string",
            "description": "End of an explicit date window, e.g. 20241231."
          },
          "eventIds": {
            "title": "Event IDs",
            "type": "array",
            "description": "Restrict the run to specific ESPN event IDs. Leave empty to take every event in the window.",
            "items": {
              "type": "string"
            }
          },
          "fighterIds": {
            "title": "Fighter IDs",
            "type": "array",
            "description": "Restrict Fighters mode to specific ESPN athlete IDs. Leave empty to take the whole roster.",
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "Fighter name",
            "type": "string",
            "description": "Find a fighter by name or nickname, e.g. 'McGregor' or 'The Notorious'. Resolved through ESPN's search, so it returns in seconds. Applies to Fighters and Fighter career modes."
          },
          "stance": {
            "title": "Stance",
            "enum": [
              "",
              "Orthodox",
              "Southpaw",
              "Switch",
              "Open Stance",
              "Sideways"
            ],
            "type": "string",
            "description": "Only return fighters with this stance. Leave empty for all.",
            "default": ""
          },
          "minWins": {
            "title": "Minimum career wins",
            "minimum": 0,
            "type": "integer",
            "description": "Only include fighters with at least this many wins, read from their record."
          },
          "minLosses": {
            "title": "Minimum career losses",
            "minimum": 0,
            "type": "integer",
            "description": "Only include fighters with at least this many losses."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. ESPN rate-limits by IP, so a long run behind rotating proxies survives where a single address gets refused. Not needed for small runs.",
            "default": {
              "useApifyProxy": false
            }
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop the run after this many rows. Keeps a run's cost predictable.",
            "default": 1000
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel requests. The default of 4 is deliberately conservative — ESPN rate-limits bursts and will refuse traffic for several minutes if pushed.",
            "default": 4
          },
          "throttleMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Minimum gap between requests. Raise it if a large run starts hitting refusals.",
            "default": 120
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}