Matches Lineupsâ
This endpoint allows you to retrieve the lineups from matches.
With this endpoint you can see the lineups from the match. This endpoint also has confirmed filed to check if the lineup is confirmed.
Fields in lineup:
| Field | Explanation |
|---|---|
formation | The formation of the lineup |
player_color_primary | The primary color of the players |
player_color_number | The number color of the players |
player_color_outline | The outline color of the players |
goalkeeper_color_primary | The primary color of the goalkeeper |
goalkeeper_color_number | The number color of the goalkeeper |
goalkeeper_color_outline | The outline color of the goalkeeper |
players | The players of the lineup |
Fields in players:
| Field | Explanation |
|---|---|
player_id | The id of the player |
shirt_number | The shirt number of the player |
jersey_number | The jersey number of the player |
position | The position of the player |
substitute | If the player is substituted |
Resons for missing the match:
| Id | Reason |
|---|---|
| 0 | Other |
| 1 | Injured |
| 2 | Ill |
| 3 | Suspended |
| 11 | YellowCard |
| 12 | YellowRedCard |
| 13 | RedCard |
| 21 | OnLoan |
Multi-language: This feature allows the user to manually change the language of the API response by adding value to the
langattribute. Example:lang=en.
Pagination: The endpoint uses an offset and limit system. Specify the offset and limit parameters to fetch the desired range of results. The maximum and default number of results per request is 50.
Update Period: The endpoint is updated every 5 minutes. Recommended Calls: Limit calls to 1 every 5 minutes.
Use Casesâ
Get lineups based on the idhttps://baseball.sportmicro.com/matches-lineups?id=eq.{id}
Query Parameters
- id integer
The id of the lineup
Example: eq.1 - offset string
Default value:
0Limiting and Pagination
Example: 0 - limit string
Default value:
50Limiting and Pagination
Example: 50 - lang string
Default value:
enMulti-language
Example: en
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema array
- id integer
The id of the lineup
Note: This is a Primary Key.
- confirmed boolean
If the lineup is confirmed
- home_team jsonb
The lineup of the home team
- away_team jsonb
The lineup of the away team
[
{
"id": 1,
"confirmed": true,
"home_team": {
"players": [
{
"position": "C",
"player_id": 7908,
"substitute": false,
"player_name": "Adley Rutschman",
"player_hash_image": "c8ea7bcbd27c5929fdd9bfd6a28f7080563046c8c9eb6674879f21af0d05fc91"
},
{
"position": "IF",
"player_id": 7199,
"substitute": false,
"player_name": "Adam Frazier",
"player_hash_image": "415afb503bed06ed4a2b62fa7c69338f59d115ab12ec8df3f1b2388c5552cc5f"
},
{
"position": "IF",
"player_id": 7927,
"substitute": false,
"player_name": "Ryan Mountcastle",
"player_hash_image": "34d4c1cc9376e8b05aeb65f9dc8068ff77de72953e4291bb9e760113753654ba"
},
{
"position": "IF",
"player_id": 7940,
"substitute": false,
"player_name": "Gunnar Henderson",
"player_hash_image": "05c7c9345de0b2ca59eb41a8f974d14e1dc7b068fb194e8529044ea9e4c5bfdb"
},
{
"position": "IF",
"player_id": 8801,
"substitute": true,
"player_name": "Ryan O'Hearn",
"player_hash_image": "d1991c5375347852ab28569a5cac6b548ea636563b91d871730ede472cae41b2"
},
{
"position": "IF",
"player_id": 9468,
"substitute": false,
"player_name": "RamĂłn UrĂas",
"player_hash_image": "5aed147f482a38ef146bc085cafc645777e5007dd7c9dd012cc3a0e106c24275"
},
{
"position": "IF",
"player_id": 9527,
"substitute": false,
"player_name": "Jordan Westburg",
"player_hash_image": "94046c0881ca21c6b5497f63aa10c99cd415150f6468a44224c0360f41a0223f"
},
{
"position": "IF",
"player_id": 9540,
"substitute": true,
"player_name": "Jorge Mateo",
"player_hash_image": "6b102aab991858657ca956aed95a08863d6001c0a22a2507afb1ec6a8373aed0"
},
{
"position": "OF",
"player_id": 9498,
"substitute": false,
"player_name": "Austin Hays",
"player_hash_image": "9f6897e277cbc9de0284da68ffbe4343ac6e4d5235f1de5b8ad3bd2830f02fdf"
},
{
"position": "OF",
"player_id": 9512,
"substitute": false,
"player_name": "Anthony Santander",
"player_hash_image": "b4939d3f06be7db5d9776777d7c156e063e059b6c4cf49b5027f7401e054d59e"
},
{
"position": "OF",
"player_id": 9520,
"substitute": false,
"player_name": "Aaron Hicks",
"player_hash_image": "9a14143a3640023bf60f74633e501b21f88305c02f6a3a356c7543850711d1b6"
},
{
"position": "OF",
"player_id": 9532,
"substitute": false,
"player_name": "Cedric Mullins",
"player_hash_image": "07f2c41c1f4eeafe2e343352495f77770b9ccc025bf5cbbab578bb8b9783b3cf"
},
{
"position": "P",
"player_id": 6774,
"substitute": false,
"player_name": "Kyle Bradish",
"player_hash_image": "a562b3ea4d5f493d0ad9d9e40a61fd10238a04d2c67322c82802f67140bbf53f"
},
{
"position": "P",
"player_id": 6780,
"substitute": true,
"player_name": "Tyler Wells",
"player_hash_image": "60076a69951c87ca54d1a749d55d9fed048ee2d573eee391fba945c7365ecbb7"
},
{
"position": "P",
"player_id": 7041,
"substitute": true,
"player_name": "Jacob Webb",
"player_hash_image": "a6cf6613c91291520934c65351433c6b21348344d312859abb58d6a2e71838ba"
},
{
"position": "P",
"player_id": 8378,
"substitute": true,
"player_name": "Cionel Pérez",
"player_hash_image": "6071d7df635c516db1585c847930bd870acb7a65c9e42ecf5bcfa216e5f14ba8"
},
{
"position": "P",
"player_id": 9548,
"substitute": true,
"player_name": "Danny Coulombe",
"player_hash_image": "967173d43bd88446a740ef84add18436b50f630b620ffde1aa158f9c8e1e21b5"
},
{
"position": "P",
"player_id": 9556,
"substitute": true,
"player_name": "DL Hall",
"player_hash_image": "23f2ed7b23335e4089d07a94197187fdf6a14356d349ace4e86c553c5689b501"
}
],
"player_color_number": "e6422c",
"player_color_primary": "000000"
},
"away_team": {
"players": [
{
"position": "C",
"player_id": 9569,
"substitute": false,
"player_name": "Jonah Heim",
"player_hash_image": "1207db7d61411a9ddc436bacc91ba7314e6e96abc4ba0df158667b270af6e063"
},
{
"position": "IF",
"player_id": 8550,
"substitute": false,
"player_name": "Josh Jung",
"player_hash_image": "3d7e628fd29368e8f984400cddf3c84970bfb532f785004f1e9230c0f05d6956"
},
{
"position": "IF",
"player_id": 8554,
"substitute": false,
"player_name": "Corey Seager",
"player_hash_image": "d4f0375d111ce8d653b4964656e73432501c0d4c4ce42d8532207bf89532e59b"
},
{
"position": "IF",
"player_id": 9560,
"substitute": false,
"player_name": "Marcus Semien",
"player_hash_image": "b1529382882486b0301cfc60fd90b306c774d8cc919c861b8c3b656897baade4"
},
{
"position": "IF",
"player_id": 9575,
"substitute": false,
"player_name": "Nathaniel Lowe",
"player_hash_image": "eeb75355e9ae6674ec000b276d0d36a1532a8946c87da4d0543a2865aa8f90ff"
},
{
"position": "OF",
"player_id": 7963,
"substitute": false,
"player_name": "Leody Taveras",
"player_hash_image": "bdc9578cd80d4534df016d1182e15d38df4b161fe7c63b424e910ed3ecf06588"
},
{
"position": "OF",
"player_id": 8142,
"substitute": false,
"player_name": "Jose GarcĂa",
"player_hash_image": "a45d0110386bedf4df18eb4a2fd18c5988bf9f2d8cd1f1901f3e352503d9e50d"
},
{
"position": "OF",
"player_id": 8588,
"substitute": false,
"player_name": "Evan Carter",
"player_hash_image": "7325ebb5bcde2fa5ce42509268e94f3ab9ec31c92b7586e98b649d552368ff23"
},
{
"position": "OF",
"player_id": 9563,
"substitute": false,
"player_name": "Robbie Grossman",
"player_hash_image": "2f9a2742d6ea6ac8de89bdb361e36c22e8dbc32434d72c4692d187fe4b55cf03"
},
{
"position": "P",
"player_id": 9274,
"substitute": true,
"player_name": "Aroldis Chapman",
"player_hash_image": "b75588a2d8c0ad3f55a8b992411ffe2ba3b7aac7c9773fd0f5d45ca3c0f011a6"
},
{
"position": "P",
"player_id": 9576,
"substitute": false,
"player_name": "Andrew Heaney",
"player_hash_image": "f24dc8b3f9f380cafc3cda3f55506b4e436b9bef9b0ce0d50a11795dd486bfb6"
},
{
"position": "P",
"player_id": 9588,
"substitute": true,
"player_name": "Dane Dunning",
"player_hash_image": "aca1708cf01e9a86cf8da0f6508e8f67c5816867d0348553f43caa86143cd177"
},
{
"position": "P",
"player_id": 9594,
"substitute": true,
"player_name": "Will Smith",
"player_hash_image": "c3ec3747275344c5eb475d363b4e901e8bfc9bb8f6e787cb9f066f8409f3f67b"
},
{
"position": "P",
"player_id": 9602,
"substitute": true,
"player_name": "Josh Sborz",
"player_hash_image": "e49f455f75bdc5f35475e36614485c05167dad8da44d1eff71e1e39ca124aad8"
},
{
"position": "P",
"player_id": 9609,
"substitute": true,
"player_name": "José Leclerc",
"player_hash_image": "7e01d2805e3b1626374eb22a8e649358bfe53dd23778fc1bd4a6eecbcda4914a"
}
],
"player_color_number": "000080",
"player_color_primary": "000000"
}
}
]