V2 API Schedule
Get Previous Soccer Events by League
List the previous 5 events in a league using its unique ID.
get/schedule/previous/league/{idLeague}
Request
- Base URLhttps://www.thesportsdb.com/api/v2/json
- AuthAPI key in header X-API-KEY
- TypeScripthttps://skmtc.dev/thesportsdb/apis/thesportsdb-v2-api/docs/schedule/previous/league/:idLeague/get.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
idLeagueinteger required
The ID of the league to get the previous events for.
Response
List of previous soccer events for the specified league
Example response
{
"schedule": [
{
"strSport": "Motorsport"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.