Coaches By Country
This endpoint allows you to retrieve the coaches from a specific country.
Multi-language: This feature allows the user to manually change the language of the API response by adding value to the
lang
attribute. 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 day.
Recommended Calls: Limit calls to 1 per day.
Use Cases
Get coaches from a specific country_idhttps://baseball.sportdevs.com/coaches-by-country?country_id=eq.{country_id}
Query Parameters
- country_id integer
Default value:
eq.2
The id of the country
- offset string
Default value:
0
Limiting and Pagination
- limit string
Default value:
50
Limiting and Pagination
- lang string
Default value:
en
Multi-language
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema array
- country_id integer
The id of the country
Note: This is a Foreign Key to
countries.id
. - country_name text
The name of the country
- country_hash_image character varying
Possible values:
<= 64 characters
The hash image of the country
- coaches jsonb
The coaches
[
{
"country_id": 2,
"country_name": "USA",
"country_hash_image": "9b202ecbc6d45c6d8901d989a918878397a3eb9d00e8f48022fc051b19d21a1d",
"coaches": [
{
"id": 779,
"name": "Dusty Baker",
"hash_image": "48fb1fbdff0de4e2564f6c84f56304a178a0089c8c7668288e0fc5b76bc2c3b1"
},
{
"id": 786,
"name": "Aaron Boone",
"hash_image": "6c0703221bb1e93fd34d63d04686af1893a3a1930ce18cabcf5399f7d1a091ed"
},
{
"id": 5799,
"name": "Phil Nevin",
"hash_image": "6532fd7ad2e4522e19e32b67c2545ab1da86330542932a4d3fa80d55e8f79515"
},
{
"id": 5800,
"name": "Brandon Hyde",
"hash_image": "b3658dbec3630e4a1aadfb4669109d3ea804fd3c7f74821337b596302131ba0e"
},
{
"id": 5802,
"name": "Kevin Cash",
"hash_image": "d5e4ee18613a7aa354f76a551a2f067c497faad439f59a3551434f9bff9325f7"
},
{
"id": 5803,
"name": "David Ross",
"hash_image": "066dc7f6ca064050beb9008b618e6b59e7c437a0e0cb8ba0b3df3493e14ce67c"
},
{
"id": 5804,
"name": "Bruce Bochy",
"hash_image": "b30559dbed0410f3b0180edab64a5567f9705453c4cb33d3a1b5b3491fe32296"
},
{
"id": 5805,
"name": "David Bell",
"hash_image": "3a47aa18f1b822f186b500fcd1ca79c383bc734afe9b8f8044385bd29e6c75dd"
},
{
"id": 5806,
"name": "Mark Kotsay",
"hash_image": "2141a662a5d3b2183042b25dab099fae78bc05c89ea814ad8de25596f126bc3a"
},
{
"id": 5811,
"name": "Torey Lovullo",
"hash_image": "21ed8900d7f7592f7de966cc1adf4f012f447a451f765487a735b48c34623ff1"
},
{
"id": 5813,
"name": "Rocco Baldelli",
"hash_image": "472a4910c82c5eb6bbd8f99a26b8839c099755bccb74960b2ce90c00114fdf76"
},
{
"id": 5814,
"name": "Scott Servais",
"hash_image": "3ad4638e1ed2fd61c3dae9fe965e3ce87f35a98cae8816f2991d4b7064dfebf3"
},
{
"id": 5816,
"name": "A.J. Hinch",
"hash_image": "0bd11c7eacbd9735f218b64d1245f251f63c65465b2b137aeb14f574d40b2eb9"
},
{
"id": 5819,
"name": "Dave Roberts",
"hash_image": "5c5ba218b12fa6dcbcaa8eb7fa5c4a786cd93dcc86085a08d68e9d3774d4dfc3"
},
{
"id": 5820,
"name": "Brian Snitker",
"hash_image": "5f28b8b51dd3fe08fbbbfb5d37a5bbad242e187f9600dba1a8f9da5f77a8f16b"
},
{
"id": 5826,
"name": "Craig Counsell",
"hash_image": "fa90e9b192ca866dc118fd872856f4e0f2f110ac3bbad2cb3769877ad8398676"
},
{
"id": 5827,
"name": "Bob Melvin",
"hash_image": "d46c8a2a5e73c46f5a9863272aebca4854b0d73f4db49bd053f0b7bc93d7ffe8"
},
{
"id": 5828,
"name": "Gabe Kapler",
"hash_image": "faf0f83dd1f89413540f2e5e0f3951719d06e5abbd3cc3724ed64822c4f5126d"
},
{
"id": 5831,
"name": "Buck Showalter",
"hash_image": "41be0064275d25dfc81c91febe64ff57656ae990bb53f6840745cd0209a4d834"
},
{
"id": 5834,
"name": "Skip Schumaker",
"hash_image": "542d541d89822d81ef2881fd26c2fecd8d5ba60996d37efb3cdecaa1067542fa"
},
{
"id": 5839,
"name": "Bud Black",
"hash_image": "315ab15c9c9c9d000560cbc28a14879a17689a28ea7dfc30bd22752d3392a8ee"
}
]
}
]