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.
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:
| status | profile | Credit |
|---|
| ok | The profile object below | 1 |
| gone | null: no public profile at this URL (private, deleted, never existed, or removed at the member's request) | 0 |
| unavailable | null: 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.
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.
| Field | Type | Notes |
|---|
| public_id | string | The profile name from the URL you sent, decoded (the part after /in/). |
| profile_url | string | https://www.linkedin.com/in/ followed by that name. |
| full_name | string | null | |
| first_name | string | null | |
| last_name | string | null | |
| photo_url | string | null | Link to the profile photo on LinkedIn's servers. |
| headline | string | null | |
| about | string | null | The About section. |
| location | string | null | As shown on the profile, e.g. "Seattle, Washington, United States". |
| country | string | null | Two-letter country code, e.g. "US". |
| experience | Position[] | Roles in the order the profile lists them. |
| education | School[] | |
| languages | string[] | |
| followers | number | null | |
| connections | number | null | LinkedIn shows logged-out visitors "500+" above 500, so 500 means 500 or more. |
| creator | boolean | true when the profile shows the Creator badge. |
| badges | string[] | Badges shown on the profile, such as Creator or Top Voice. |
| last_post_at | string | null | Time of the most recent post or article, ISO 8601 UTC. |
| recent_posts | Post[] | The posts the public profile shows, in the order it lists them. Reshares are included. |
| recent_articles | Article[] | |
| last_reaction_at | string | null | Time of the most recent reaction, ISO 8601 UTC. |
| recent_reactions | Reaction[] | Posts the person recently liked or reacted to. |
| last_comment_at | string | null | Approximate time of the most recent comment, ISO 8601 UTC (see Comment). |
| recent_comments | Comment[] | Comments the person recently wrote on other people's posts. |
| last_active_at | string | null | The newest of last_post_at, last_reaction_at and last_comment_at: when the person was last seen active. |
| scraped_at | string | When ProfileHunt read the profile, ISO 8601 UTC. |
Position (experience[])
| Field | Type | Notes |
|---|
| company | string | |
| company_url | string | null | The company's LinkedIn page. |
| title | string | null | Set for current roles only; LinkedIn's public view has no titles for past roles. null when hidden. |
| location | string | null | |
| description | string | null | Often hidden from logged-out visitors, so usually null. |
| start_date | string | null | "2014" or "2014-02", as LinkedIn shows it. |
| end_date | string | null | null for a current role. |
School (education[])
| Field | Type | Notes |
|---|
| school | string | |
| school_url | string | null | |
| start_date | string | null | |
| end_date | string | null | |
Post (recent_posts[])
| Field | Type | Notes |
|---|
| url | string | |
| posted_at | string | ISO 8601 UTC. |
| text | string | null | May be cut short, ending in "…". |
| likes | number | null | |
| author | PostAuthor | null | Who posted it: name and url. For a reshare, the original author. |
Article (recent_articles[])
| Field | Type | Notes |
|---|
| url | string | |
| headline | string | null | |
| image_url | string | null | Cover image, when the article has one. |
| published_at | string | ISO 8601 UTC. |
| likes | number | null | |
Reaction (recent_reactions[])
| Field | Type | Notes |
|---|
| verb | string | The kind of reaction, as LinkedIn labels it. |
| reacted_at | string | ISO 8601 UTC. |
| post_url | string | null | The post reacted to. |
| post_author | string | null | The post author's profile name, taken from the post URL. |
| post_at | string | null | When that post was published. |
Comment (recent_comments[])
| Field | Type | Notes |
|---|
| verb | string | commented on a post or replied to a comment. |
| text | string | null | What they wrote. Names they mentioned are included as plain text. |
| age | string | How long ago, as LinkedIn shows it: 5h, 3d, 2w, 4mo, 1y. |
| commented_at | string | null | age counted back from scraped_at (a month is 30 days, a year 365): approximate, as LinkedIn gives no exact time. |
| post_url | string | null | The post commented on, when LinkedIn links it. |
| post_author | string | null | The post author's profile name, taken from the post URL. |
| post_at | string | null | When that post was published (exact). |
- 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.