---
title: "Visit LinkedIn profile and extract contact data"
method: POST
path: "/visit/linkedin/profile"
tags: ["scrapers"]
---

# Visit LinkedIn profile and extract contact data

`POST /visit/linkedin/profile`

One named person only. Pass the profile URL, vanity slug, or URN from a list row, never a display name. For two or more people use public_enrich. Do not call this to get email or phone. Visit a LinkedIn profile and return comprehensive contact data — the richest snapshot of any endpoint.

Returned fields include: firstName, lastName, headline, summary (about), location, imageUrl, isVerified, memberDistance (connection degree: 0=self, 1=direct, 2+=2nd/3rd, or null if unknown), connectionsCount, followersCount, profileUrl, profileUrn, publicIdentifier, position, company, positions[] (work history with role + companyName + companyUrl + companyLogo + startDate), educations[] (schoolName + degreeName + fieldOfStudy + schoolUrl + schoolLogo), pendingConnection. Email and phone are not a reason to call this.

IMPORTANT for ACTIVITY signals: `lastPosts[]`, `lastComments[]`, `lastReactions[]` (each up to 5 entries carrying postUrl + text + date + reactionType + targetPostUrn). These are the strongest recency signals available — a profile with no entries in these arrays is effectively inactive on LinkedIn.

The About section, posts, comments, and reactions are ALWAYS fetched and returned — the `includePosts` / `includeComments` / `includeAbout` request flags are accepted for backward compatibility but ignored (always treated as true).

Do NOT call this on a profile you've already visited recently — the response is cached for several hours.

## Request body

- object
  - `profile` string, required — LinkedIn profile identifier from a list row: full URL, vanity slug, or URN. Never a display name. A unique name in the saved pool is resolved server-side; prefer the URL from the row.
  - `campaignSlug` string — Optional campaign identifier for tracking only. No dedup — visit always executes.
  - `actionSlug` string — Deprecated. Use campaignSlug only.
  - `includePosts` boolean — Accepted for backward compatibility but ignored — the API ALWAYS fetches the profile's last 5 posts.
  - `includeComments` boolean — Accepted for backward compatibility but ignored — the API ALWAYS fetches the last 5 posts the profile engaged with via comments (with target-post text + author).
  - `includeAbout` boolean — Accepted for backward compatibility but ignored — the API ALWAYS fetches the About section and detailed position descriptions.

## Response `200`

Profile contact data

