{
  "openapi": "3.1.0",
  "info": {
    "title": "BluecollarDFS Projections API",
    "version": "1.0.0",
    "summary": "Daily fantasy sports player projections for NFL, NBA, MLB and PGA golf on DraftKings, FanDuel and Yahoo.",
    "description": "Returns the same projections that power the BluecollarDFS lineup optimizer, as JSON grouped by slate. Every request needs an API key. Premium API access is for personal research, scripts, models, private development/testing, and personal lineup generation; personal caching is allowed. Public, customer-facing, or members-only applications need a separate commercial arrangement, whether free or paid. Low request volume or server-side caching does not change this distinction. Contact bluecollardfs@gmail.com to discuss commercial access before subscribing for that purpose; commercial pricing is discussed individually. Personal-use keys come with BluecollarDFS Premium ($17.99 per month as of October 2026, https://bluecollardfs.com/plans); after subscribing, email your account email and use case to receive a key. Each Premium key allows 200 requests per day across all feeds, resetting at midnight UTC. Human-readable docs: https://bluecollardfs.com/developers",
    "contact": {
      "name": "BluecollarDFS",
      "email": "bluecollardfs@gmail.com",
      "url": "https://bluecollardfs.com/developers"
    }
  },
  "externalDocs": {
    "description": "Projections API documentation",
    "url": "https://bluecollardfs.com/developers"
  },
  "servers": [
    {
      "url": "https://bluecollardfs.com"
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "paths": {
    "/api/{feed}": {
      "get": {
        "operationId": "getProjections",
        "summary": "Get projections for one sport and DFS site",
        "description": "Returns every current slate for the feed, each with its players' projections, salaries and value. Projections are usually available 2-3 hours before slate lock and update as games approach. Cache responses for at least 5 minutes.",
        "parameters": [
          {
            "name": "feed",
            "in": "path",
            "required": true,
            "description": "Sport and DFS site, as {sport}_{site}.",
            "schema": {
              "type": "string",
              "enum": [
                "nfl_draftkings",
                "nfl_fanduel",
                "nfl_yahoo",
                "nba_draftkings",
                "nba_fanduel",
                "nba_yahoo",
                "mlb_draftkings",
                "mlb_fanduel",
                "mlb_yahoo",
                "golf_draftkings",
                "golf_fanduel",
                "golf_yahoo"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Projection data for every current slate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectionsResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error",
            "description": "Missing or invalid API key."
          },
          "403": {
            "$ref": "#/components/responses/Error",
            "description": "The API key doesn't include the requested sport."
          },
          "429": {
            "$ref": "#/components/responses/Error",
            "description": "Daily request limit reached. Retry after midnight UTC."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "Send the header as `Authorization: ApiKey <your key>`, for example `ApiKey bcdfs_live_...`."
      }
    },
    "responses": {
      "Error": {
        "description": "Error",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "ProjectionsResponse": {
        "type": "object",
        "required": [
          "slates"
        ],
        "properties": {
          "slates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Slate"
            }
          }
        }
      },
      "Slate": {
        "type": "object",
        "properties": {
          "slate": {
            "type": "string",
            "description": "Slate name as the DFS site lists it.",
            "examples": [
              "Main"
            ]
          },
          "slate_type": {
            "type": "string",
            "enum": [
              "classic",
              "showdown"
            ],
            "description": "showdown covers single-game contests."
          },
          "date": {
            "type": "string",
            "description": "Slate date as MM_DD_YY.",
            "examples": [
              "02_26_26"
            ]
          },
          "updated": {
            "type": "string",
            "description": "Time of the last projection update, Eastern Time.",
            "examples": [
              "15:18:01 ET"
            ]
          },
          "info": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Player"
            }
          }
        }
      },
      "Player": {
        "type": "object",
        "description": "Numeric fields are returned as strings.",
        "properties": {
          "name": {
            "type": "string"
          },
          "team": {
            "type": "string",
            "examples": [
              "NYK"
            ]
          },
          "position": {
            "type": "string",
            "examples": [
              "PG"
            ]
          },
          "opponent": {
            "type": "string",
            "examples": [
              "BOS"
            ]
          },
          "projection": {
            "type": "string",
            "description": "Projected DFS points for this site's scoring.",
            "examples": [
              "42.5"
            ]
          },
          "salary": {
            "type": "string",
            "examples": [
              "8200"
            ]
          },
          "value": {
            "type": "string",
            "description": "Projection relative to salary; higher is better value.",
            "examples": [
              "5.2"
            ]
          },
          "site_id": {
            "type": "string",
            "description": "The site's own player ID, as used in that site's lineup CSV uploads. On DraftKings single-game slates, Captain and FLEX/UTIL rows have separate IDs.",
            "examples": [
              "38710245"
            ]
          },
          "start_time": {
            "type": "string",
            "description": "Game start time in Eastern time, e.g. 07:30PM ET. For golf, the slate's start. May be null when a site doesn't provide it.",
            "examples": [
              "07:30PM ET"
            ]
          }
        }
      }
    }
  }
}
