FotMob API endpoint
Returns the public lineup builder's prefilled formation, starting lineup, and squad for a team id. Discover open-ended team ids with /fotmob/search. Some teams legitimately have no squad list.
/fotmob/lineup-builder-teamQuery parameters:
team_id (required): numeric FotMob team id discoverable with /fotmob/search.The response preserves FotMob's prefilled formation, lineup, and squad fields. Some valid teams, including women's teams, may return an empty squad list. Unknown team ids return 404; malformed ids return 400.
| Field | Filled in, of 24 checked | Values in the sample |
|---|---|---|
| id | 24 | |
| name | 24 | “David Raya” and 23 other values |
| position | 24 | 0 to 3, median 2 |
| teamId | 24 | 9,825 |
| teamName | 24 | Arsenal in all 24 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| team_id | string | Yes | Numeric FotMob team id discoverable through /fotmob/search | 9825 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/fotmob/lineup-builder-team?team_id=9825" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"data": {
"source_url": "https://www.fotmob.com/api/data/lineup-builder/prefilled-team/9825",
"data": {
"teamId": 9825,
"formation": "4-2-3-1",
"lineup": {
"players": []
},
"squad": {
"players": []
}
}
}
}Request schema
No body schema
Response schema
#/definitions/fotmob.responseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | fotmob.sourceDataDoc | No | ||||
| data.data | object | No | ||||
| data.source_url | string | No | https://www.fotmob.com/api/data/matches?date=20260925&timezone=UTC | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/fotmob/lineup-builder-team?team_id=9825" \
-H "x-api-key: $CRAWLORA_API_KEY"