nba_player_headshot_url: *NBA Player Headshot URL*

View source: R/nba_dictionaries.R

nba_player_headshot_urlR Documentation

NBA Player Headshot URL

Description

Build the official NBA CDN headshot URL(s) for one or more player ids. Vectorized – pass a vector of ids to get a vector of URLs.

Usage

nba_player_headshot_url(player_id, size = "1040x760")

Arguments

player_id

Player id(s) (PERSON_ID), numeric or character.

size

Image size: "1040x760" (default, large) or "260x190" (small).

Value

A character vector of headshot URLs.

See Also

Other NBA Dictionary Functions: nba_player_dict(), nba_team_dict(), nba_team_logo_url()

Examples

nba_player_headshot_url(player_id = 201939)            # Stephen Curry
nba_player_headshot_url(c(2544, 201939), size = "260x190")

hoopR documentation built on Aug. 25, 2026, 9:07 a.m.