- object
  - `success` true, required
  - `firstName` string, required
  - `lastName` string, required
  - `headline` string, nullable, required
  - `summary` string, nullable, required — The profile's 'About' section text. Always fetched; null only when the profile has no About filled in.
  - `publicIdentifier` string, required
  - `profileUrl` string, nullable, required — LinkedIn profile URL. Null when publicIdentifier is unavailable (restricted profiles).
  - `profileUrn` string, nullable, required — LinkedIn profile URN (e.g. 'urn:li:fsd_profile:ACoAAA...'). Use this for matching against inbox participants.
  - `imageUrl` string, nullable, required
  - `email` string, nullable, required
  - `phone` string, nullable, required — Phone number from LinkedIn profile (rarely available)
  - `location` string, nullable, required
  - `company` string, nullable, required — Current company name (from most recent position)
  - `position` string, nullable, required — Current job title (from most recent position)
  - `memberDistance` number, nullable, required — Connection degree: 0 (self), 1 (direct connection), 2+ (2nd degree, 3rd degree, etc.), or null if unknown
  - `connectionsCount` number, nullable, required — Total number of connections. May be null for non-connected profiles or restricted visibility.
  - `followersCount` number, nullable, required — Total number of followers. Null for restricted profiles or when unavailable.
  - `isVerified` boolean, required — Whether the profile has a LinkedIn verification badge.
  - `pendingConnection` 'pending' | 'failed' | 'none', required — Connection request status: 'pending' if request was sent successfully, 'failed' if request failed today, 'none' if not tracked
  - `positions` object[] — Work experience positions
    - `companyName` string, nullable, required
    - `title` string, nullable, required
    - `description` string, nullable — Position description / responsibilities text (always fetched on visit_profile; may be null if LinkedIn has none)
    - `companyUrl` string, nullable, required
    - `companyLogo` string, nullable, required
    - `companyDescription` string, nullable — Short description of the company (always fetched on visit_profile; may be null)
    - `startDate` object, nullable, required
      - `month` integer, nullable, required
      - `year` integer, required
    - `endDate` object, nullable, required
      - `month` integer, nullable, required
      - `year` integer, required
    - `isCurrent` boolean, required
  - `educations` object[] — Education entries
    - `schoolName` string, nullable, required
    - `degreeName` string, nullable, required
    - `fieldOfStudy` string, nullable, required
    - `schoolUrl` string, nullable, required
    - `schoolLogo` string, nullable, required
    - `startDate` object, nullable, required
      - `month` integer, nullable, required
      - `year` integer, required
    - `endDate` object, nullable, required
      - `month` integer, nullable, required
      - `year` integer, required
  - `lastPosts` object[] — Last 5 posts from the profile (always fetched; array may be empty if none found).
    - `postUrl` string, required — Public URL of the post.
    - `text` string, required — Post text content.
    - `date` integer, required — Post creation timestamp (Unix milliseconds).
    - `likesCount` integer, required — Total reactions on this post.
    - `commentsCount` integer, required — Total top-level comments on this post.
    - `sharesCount` integer, required — Total shares/reposts of this post.
    - `postUrn` string, required — LinkedIn internal URN for this post. Use with engagement tools (like, comment, collect_engagers).
    - `postId` string, required — Numeric post identifier parsed from the URN.
    - `type` 'activity' | 'ugcPost' | 'share', required — LinkedIn post type: 'ugcPost' = standard post, 'share' = native share/repost, 'activity' = legacy format.
    - `isRepost` boolean — True when the post is a repost/reshare of another post. Absent for original posts.
    - `media` object — Media attached to the post (image, video, document, or article). Absent when the post is text-only.
      - `type` 'image' | 'video' | 'document' | 'article', required — Type of media attached to the post.
      - `urls` string[], required — Media URLs (image URLs for carousels, video streaming URL, article link, etc.).
      - `title` string — Title of the article or document, when available.
      - `thumbnailUrl` string — Thumbnail URL for videos, articles, or document covers.
    - `authorName` string — Display name of the post's author.
    - `authorProfileUrl` string — Author's profile URL.
    - `authorPublicIdentifier` string, nullable — Author's vanity slug, when they have one.
    - `authorProfileUrn` string, nullable — Author's profile URN.
    - `authorHeadline` string — Author's headline as shown on the post.
    - `authorImageUrl` string — Author's avatar URL.
    - `repostedFromName` string — On a repost, the ORIGINAL author's name when it differs from the resharer.
    - `reactionTypeCounts` object[] — Per-reaction-type breakdown, when LinkedIn exposes it.
      - `reactionType` string, required
      - `count` integer, required
    - `numImpressions` integer, nullable — Total impressions, exposed only on Creator-mode posts.
    - `highlightedReactorName` string, nullable — Social-proof attribution, when LinkedIn surfaces one in the feed.
    - `viewerLiked` boolean, nullable — Whether the authenticated account has reacted to this post.
  - `lastComments` object[] — Last 5 posts the profile recently commented on (always fetched; array may be empty). Contains targetPostText and targetPostAuthor for engagement context.
    - `type` 'comment' | 'reaction', required — Activity type: 'comment' for posts the user commented on
    - `activityUrn` string, required — URN of the feed update (post) the user engaged with
    - `text` string, nullable, required — The user's comment text (null when not available from the API — this is a LinkedIn limitation)
    - `reactionType` string, nullable, required — Reaction type (e.g. 'LIKE', 'CELEBRATE'). Only set for reaction-type activities
    - `targetPostUrn` string, nullable, required — URN of the post the user commented on (e.g. 'urn:li:activity:1234567890')
    - `targetPostText` string, nullable, required — First ~200 chars of the post the user commented on. Use this to understand what topics they engage with
    - `targetPostAuthor` string, nullable, required — Name of the post author (the person whose post was commented on)
    - `timestamp` number, nullable, required — Unix timestamp in milliseconds when the activity occurred
    - `actorName` string, nullable, required — Name of the post author (same as targetPostAuthor when available)
    - `actorUrn` string, nullable, required — Profile URN of the post author
  - `lastReactions` object[] — Last 5 posts the profile recently reacted to (always fetched; array may be empty). Each entry carries reactionType, targetPostText, and targetPostAuthor for engagement context.
    - `type` 'comment' | 'reaction', required — Activity type: 'comment' for posts the user commented on
    - `activityUrn` string, required — URN of the feed update (post) the user engaged with
    - `text` string, nullable, required — The user's comment text (null when not available from the API — this is a LinkedIn limitation)
    - `reactionType` string, nullable, required — Reaction type (e.g. 'LIKE', 'CELEBRATE'). Only set for reaction-type activities
    - `targetPostUrn` string, nullable, required — URN of the post the user commented on (e.g. 'urn:li:activity:1234567890')
    - `targetPostText` string, nullable, required — First ~200 chars of the post the user commented on. Use this to understand what topics they engage with
    - `targetPostAuthor` string, nullable, required — Name of the post author (the person whose post was commented on)
    - `timestamp` number, nullable, required — Unix timestamp in milliseconds when the activity occurred
    - `actorName` string, nullable, required — Name of the post author (same as targetPostAuthor when available)
    - `actorUrn` string, nullable, required — Profile URN of the post author
  - `aboutFetched` boolean — Always true — the About section is always fetched. Kept for backward compatibility.
  - `cached` boolean, required — true if this result was served from a local cache rather than a fresh LinkedIn API call.
  - `cachedAt` string, nullable — When the cached copy was taken. Present when the result came from cache.
  - `creditsUsed` integer, required — Credits consumed by this call. 0 for free endpoints, cached results, duplicates, and for every query that does not touch LinkedIn.
  - `retryAfter` integer, required — Seconds to wait before another call of the same type. 0 means no wait is needed.
  - `_meta` object — Credit balance carried on every response so a caller never has to ask for it separately. Absent when the caller has no connected account.
    - `credits` object, required
      - `current` number, required — Credits spent this period.
      - `limit` number, nullable, required — Period allowance, or null when unlimited.
      - `remaining` number, nullable, required — Allowance left, or null when unlimited.
      - `percentage` number, required — Share of the allowance spent, 0 to 100.
      - `isUnlimited` boolean, required
      - `accountPlan` string, required — The credential's plan.

## Other responses

- `400` — The server cannot or will not process the request due to something that is perceived to be a client error.
- `401` — Although HTTP specifies "unauthorized", this response means "unauthenticated". Authenticate to continue. NOTE: 401 is also returned with code "linkedin_not_connected" when the caller IS authenticated but has no connected LinkedIn account — connect LinkedIn (not re-authenticate) to continue.
- `403` — The client does not have access rights to the content.
- `404` — The server cannot find the requested resource.
- `409` — The request conflicts with the current state of the server.
- `410` — The requested content has been permanently deleted from the server.
- `422` — The request was well-formed but was unable to be followed due to semantic errors.
- `429` — Rate limit exceeded. Read error.retryAfter for the wait time in seconds.
- `500` — The server encountered a situation it does not know how to handle.
- `502` — LinkedIn returned a server error or the proxy connection failed. Retry after a few seconds.
- `503` — Proxy capacity temporarily exceeded. Retry after a few seconds.

---

[API](https://skmtc.net/berea/apis/bereach-api.md) · [All operations](https://skmtc.net/berea/apis/bereach-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/berea/bereach-api/revisions/9217eedacbb8/schema)
