---
title: "Scrape LinkedIn profile posts"
method: POST
path: "/collect/linkedin/posts"
tags: ["scrapers"]
---

# Scrape LinkedIn profile posts

`POST /collect/linkedin/posts`

Returns paginated posts from a LinkedIn profile. Each post carries: postUrl, text, date, likesCount, commentsCount, sharesCount, postUrn, postId, type (activity/ugcPost/share), authorName, authorProfileUrl, authorPublicIdentifier, authorProfileUrn, authorHeadline, authorImageUrl, media (images/video/document/article), isRepost, **reactionTypeCounts[] (per-reaction breakdown — LIKE / CELEBRATE / EMPATHY / INTEREST / PRAISE / APPRECIATION with counts)**, **numImpressions (when LinkedIn surfaces it — usually only for owned posts)**, **highlightedReactorName (LinkedIn's 'Liked by X' social-proof line when a viewer's connection engaged)**, **viewerLiked (whether the authenticated viewer reacted)**. Supports count, start, and paginationToken for pagination.

## Request body

- object
  - `profileUrl` string, required — LinkedIn profile identifier. Accepts PERSONAL profiles (full URLs like https://www.linkedin.com/in/username, vanity names like john-doe, or URNs like urn:li:fsd_profile:ACoAAA...) AND COMPANY pages (full URLs like https://www.linkedin.com/company/fnaim or https://fr.linkedin.com/company/fnaim). Company URLs hit the organization-updates feed; personal URLs hit the profile activity feed. Same result shape for both.
  - `count` integer — Number of posts to fetch (0-100, default 20)
  - `start` integer — Pagination offset (default 0).
  - `paginationToken` string — Pagination token from a previous response to fetch the next page.
  - `returnReposts` boolean — Include reposts/reshares in results. Defaults to false (only original posts).

## Response `200`

Paginated list of posts from the profile

- object
  - `success` true, required
  - `posts` object[], required
    - `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_likes/comments).
    - `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.
  - `count` integer, required
  - `total` integer, required
  - `start` integer, required
  - `hasMore` boolean, required
  - `paginationToken` string, nullable, required
  - `previousTotal` integer, nullable, required — The total from your last call to this endpoint for the same profile (null on first call). Compare with total to detect new posts without client-side tracking.
  - `creditsUsed` integer, required — Credits consumed by this call (0 for free endpoints, cached results, or duplicates).
  - `retryAfter` integer, required — Seconds to wait before making another call of the same type. 0 means no wait needed.

## 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/3caf12036b26/schema)
