{
  "openapi": "3.0.1",
  "info": {
    "title": "NCAA API - College Sports",
    "description": "Fetch comprehensive NCAA college sports data including basketball rankings, football standings, team rosters, player statistics, and game schedules for all divisions.\nBasketball Data & Football Data\nTeams\nRankings\nSchedule\nScores\nStandings",
    "version": "3.1",
    "x-build-id": "JQW6WAEyZP2bKjNCx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alizarin_refrigerator-owner~ncaa-api---college-sports/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alizarin_refrigerator-owner-ncaa-api---college-sports",
        "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/alizarin_refrigerator-owner~ncaa-api---college-sports/runs": {
      "post": {
        "operationId": "runs-sync-alizarin_refrigerator-owner-ncaa-api---college-sports",
        "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/alizarin_refrigerator-owner~ncaa-api---college-sports/run-sync": {
      "post": {
        "operationId": "run-sync-alizarin_refrigerator-owner-ncaa-api---college-sports",
        "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",
        "required": [
          "task"
        ],
        "properties": {
          "task": {
            "title": "Task",
            "enum": [
              "basketball_teams",
              "basketball_rankings",
              "basketball_schedule",
              "basketball_scores",
              "basketball_standings",
              "football_teams",
              "football_rankings",
              "football_schedule",
              "football_scores",
              "football_standings",
              "baseball_teams",
              "baseball_scores",
              "baseball_standings",
              "hockey_teams",
              "hockey_scores",
              "hockey_standings",
              "lacrosse_teams",
              "lacrosse_scores",
              "volleyball_teams",
              "volleyball_scores",
              "softball_teams",
              "softball_scores",
              "soccer_teams",
              "soccer_scores",
              "soccer_standings",
              "team_roster",
              "player_stats",
              "injury_report",
              "conference_teams",
              "team_schedule",
              "head_to_head",
              "betting_odds",
              "betting_odds_history",
              "arbitrage_finder",
              "live_scores",
              "alerts",
              "recruiting_rankings",
              "bracket_projections"
            ],
            "type": "string",
            "description": "What data to fetch. For multiple tasks in one run, use the 'tasks' field below.",
            "default": "basketball_rankings"
          },
          "tasks": {
            "title": "Batch Tasks",
            "type": "array",
            "description": "Run multiple tasks in one call. Overrides single task. Example: [\"basketball_rankings\", \"basketball_scores\"]",
            "items": {
              "type": "string"
            }
          },
          "sport": {
            "title": "Sport",
            "enum": [
              "basketball",
              "football",
              "baseball",
              "hockey",
              "lacrosse",
              "volleyball",
              "softball",
              "soccer"
            ],
            "type": "string",
            "description": "Sport (auto-detected from task prefix, but can override). Used for generic tasks like team_roster, player_stats, etc.",
            "default": "basketball"
          },
          "division": {
            "title": "Division",
            "enum": [
              "D1",
              "D2",
              "D3"
            ],
            "type": "string",
            "description": "NCAA Division (D1, D2, or D3)",
            "default": "D1"
          },
          "conference": {
            "title": "Conference",
            "type": "string",
            "description": "Filter by conference (SEC, Big Ten, ACC, etc.). Required for conference_teams."
          },
          "teamId": {
            "title": "Team ID",
            "type": "string",
            "description": "ESPN team ID. Required for team_roster, team_schedule, head_to_head. Find via *_teams tasks. Common: Duke=150, UNC=153, Kansas=2305, Alabama=333"
          },
          "teamId2": {
            "title": "Team ID 2 (for Head-to-Head)",
            "type": "string",
            "description": "Second team's ESPN ID for head_to_head matchup comparison."
          },
          "playerId": {
            "title": "Player ID",
            "type": "string",
            "description": "ESPN player ID for player_stats. Find via team_roster."
          },
          "season": {
            "title": "Season",
            "minimum": 2000,
            "maximum": 2030,
            "type": "integer",
            "description": "Optional. Leave empty for the current season (recommended). ESPN numbers basketball, hockey and other winter sports by the year the season ENDS: 2027 = the 2026-27 season, 2026 = 2025-26. Football uses the year it is played: 2026 = the 2026 season. Applies to rosters, rankings, standings and team schedules."
          },
          "week": {
            "title": "Week (Football)",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Football week number (1-15). Only applies to football tasks."
          },
          "gender": {
            "title": "Gender",
            "enum": [
              "mens",
              "womens"
            ],
            "type": "string",
            "description": "Men's or Women's sports",
            "default": "mens"
          },
          "demoMode": {
            "title": "Demo Mode",
            "type": "boolean",
            "description": "Return built-in sample data instead of live ESPN data (no API calls, always free). Leave off for real data.",
            "default": false
          },
          "outputFormat": {
            "title": "Output Format",
            "enum": [
              "json",
              "csv"
            ],
            "type": "string",
            "description": "json (default) or csv. CSV files saved to Key-Value Store.",
            "default": "json"
          },
          "datasetLayout": {
            "title": "Dataset layout",
            "enum": [
              "row_per_record",
              "single_item"
            ],
            "type": "string",
            "description": "How results are stored. 'One row per record' makes table, CSV and Excel exports show every player or team. 'Legacy' keeps the old shape: one item per task with all records nested in data.",
            "default": "row_per_record"
          },
          "firecrawlApiKey": {
            "title": "Firecrawl API Key",
            "type": "string",
            "description": "Firecrawl key for scraping 247Sports recruiting data. Free at https://firecrawl.dev. Only used by recruiting_rankings task. Without it, falls back to ESPN (less detailed)."
          },
          "oddsApiKey": {
            "title": "The Odds API Key",
            "type": "string",
            "description": "Required for betting_odds, betting_odds_history, arbitrage_finder. Free: 500 req/month at https://the-odds-api.com"
          },
          "oddsTeamFilter": {
            "title": "Filter Odds by Team",
            "type": "string",
            "description": "Only return odds for games involving this team (e.g., \"Duke\")"
          },
          "oddsGameId": {
            "title": "Game ID",
            "type": "string",
            "description": "Specific game ID for betting_odds or betting_odds_history. Find via betting_odds task."
          },
          "alertType": {
            "title": "Alert Type",
            "enum": [
              "odds_movement",
              "score_event",
              "upset"
            ],
            "type": "string",
            "description": "What to monitor for the alerts task",
            "default": "odds_movement"
          },
          "alertThreshold": {
            "title": "Alert Threshold",
            "type": "number",
            "description": "For odds_movement: minimum spread point change to trigger alert (default: 2)",
            "default": 2
          },
          "alertPollingSeconds": {
            "title": "Alert Polling Interval",
            "minimum": 30,
            "maximum": 300,
            "type": "integer",
            "description": "Seconds between alert checks (default: 60)",
            "default": 60
          },
          "alertMaxDuration": {
            "title": "Alert Max Duration",
            "minimum": 60,
            "maximum": 3600,
            "type": "integer",
            "description": "Max seconds to run alerts (default: 600 = 10 min)",
            "default": 600
          },
          "livePollingSeconds": {
            "title": "Live Score Polling Interval",
            "minimum": 15,
            "maximum": 120,
            "type": "integer",
            "description": "Seconds between score checks (default: 30)",
            "default": 30
          },
          "liveMaxDuration": {
            "title": "Live Max Duration",
            "minimum": 60,
            "maximum": 3600,
            "type": "integer",
            "description": "Max seconds to poll (default: 600 = 10 min)",
            "default": 600
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "URL to POST results. Required for live_scores and alerts. Optional for other tasks."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}