Teams By League
This endpoint allows you to retrieve the teams from a specific league.
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 teams from a specific league_idhttps://american-football.sportdevs.com/teams-by-league?league_id=eq.{league_id}
Query Parameters
- league_id integer
Default value:
eq.2856
The id of the league
- 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
- league_id integer
The id of the league
Note: This is a Foreign Key to
leagues.id
. - league_name text
The name of the league
- league_hash_image character varying
Possible values:
<= 64 characters
The hash image of the league
- teams jsonb
The teams
[
{
"league_id": 2856,
"league_name": "NFL",
"league_hash_image": "8177e407783797018a0631b96a5a39a542b59a36b63432905bcc8645b8a97602",
"teams": [
{
"id": 1800,
"name": "Kansas City Chiefs",
"hash_image": "25f07bf2edc54e76f6a1ad1cd748a659a27f2496e3f98ea710ec49b204cc0512"
},
{
"id": 1854,
"name": "Green Bay Packers",
"hash_image": "bf56755d3dd699ae54693513b06d5b0d0c52526cdf1ae7286803f25042e7683c"
},
{
"id": 46439,
"name": "Buffalo Bills",
"hash_image": "ae56975737afb0519c3cbf049c57174a89dd65dcdf8c23aaffbb17084a65f6be"
},
{
"id": 46456,
"name": "Baltimore Ravens",
"hash_image": "a9daca603827880320f830879d19098a52e7b40a1e124352bab117fd81614aef"
},
{
"id": 46461,
"name": "Pittsburgh Steelers",
"hash_image": "96fcdf7329f732d526b9c06b17e64ba0018933fe6f4682db1bed439ad3f5fcdb"
},
{
"id": 46485,
"name": "Cincinnati Bengals",
"hash_image": "1f86f1d4e52467ed34f571fac6ba2ba1fd9d6fd8cd0c620a3acb255311cca858"
},
{
"id": 46492,
"name": "Miami Dolphins",
"hash_image": "7958e23c90d95335f5eb854ff1b96b8732c691b862e60a2b1c8fdd709ed0fd13"
},
{
"id": 46494,
"name": "Cleveland Browns",
"hash_image": "c62cd512080012b8a22496c4148664466f589f16bf5c4da5a880cbc705435860"
},
{
"id": 46500,
"name": "New England Patriots",
"hash_image": "a1a2fd51ffc0ed20f25905589e21eace918597dc4c8a57b38be5fc77268d0ce5"
},
{
"id": 46511,
"name": "Indianapolis Colts",
"hash_image": "1c90d1520dd9198d2fa6ccaa1047a806fe7f15c28b9f74007d08f62ebb03dc7c"
},
{
"id": 46522,
"name": "Houston Texans",
"hash_image": "0cb706b580b979b8b86732156a874a0a0cd045fd518877464fa20f33f0584114"
},
{
"id": 46523,
"name": "Jacksonville Jaguars",
"hash_image": "ed3fa10ecf2141810dfd05a08902b788efc14430d0d40a3147d0f94f8fe1efd7"
},
{
"id": 46530,
"name": "Tennessee Titans",
"hash_image": "e705b54091d3d726e984d11d577137819101cfbe15b950140f8187bb4dca1190"
},
{
"id": 46540,
"name": "New York Jets",
"hash_image": "84947a2f1f6fe8550ab5736ebdd8e272afec7766920796977f3cb2f3b7504743"
},
{
"id": 46546,
"name": "Denver Broncos",
"hash_image": "ea2f5cf43a701caf91e7bf6be97a70de7619b9c6b5695e12b5511d1764c99c0a"
},
{
"id": 46547,
"name": "Las Vegas Raiders",
"hash_image": "28360d99743ecf65e845af5510def80ece617ba326be4b744f9b2eb45efe7b04"
},
{
"id": 46568,
"name": "Los Angeles Chargers",
"hash_image": "a7983fdc08bb85a4c8a1a2aa2ae49658dd7a1336526b553cf5041fd6eeb25435"
},
{
"id": 46576,
"name": "Philadelphia Eagles",
"hash_image": "e17c62d870bc44cfb847c2ce523d65f727fc3e3311b2188d5ee8ac3b9005f3f6"
},
{
"id": 46578,
"name": "Chicago Bears",
"hash_image": "a5630bc934507ae2bff198ab8afc03877da92c52592ec773bce59c47c49867c3"
},
{
"id": 46582,
"name": "San Francisco 49ers",
"hash_image": "7bc52437a3a5c5e302f63d13c3fac528e8469522e91d73e3b77ab01306b23c2d"
},
{
"id": 46590,
"name": "Los Angeles Rams",
"hash_image": "bde41157104fe109fbb350c5452c012a38757fdd3f99505669d3ffff7d45f86b"
},
{
"id": 46591,
"name": "Arizona Cardinals",
"hash_image": "f1ad49284275989f4aa1865fce5502cfeb28078ab8732b9792d2858d69f1e84b"
},
{
"id": 46592,
"name": "Tampa Bay Buccaneers",
"hash_image": "d084affeef7615bca92811bb7ecf0fb5a23b4f401b8f599adc414c88c4495b3d"
},
{
"id": 46593,
"name": "Atlanta Falcons",
"hash_image": "a525d124a5c5b7d4da812893fa4dccbe3a14d9acdfa7f7f3bfbf83b0006ef44e"
},
{
"id": 46613,
"name": "Carolina Panthers",
"hash_image": "5c77b9742532895a4506645320db47efec3490b4783a69dc49f46e8b8901547e"
},
{
"id": 46620,
"name": "Minnesota Vikings",
"hash_image": "fb31bbcd801214e1d12a3c8e7dc01c3101b97f1482c4150d208e6609c9f7a402"
},
{
"id": 46624,
"name": "New Orleans Saints",
"hash_image": "748bf0d823d4d1d1adb1e9fdc25b4ac78815890462c05d6a4ea14db9d367be10"
},
{
"id": 46628,
"name": "Seattle Seahawks",
"hash_image": "c77136d630d2b19d47ccf92274240af16313341785aa6b47c4baceb836ea3a28"
},
{
"id": 46638,
"name": "New York Giants",
"hash_image": "0ddb54625546581d7475d1e319f5b43340b09d02e8cc61405a1254b73594189f"
},
{
"id": 46643,
"name": "Washington Commanders",
"hash_image": "902fee178adb1eef40c43e4e2bc1a1fc6dd0dfbcfd64866c415448d2fa29abd1"
},
{
"id": 46644,
"name": "Detroit Lions",
"hash_image": "86cd85ce7148a28910373f8663d84bf8665dce5fe6249ee769b9457f52f14b26"
},
{
"id": 46647,
"name": "Dallas Cowboys",
"hash_image": "fdd609eddcfaaa7973d4cbaf8d02bf84de8c8c00b0b046a3443798a952a37921"
},
{
"id": 129433,
"name": "NFC",
"hash_image": "94157599b89bd7a153a931368604575dc3c65c335bd695980043507a5bceccaa"
},
{
"id": 129445,
"name": "AFC",
"hash_image": "7096628c708e0a243e944e9bfb193a909335a28925a105386b685db252245a2a"
}
]
}
]