Multi

DFS lineup optimizer (Growth+)

Generates an optimized DFS lineup for a slate using a greedy knapsack algorithm, boosted by alpha metrics (opportunity_ceiling) as a value-score adjustment.

Tier access: Growth, Pro Insights, Syndicate Alpha

post/v1/lineup/optimize

Request

  • Base URL: https://api.playcallerapp.com
  • URL: https://api.playcallerapp.com/v1/lineup/optimize
  • Auth: API key in header X-PlayCaller-Key

Request body

slate_idinteger required

The DFS slate's DB id (from /v1/{sport}/dfs/slates)

sitestring required

DFS site the lineup is being built for

locked_playersstring[]

Player IDs to force into the lineup

excluded_playersstring[]

Player IDs to exclude

captain_playerstring nullable

Player ID to force into the captain/MVP slot, if the site format has one

Response

Optimized lineup

successboolean
endpointstring
total_salaryinteger
salary_remaininginteger
projected_pointsnumber
optimization_methodstring
confidencestring nullable

Example response

{
  "optimization_method": "greedy_knapsack"
}

Changes

No recorded changes to this operation across all 1 revision of this API.