App Logo
linkedin.com

Get LinkedIn profile photo

Get a LinkedIn profile's avatar (profile photo) image URL by publicId. Returns profileUrl, name, photoUrl (the signed media.licdn.com display-photo URL — keep its query string, it is required to fetch the image), photoAlt, and hasPhoto (false when the profile shows only the default ghost avatar). Accepts a vanity slug, the obfuscated ACoAA… member token, or a full /in/ URL. Complements get_profile, which returns everything except the photo.

Input

publicId required

LinkedIn public profile id — the /in/ segment. Accepts the vanity slug (e.g. 'dhuynh95'), the obfuscated member token (ACoAA…), or a full profile URL (the /in/<id> is extracted).

Output

name required

Profile name (first main h2). Never null: a top-card that does not parse (auth wall, class rotation, blank shell) throws instead of returning a nameless record.

hasPhoto required

True when a real display photo was found; false when the profile shows only LinkedIn's default ghost avatar.

photoUrl required

Full signed avatar URL on media.licdn.com (…/profile-displayphoto-…). The ?e=&v=&t= query string is part of the signature — do NOT strip it or the fetch 403s. Null when the profile has no real photo.

profileUrl required
photoAlt optional

The avatar img alt text; null if absent — LinkedIn currently renders the avatar with an empty alt.

Start building not clicking