POST /v1/profile: Profile Endpoint Reference

Request and response of POST /v1/profile: accepted URL formats, statuses, timeouts, and every field of the profile object with its type.

Last updated

Request

POST https://api.profilehunt.dev/v1/profile
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{ "url": "https://www.linkedin.com/in/williamhgates" }

url is a LinkedIn profile URL: linkedin.com/in/ followed by the profile's name. It may include or leave out https:// and www., use a country subdomain such as uk.linkedin.com, and end with a slash, extra path or query string. Anything else, including company pages and bare usernames, gets 422 invalid_url and is not charged.

Response

The request waits while the profile is read, usually a few seconds; one that runs too long ends with 504 timeout and is not charged. Otherwise the answer is HTTP 200 with one of three statuses:

statusprofileCredit
okThe profile object below1
gonenull: no public profile at this URL (private, deleted, never existed, or removed at the member's request)0
unavailablenull: LinkedIn didn't serve the profile just then. Retry later.0

Anything else is an error with an HTTP status other than 200; see Errors.

The profile object

Every key is always present. A value the profile doesn't show publicly is null, and an empty list is [], so you never need to check whether a key exists. This is the public view of the profile: what LinkedIn shows people who aren't signed in, which for many members hides some details.

FieldTypeNotes
public_idstringThe profile name from the URL you sent, decoded (the part after /in/).
profile_urlstringhttps://www.linkedin.com/in/ followed by that name.
full_namestring | null
first_namestring | null
last_namestring | null
photo_urlstring | nullLink to the profile photo on LinkedIn's servers.
headlinestring | null
aboutstring | nullThe About section.
locationstring | nullAs shown on the profile, e.g. "Seattle, Washington, United States".
countrystring | nullTwo-letter country code, e.g. "US".
experiencePosition[]Roles in the order the profile lists them.
educationSchool[]
languagesstring[]
followersnumber | null
connectionsnumber | nullLinkedIn shows logged-out visitors "500+" above 500, so 500 means 500 or more.
creatorbooleantrue when the profile shows the Creator badge.
badgesstring[]Badges shown on the profile, such as Creator or Top Voice.
last_post_atstring | nullTime of the most recent post or article, ISO 8601 UTC.
recent_postsPost[]The posts the public profile shows, in the order it lists them. Reshares are included.
recent_articlesArticle[]
last_reaction_atstring | nullTime of the most recent reaction, ISO 8601 UTC.
recent_reactionsReaction[]Posts the person recently liked or reacted to.
last_comment_atstring | nullApproximate time of the most recent comment, ISO 8601 UTC (see Comment).
recent_commentsComment[]Comments the person recently wrote on other people's posts.
last_active_atstring | nullThe newest of last_post_at, last_reaction_at and last_comment_at: when the person was last seen active.
scraped_atstringWhen ProfileHunt read the profile, ISO 8601 UTC.

Position (experience[])

FieldTypeNotes
companystring
company_urlstring | nullThe company's LinkedIn page.
titlestring | nullSet for current roles only; LinkedIn's public view has no titles for past roles. null when hidden.
locationstring | null
descriptionstring | nullOften hidden from logged-out visitors, so usually null.
start_datestring | null"2014" or "2014-02", as LinkedIn shows it.
end_datestring | nullnull for a current role.

School (education[])

FieldTypeNotes
schoolstring
school_urlstring | null
start_datestring | null
end_datestring | null

Post (recent_posts[])

FieldTypeNotes
urlstring
posted_atstringISO 8601 UTC.
textstring | nullMay be cut short, ending in "…".
likesnumber | null
authorPostAuthor | nullWho posted it: name and url. For a reshare, the original author.

Article (recent_articles[])

FieldTypeNotes
urlstring
headlinestring | null
image_urlstring | nullCover image, when the article has one.
published_atstringISO 8601 UTC.
likesnumber | null

Reaction (recent_reactions[])

FieldTypeNotes
verbstringThe kind of reaction, as LinkedIn labels it.
reacted_atstringISO 8601 UTC.
post_urlstring | nullThe post reacted to.
post_authorstring | nullThe post author's profile name, taken from the post URL.
post_atstring | nullWhen that post was published.

Comment (recent_comments[])

FieldTypeNotes
verbstringcommented on a post or replied to a comment.
textstring | nullWhat they wrote. Names they mentioned are included as plain text.
agestringHow long ago, as LinkedIn shows it: 5h, 3d, 2w, 4mo, 1y.
commented_atstring | nullage counted back from scraped_at (a month is 30 days, a year 365): approximate, as LinkedIn gives no exact time.
post_urlstring | nullThe post commented on, when LinkedIn links it.
post_authorstring | nullThe post author's profile name, taken from the post URL.
post_atstring | nullWhen that post was published (exact).

Good to know

  • Nothing is cached: every call reads the profile again and uses a credit if it's found.
  • Dates of roles and schools are strings as LinkedIn shows them ("2014" or "2014-02"); timestamps are ISO 8601 in UTC.
  • Contact details (email, phone) are never included; LinkedIn doesn't show them to logged-out visitors.