Sports
Sports endpoints expose the structured metadata used to build sport pages: sports, leagues, teams, valid market archetypes, and sport-linked events. Schedule/provider ingestion is intentionally separate from this public discovery surface.
List sports
Public/api/sportsReturns configured sports with league/team/event counts.
Query parameters
activebooleanqueryoptionalFilter by active flag.
Request
curl "https://api.majjha.fun/api/sports"Response
{
"sports": [
{
"id": "sport_football",
"slug": "football",
"name": "Football",
"league_count": 2,
"team_count": 0,
"event_count": 0,
"active": true
}
]
}List sports (Gamma shape)
Public/sportsReturns active sports as a bare array using the current Gamma SDK metadata shape. Native PredictMax sports envelopes remain under `/api/sports/*`.
Request
curl "https://api.majjha.fun/sports"Response
[
{
"id": 1198777767191350,
"sport": "football",
"image": "",
"resolution": "Football",
"ordering": "10",
"tags": "football",
"series": "football",
"createdAt": "2026-06-25T10:30:00+00:00",
"updatedAt": "2026-06-25T10:30:00+00:00"
}
]Get sport
Public/api/sports/{slug}Returns one sport by slug or id.
Path parameters
slugstringpathrequiredSport slug, e.g. `football`.
Request
curl "https://api.majjha.fun/api/sports/{slug}"Response
{
"sport": {
"id": "sport_basketball",
"slug": "basketball",
"name": "Basketball",
"league_count": 3,
"team_count": 0,
"event_count": 0
}
}List sport leagues
Public/api/sports/{slug}/leaguesReturns leagues for a sport, such as NFL, NBA, MLB, NHL, EPL, ATP, or UFC.
Path parameters
slugstringpathrequiredSport slug.
Query parameters
activebooleanqueryoptionalFilter by active flag.
Request
curl "https://api.majjha.fun/api/sports/{slug}/leagues"Response
{
"leagues": [
{
"id": "league_nfl",
"sport_slug": "football",
"slug": "nfl",
"name": "National Football League",
"abbreviation": "NFL",
"region": "US",
"team_count": 0,
"event_count": 0
}
]
}List sport teams
Public/api/sports/{slug}/teamsReturns teams/entities for a sport, optionally scoped to a league.
Path parameters
slugstringpathrequiredSport slug.
Query parameters
leaguestringqueryoptionalOptional league slug.
activebooleanqueryoptionalFilter by active flag.
limitintegerqueryoptionaldefault: 100Page size. Max 250.
Request
curl "https://api.majjha.fun/api/sports/{slug}/teams"Response
{
"teams": [
{
"id": "team_kc",
"sport_slug": "football",
"league_slug": "nfl",
"slug": "kansas-city-chiefs",
"name": "Kansas City Chiefs",
"abbreviation": "KC",
"event_count": 12
}
]
}List teams (Gamma shape)
Public/teamsReturns active teams/entities as a bare array using the current Gamma SDK team shape.
Query parameters
limitintegerqueryoptionaldefault: 100Page size. Max 250.
offsetintegerqueryoptionaldefault: 0Offset into the filtered team list.
orderstringqueryoptionaldefault: nameSort field. Supports `id`, `name`, `abbreviation`, `league`, `createdAt`, and `updatedAt` aliases.
ascendingbooleanqueryoptionaldefault: trueSort ascending instead of descending.
leaguestring[]queryoptionalOptional repeated or comma-separated league slug/id/abbreviation filter.
namestring[]queryoptionalOptional repeated or comma-separated team name, short name, or alias filter.
abbreviationstring[]queryoptionalOptional repeated or comma-separated abbreviation filter.
Request
curl "https://api.majjha.fun/teams"Response
[
{
"id": 791259457354511,
"name": "Kansas City Chiefs",
"league": "nfl",
"record": null,
"logo": "https://example.com/kc.png",
"abbreviation": "KC",
"alias": "kansas-city-chiefs",
"createdAt": "2026-06-25T10:30:00+00:00",
"updatedAt": "2026-06-25T10:30:00+00:00",
"providerId": 387180068435415,
"color": "#E31837"
}
]Get team (Gamma shape)
Public/teams/{id}Returns one team/entity by id or slug using the current Gamma SDK team shape.
Path parameters
idstringpathrequiredTeam id or slug.
Request
curl "https://api.majjha.fun/teams/{id}"Response
{
"id": 791259457354511,
"name": "Kansas City Chiefs",
"league": "nfl",
"record": null,
"logo": "https://example.com/kc.png",
"abbreviation": "KC",
"alias": "kansas-city-chiefs",
"createdAt": "2026-06-25T10:30:00+00:00",
"updatedAt": "2026-06-25T10:30:00+00:00",
"providerId": 387180068435415,
"color": "#E31837"
}- →Compatibility alias: `/api/gamma/teams/{id}`.
List sport market types
Public/api/sports/{slug}/market-typesReturns valid sport market archetypes such as game winner, spread, total, player prop, and future, with resolution-source templates.
Path parameters
slugstringpathrequiredSport slug.
Query parameters
activebooleanqueryoptionalFilter by active flag.
Request
curl "https://api.majjha.fun/api/sports/{slug}/market-types"Response
{
"market_types": [
{
"sport_slug": "football",
"slug": "game-winner",
"title": "Game winner",
"resolution_source": "official final score / league result",
"rules_template": "Resolve YES for the listed side if it wins the event outright."
}
]
}List sports market types (Gamma shape)
Public/sports/market-typesReturns active sport market-type slugs in the current Gamma SDK response shape.
Request
curl "https://api.majjha.fun/sports/market-types"Response
{
"marketTypes": ["game-winner", "spread", "total"]
}List sport events
Public/api/sports/{slug}/eventsReturns sport-linked events with league, team, scheduled-start, provider, and market-type metadata.
Path parameters
slugstringpathrequiredSport slug.
Query parameters
leaguestringqueryoptionalOptional league slug.
teamstringqueryoptionalOptional home/away team slug.
marketTypestringqueryoptionalOptional sport market type slug.
statusstringqueryoptionalOptional event status.
ACTIVECLOSEDRESOLVEDlimitintegerqueryoptionaldefault: 50Page size. Max 100.
Request
curl "https://api.majjha.fun/api/sports/{slug}/events"Response
{
"events": [
{
"event_ticker": "NFL-KC-BUF-2026-09-12",
"title": "Chiefs vs Bills",
"sport_slug": "football",
"league_slug": "nfl",
"home_team_slug": "kansas-city-chiefs",
"away_team_slug": "buffalo-bills",
"market_type_slug": "game-winner",
"scheduled_start": "2026-09-12T20:20:00Z",
"resolution_source_url": "https://www.nfl.com/scores/"
}
]
}- →Provider schedule ingestion writes these normalized rows through the admin sports import endpoint.