👕Predictive Lineups
Overview
The Predictive Lineups API returns AI-generated starting lineup predictions for upcoming fixtures. Predictions are generated and refreshed at multiple timeframes before kickoff:
96 hours before kickoff
72 hours before kickoff
48 hours before kickoff
24 hours before kickoff
12 hours before kickoff
3 hours before kickoff
1 hour before kickoff
At kickoff
Each call returns the most recent prediction available for the fixture.
Endpoint
Get Predicted Lineup
Returns the latest predicted lineup for a fixture.
Request body
username
string
Yes
Package credentials username
password
string
Yes
Package credentials password
packageId
integer
Yes
Your package ID
fixtureId
long
Yes
The fixture to retrieve the lineup for
Success (200)
Returns the latest predicted lineup. If no prediction has been generated yet for the fixture, lastUpdate is null and both lineup arrays are empty.
Validation Error (400)
Possible validation errors:
"PackageId must be a positive integer""Username is required""Password is required""Invalid package credentials"
Server Error (500)
cURL
Response Fields
FixtureLineup
fixtureId
long
The fixture ID
lastUpdate
string (ISO 8601) or null
When the prediction was generated. Null if no prediction exists yet.
PlayerLineup
playerId
long
LSports player ID (0 if not resolved)
name
string
Player name
shirtNumber
integer or null
Shirt number
isCaptain
boolean
Whether the player is predicted to captain the side
birthDate
string (ISO 8601) or null
Date of birth from LSports mapping
PlayerTeam
id
integer
LSports team ID
name
string or null
Team name
sportId
integer
Sport ID
locationId
integer
Location (country) ID
PlayerNationality
id
integer
LSports nationality ID
name
string or null
Nationality name
Status Values
1
Starter
2
Substitute
3
Injured
4
Suspended
Positions
Positions reflect the player's specific role in the predicted lineup for this match.
GK
Goalkeeper
CB
Centre-back
RB
Right-back
LB
Left-back
RWB
Right wing-back
LWB
Left wing-back
CDM
Defensive midfielder
CM
Central midfielder
RM
Right midfielder
LM
Left midfielder
AMC
Attacking midfielder (centre)
AMR
Attacking midfielder (right)
AML
Attacking midfielder (left)
RW
Right winger
LW
Left winger
SS
Second striker
ST
Striker
CF
Centre-forward
Notes
Players with
playerId: 0could not be resolved to an LSports player ID. Theirteam,nationality, andbirthDatefields will benull.
See also
Customers API Guide — package activation, snapshot, and status endpoints
Metadata API Guide — look up sport, location, league, period, and incident reference data
Last updated
Was this helpful?