Skip to content
Basic lookup2 credits

search_players

Find players by name, team, or position

When to use it

You have a name and need the GSIS id (and PFR/ESPN ids) to call the stat endpoints.

Parameters

NameTypeRequiredDescription
querystringyesPlayer name or part of it
teamstringnoFilter by current team code
positionstringnoFilter by position (e.g. QB, RB, WR, TE, OL, DL, LB, DB)
activebooleannoDefault true, but an active-only search that finds nobody automatically falls back to all players and says so. Set false to search everyone outright.
limitintegernoMax results (default 10)

Request

bash
curl -X POST https://football-mcp-production.up.railway.app/v1/search_players \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "query": "Mahomes"
}'

Over MCP, ask for it in plain English and the client calls search_players itself. Point any MCP client at https://football-mcp-production.up.railway.app/mcp?key=YOUR_API_KEY.

Response

json
{
  "players": [
    {
      "player_id": "00-0033873",
      "name": "Patrick Mahomes",
      "position": "QB",
      "position_group": "QB",
      "team": "KC",
      "jersey_number": "15",
      "status": "ACT",
      "active": true,
      "rookie_season": 2017,
      "last_season": 2026,
      "college": "Texas Tech",
      "headshot": "https://static.www.nfl.com/image/upload/f_auto,q_auto/league/wdckwtob1lybvkmxnf7p",
      "pfr_id": "MahoPa00",
      "espn_id": "3139477"
    }
  ],
  "count": 1,
  "included_inactive": false
}

Response fields

FieldTypeDescription
players[]arrayList of objects
players[].player_idstring
players[].namestring
players[].positionstring
players[].position_groupstring
players[].teamstring
players[].jersey_numberstring
players[].statusstring
players[].activeboolean
players[].rookie_seasonnumber
players[].last_seasonnumber
players[].collegestring
players[].headshotstring
players[].pfr_idstring
players[].espn_idstring
countnumber
included_inactiveboolean

Related endpoints

Try it

500 credits free on signup — 250 calls to search_players — and no card.