Highlightly MLB, NCAA Baseball API (3.1.3)

Download OpenAPI specification:Download

The API provides a standardized way for developers to interact with the service and retrieve MLB, NCAA data. With this API, users can request highlights based on various parameters such as team, match, league, or specific timeframes. The specification defines the endpoints and their corresponding operations, such as retrieving a list of all available highlights, retrieving a specific highlight by its ID, filtering highlights based on specific criteria, and more. The API specification also includes detailed information about the data models used, such as the structure of a highlight object, including properties like title, description, teams involved, players featured, and video URLs. In addition to the basic functionality, the API specification may also include optional features such as pagination for retrieving large result sets, sorting and filtering options, and authentication mechanisms for secure access to the API.

MLB, NCAA Baseball API

Baseball.Highlights

Get all highlights.

Retrieve a list of all highlights.

query Parameters
league
string
Example: league=NCAA
date
string
Example: date=2024-03-06

Date that follows the YYYY-MM-DD format.

timezone
string
Default: "Etc/UTC"
Example: timezone=Europe/London

Valid timezone identifier.

season
number
Example: season=2024
matchId
number
Example: matchId=394
homeTeamId
number
Example: homeTeamId=219
awayTeamId
number
Example: awayTeamId=302
homeTeamName
string
Example: homeTeamName=Bears
awayTeamName
string
Example: awayTeamName=Patriots
homeTeamAbbreviation
string
Example: homeTeamAbbreviation=BAY
awayTeamAbbreviation
string
Example: awayTeamAbbreviation=DBU
homeTeamDisplayName
string
Example: homeTeamDisplayName=Baylor
awayTeamDisplayName
string
Example: awayTeamDisplayName=Dallas Baptist
limit
number [ 0 .. 40 ]
Default: 40
Example: limit=40
offset
number >= 0
Default: 0
header Parameters
x-rapidapi-host
required
string

mlb-college-baseball-api.p.rapidapi.com

x-rapidapi-key
required
string

Rapid API Token

Responses

Response samples

Content type
application/json
{
  • "data": [],
  • "pagination": {
    },
  • "plan": {
    }
}

Get geo restrictions for highlight.

Retrieve applied geo restrictions to the given highlight id.

path Parameters
id
required
number
Example: 44

Requested higlight id.

header Parameters
x-rapidapi-host
required
string

mlb-college-baseball-api.p.rapidapi.com

x-rapidapi-key
required
string

Rapid API Token

Responses

Response samples

Content type
application/json
{
  • "state": "Allowed countries restriction",
  • "allowedCountries": [
    ],
  • "blockedCountries": [ ],
  • "embeddable": true
}

Get highlight by id.

Retrieve highlight details by highlight id.

path Parameters
id
required
number
Example: 27

Requested highlight id.

header Parameters
x-rapidapi-host
required
string

mlb-college-baseball-api.p.rapidapi.com

x-rapidapi-key
required
string

Rapid API Token

Responses

Response samples

Content type
application/json
[]

Baseball.Matches

Get all matches.

Retrieve a list of all matches.

query Parameters
league
string
Example: league=NCAA
date
string
Example: date=2024-03-06

Date that follows the YYYY-MM-DD format.

timezone
string
Default: "Etc/UTC"
Example: timezone=Europe/London

Valid timezone identifier.

season
number
Example: season=2024
homeTeamId
number
Example: homeTeamId=219
awayTeamId
number
Example: awayTeamId=302
homeTeamName
string
Example: homeTeamName=Bears
awayTeamName
string
Example: awayTeamName=Patriots
homeTeamAbbreviation
string
Example: homeTeamAbbreviation=BAY
awayTeamAbbreviation
string
Example: awayTeamAbbreviation=DBU
homeTeamDisplayName
string
Example: homeTeamDisplayName=Baylor
awayTeamDisplayName
string
Example: awayTeamDisplayName=Dallas Baptist
limit
number [ 0 .. 100 ]
Default: 100
Example: limit=100
offset
number >= 0
Default: 0
header Parameters
x-rapidapi-host
required
string

mlb-college-baseball-api.p.rapidapi.com

x-rapidapi-key
required
string

Rapid API Token

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "pagination": {
    },
  • "plan": {
    }
}

