linkedin.com
Get LinkedIn profile photo
Input
publicId optionalLinkedIn 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).
publicIds optionalNot supported since 19 Oct 2026: the run fails with a message saying so. Send one publicId per call and fan out with run_script's scripts.
Output
name requiredProfile name. Never null: a profile whose name cannot be read fails instead.
hasPhoto requiredTrue when a real display photo was found; false when the profile shows only LinkedIn's default ghost avatar.
photoUrl requiredFull signed link to the photo. Its query string is part of the signature, so keep it as given. Null when the profile has no real photo.
profileUrl requiredphotoAlt optionalThe photo's alt text; null if absent.
