{
  "openapi": "3.0.1",
  "info": {
    "title": "UFC Scraper: Fighters, Cards, Results, Rankings & Odds",
    "description": "Get UFC.com fighter profiles and career stats, full fight cards, results, official rankings, displayed moneylines and a saved card-change journal. Built for MMA analysts, bettors, fantasy apps, journalists and AI agents. Start with {} for a quick sample.",
    "version": "0.1",
    "x-build-id": "bIs2d9wjTO2iJdD1b"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~ufc-fight-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-ufc-fight-data",
        "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/automatic~ufc-fight-data/runs": {
      "post": {
        "operationId": "runs-sync-automatic-ufc-fight-data",
        "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/automatic~ufc-fight-data/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-ufc-fight-data",
        "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": "Data to collect",
            "enum": [
              "events",
              "fighters",
              "rankings",
              "fightWeek"
            ],
            "type": "string",
            "description": "Collect fight cards, fighter profiles, official rankings, or fight-week weigh-ins (fightWeek: the next card or one eventSlugs card joined to its Official Weigh-In Results)."
          },
          "eventSlugs": {
            "title": "Event slugs",
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "description": "Specific UFC event slugs, for example ufc-334. Omit to select from the calendar. fightWeek takes one slug. An empty list is an error.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            }
          },
          "weighInArticleSlug": {
            "title": "Weigh-in article slug",
            "minLength": 1,
            "maxLength": 200,
            "type": "string",
            "description": "fightWeek only: the UFC.com news slug of the Official Weigh-In Results article, for example official-weigh-results-polymarket-ufc-334-gane-vs-hokit. Omit to find it automatically during fight week."
          },
          "athleteSlugs": {
            "title": "Athlete slugs",
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "description": "Specific UFC athlete slugs. Use heili-alateng for Alatengheili. An empty list is an error.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            }
          },
          "searchTerms": {
            "title": "Names to search",
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "description": "Fighter names or event names. Each term is searched separately and merged by source identity. An empty list is an error.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "eventType": {
            "title": "Calendar selection",
            "enum": [
              "upcoming",
              "past",
              "all"
            ],
            "type": "string",
            "description": "Upcoming, past or all events. Specific eventSlugs bypass calendar selection."
          },
          "dateFrom": {
            "title": "From UTC date",
            "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Include events whose main card starts on or after YYYY-MM-DD."
          },
          "dateTo": {
            "title": "Through UTC date",
            "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Include events whose main card starts on or before YYYY-MM-DD."
          },
          "division": {
            "title": "Division",
            "enum": [
              "flyweight",
              "bantamweight",
              "featherweight",
              "lightweight",
              "welterweight",
              "middleweight",
              "light-heavyweight",
              "heavyweight",
              "womens-strawweight",
              "womens-flyweight",
              "womens-bantamweight",
              "womens-featherweight",
              "mens-pound-for-pound",
              "womens-pound-for-pound",
              "pound-for-pound"
            ],
            "type": "string",
            "description": "Filter fighters or rankings to one division."
          },
          "fighterStatus": {
            "title": "Fighter status",
            "enum": [
              "active",
              "not-fighting",
              "retired"
            ],
            "type": "string",
            "description": "Filter fighter profiles by official career status."
          },
          "country": {
            "title": "Country of birth",
            "minLength": 1,
            "maxLength": 100,
            "type": "string",
            "description": "Filter fighter profiles by country of birth, for example France."
          },
          "gender": {
            "title": "Gender",
            "enum": [
              "male",
              "female"
            ],
            "type": "string",
            "description": "Filter fighters or rankings by male or female division."
          },
          "includeStats": {
            "title": "Career statistics",
            "type": "boolean",
            "description": "Include the statistics displayed on each athlete profile.",
            "default": true
          },
          "maxEvents": {
            "title": "Maximum events",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum event cards to collect: 1–50. Omitted: 2, or 1 for the quick sample."
          },
          "maxResults": {
            "title": "Maximum output rows",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum bouts, fighters, ranking lists or changes delivered. Pending changes carry forward.",
            "default": 1000
          },
          "onlyChangesSinceLastRun": {
            "title": "Changes only",
            "type": "boolean",
            "description": "Save a complete first baseline, then return typed changes on later runs with the same stateKey. Works with events and fightWeek.",
            "default": false
          },
          "stateKey": {
            "title": "Change journal key",
            "minLength": 1,
            "maxLength": 120,
            "type": "string",
            "description": "Required for changes only. Reuse a key for the same watchlist; use a new key for an independent baseline."
          },
          "maxPages": {
            "title": "Maximum discovery pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Bound calendar or athlete discovery. OUTPUT names incomplete discovery.",
            "default": 10
          },
          "maxRequests": {
            "title": "Maximum requests",
            "minimum": 1,
            "maximum": 80,
            "type": "integer",
            "description": "Bound all page requests including fallback attempts.",
            "default": 40
          },
          "useDatacenterFallback": {
            "title": "Allow datacenter fallback",
            "type": "boolean",
            "description": "Allow an alternate Apify datacenter connection after a page failure. Applies only to platform runs.",
            "default": true
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}