Players

GET https://baseball.highlightly.net/players MLB & NCAA API
GET https://sports.highlightly.net/baseball/players All Sports API

Retrieve a list of players.

Refresh interval
15 minutes
Pagination
limit and offset
Detail
General information only

limit sets how many players come back. When the number of matching players exceeds it, request the next page by increasing offset. See Pagination and limits.

This is where player ids come from. Both detail routes are addressed by id, so the usual sequence is to resolve a player here once, store the id, and use the detail routes from then on.

Parameters

Parameter Type Description
nameoptional string No description in the spec.e.g. Reese Albert
limitoptional numberdefault 1000 No description in the spec.e.g. 1000
offsetoptional numberdefault 0 No description in the spec.e.g. 0

Request

curl --request GET \
  --url 'https://baseball.highlightly.net/players?name=Reese%20Albert' \
  --header 'x-rapidapi-key: YOUR_API_KEY'
const params = new URLSearchParams({
  name: 'Reese Albert'
})
const response = await fetch(`https://baseball.highlightly.net/players?${params}`, {
  headers: {
    'x-rapidapi-key': process.env.HIGHLIGHTLY_API_KEY
  }
})

if (!response.ok) {
  throw new Error(`Highlightly responded ${response.status}`)
}

const data = await response.json()
import os
import requests

response = requests.get(
    'https://baseball.highlightly.net/players',
    params={
        'name': 'Reese Albert',
    },
    headers={
        'x-rapidapi-key': os.environ['HIGHLIGHTLY_API_KEY'],
    },
    timeout=10,
)

response.raise_for_status()
data = response.json()

Response

dataBaseballPlayerResponse[]required3 fields
idnumberrequired
fullNamestring
logostring
paginationPaginationResponserequired3 fields
totalCountnumberrequiredAvailable number of items, relevant to the provided query.
offsetnumberrequired
limitnumberrequired
planPlanResponserequired2 fields
tierstringrequiredYour current API subscription tier.
messagestringrequiredExplanation message regarding your current tier.

Example response

200 application/json
{
  "data": [
    {
      "id": 342182,
      "fullName": "Reese Albert",
      "logo": ""
    }
  ],
  "pagination": {
    "totalCount": 490,
    "offset": 20,
    "limit": 100
  },
  "plan": {
    "tier": "BASIC",
    "message": "Some results might be hidden with FREE tier. Check your API coverage for more information: https://rapidapi.com/highlightly-api-highlightly-api-default/api/sport-highlights-api/details"
  }
}

Values are the examples declared in the OpenAPI spec, not a captured live response.

Errors

Status Description
400 Bad request descriptive error.
500 Internal server error.