Skip to main content

Contests

Contest and event management endpoints.

Base URL: https://proxy.bettoredge.com

Get Leagues

GET events/v1/leagues/

Get all leagues

Authentication: Required - Include Bearer token in Authorization header

Authorization: Bearer <token>

Query Parameters

  • status (optional) (string | undefined)
    • Optional status filter ('active' | 'inactive')

Response

Status: 200 OK

Body: GetLeaguesResponse

Example Response
{
"message": "example",
"leagues": [
{
"league_id": "example",
"league_name": "example",
"sport": "example",
"league_image": "example",
"priority": 100,
"status": "example",
"sport_db_id": "example",
"active_season_type": "example",
"active_year": "example",
"external_id": "example",
"external_odds_id": "example",
"default_markets": {},
"default_tournaments": true,
"rankings": true,
"active_poll": "example",
"state": "example",
"city": "example",
"create_datetime": null,
"last_update_datetime": null
}
],
"timestamp": null
}
Response Properties
  • message (string)
  • leagues (LeagueProps[])
    • league_id (string) - Unique league identifier
    • league_name (string) - League display name
    • sport (string) - Sport type (basketball, football, baseball, etc.)
    • league_image (string) - URL to league logo image
    • priority (number) - Display priority/order
    • status (string) - Current league status
    • sport_db_id (optional) (string | undefined) - Optional SportsDB external ID
    • active_season_type (optional) (string | undefined) - Currently active season type (regular, playoffs, etc.)
    • active_year (optional) (string | undefined) - Currently active year
    • external_id (optional) (string | undefined) - External data provider ID
    • external_odds_id (optional) (string | undefined) - External odds provider ID
    • default_markets (optional) ([] | undefined) - Default markets enabled for this league
    • default_tournaments (optional) (boolean | undefined) - Whether default tournaments are enabled
    • rankings (optional) (boolean | undefined) - Whether rankings are tracked
    • active_poll (optional) (string | undefined) - Active poll ID if applicable
    • state (optional) (string | undefined) - State/region for the league
    • city (optional) (string | undefined) - City for the league
    • create_datetime (any) - Timestamp when league was created
    • last_update_datetime (any) - Timestamp of last update
  • timestamp (any)

Error Responses

  • Error if the request fails