Get either information on what competitions exist, or a particular competition.

football_get_teams(
  competition_id = NULL,
  api = "football-data.org",
  api_token = Sys.getenv("API_FOOTBALL_DATA")
)

Arguments

competition_id

The id for that competition. Optional

api

Name of API. Currently has "football-data.org"

api_token

The API token.

Value

Base url for API

Examples

football_api_url("football-data.org")
#> Error in football_api_url("football-data.org"): could not find function "football_api_url"