Get match by id.

Retrieve match details by match id.

path Parameters
id
required
number
Example: 47299

Requested match id.

header Parameters
x-rapidapi-host
required
string

mlb-college-baseball-api.p.rapidapi.com

x-rapidapi-key
required
string

Rapid API Token

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Baseball.Teams

Get all teams.

Retrieve a list of all teams.

query Parameters
league
string
Example: league=NCAA
name
string
Example: name=Bears
displayName
string
Example: displayName=Baylor
abbreviation
string
Example: abbreviation=BAY
header Parameters
x-rapidapi-host
required
string

mlb-college-baseball-api.p.rapidapi.com

x-rapidapi-key
required
string

Rapid API Token

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "pagination": {
    },
  • "plan": {
    }
}

Get team by id.

Retrieve team details by team id.

path Parameters
id
required
number
Example: 219

Requested team id.

header Parameters
x-rapidapi-host
required
string

mlb-college-baseball-api.p.rapidapi.com

x-rapidapi-key
required
string

Rapid API Token

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Baseball.Standings

Get standings list.

Retrieve a list of all standings based on passed query parameters.

query Parameters
leagueType
string
Enum: "MLB" "NCAA"
Example: leagueType=MLB
limit
number [ 0 .. 10 ]
Default: 10
Example: limit=5
offset
number >= 0
Default: 0
leagueName
string
Example: leagueName=National League (MLB)
abbreviation
string
Example: abbreviation=NL
year
number
Example: year=2024
header Parameters
x-rapidapi-host
required
string

mlb-college-baseball-api.p.rapidapi.com

x-rapidapi-key
required
string

Rapid API Token

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "pagination": {
    },
  • "plan": {
    }
}

Baseball.Odds

Get a list of odds.

Retrieve a list of all odds based on passed query parameters. At least one parameter has to be specified.

query Parameters
leagueName
string
Example: leagueName=NCAA
timezone
string
Default: "Etc/UTC"
Example: timezone=Europe/London

Valid timezone identifier.

bookmakerId
number
Example: bookmakerId=53
limit
number [ 0 .. 5 ]
Default: 5
Example: limit=5
offset
number >= 0
Default: 0
matchId
number
Example: matchId=394
bookmakerName
string
Example: bookmakerName=Megapari Sport
date
string
Example: date=2024-03-06

Date that follows the YYYY-MM-DD format.

header Parameters
x-rapidapi-host
required
string

mlb-college-baseball-api.p.rapidapi.com

x-rapidapi-key
required
string

Rapid API Token

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "pagination": {
    },
  • "plan": {
    }
}

Baseball.Bookmakers

Get a list of available bookmakers.

Retrieve a list of all bookmakers based on passed query parameters.

query Parameters
name
string
Example: name=Megapari Sport
limit
number [ 0 .. 100 ]
Default: 20
Example: limit=20
offset
number >= 0
Default: 0
header Parameters
x-rapidapi-host
required
string

mlb-college-baseball-api.p.rapidapi.com

x-rapidapi-key
required
string

Rapid API Token

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "pagination": {
    },
  • "plan": {
    }
}

Get bookmaker by id.

Retrieve bookmaker details by bookmaker id.

path Parameters
id
required
number
Example: 53

Requested bookmaker id.

header Parameters
x-rapidapi-host
required
string

mlb-college-baseball-api.p.rapidapi.com

x-rapidapi-key
required
string

Rapid API Token

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Baseball.Last Five Games

Get last five games for specific team id.

Retrieve a list of last five games played for given team id.

query Parameters
teamId
required
number
Example: teamId=42
header Parameters
x-rapidapi-host
required
string

mlb-college-baseball-api.p.rapidapi.com

x-rapidapi-key
required
string

Rapid API Token

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Baseball.Head 2 Head

Get head 2 head data for a specific set of teams.

Retrieve a list of head 2 head games played for given team ids.

query Parameters
teamIdOne
required
number
Example: teamIdOne=42
teamIdTwo
required
number
Example: teamIdTwo=52
header Parameters
x-rapidapi-host
required
string

mlb-college-baseball-api.p.rapidapi.com

x-rapidapi-key
required
string

Rapid API Token

Responses

Response samples

Content type
application/json
[
  • {
    }
]