Get posts from a profile

Fetch posts from a professional profile using its URN, public identifier (slug) or URL

get/api/v1/posts

Request

  • Base URL: https://api.fetchin.io
  • URL: https://api.fetchin.io/api/v1/posts
  • Auth: API key in header X-API-Key

Query parameters

profileUrlOrUrnstring required
Example:urn:li:fsd_profile:ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc

The professional profile to fetch. Accepts a profile URN (recommended for consistency, since a profile's public identifier can change over time while the URN does not; example urn:li:fsd_profile:ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc), a public identifier/slug (also fine; example williamhgates), or a full profile URL (example https://www.linkedin.com/in/williamhgates; a trailing slash is ignored). The slug is the last path segment of a profile URL, so pass just the slug, not the /in/ prefix.

countinteger

Number of posts to fetch (default: 10). A higher value is clamped to 100; 0 or a negative value is a 400.

startinteger

Not supported on this endpoint. This feed is cursor-paginated and ignores offsets, so a non-zero value is rejected with 400 rather than silently returning the first page again. Page with paginationToken instead.

paginationTokenstring

Cursor for the next page: pass back the paginationToken from the previous response, unchanged. Omit it to start from the beginning. A value this API did not issue is rejected with 400. Keep paging while hasMore is true.

includeRepostsboolean

Also return the reposts WITHOUT commentary, which are otherwise filtered out. Each one comes back as the repost itself: postType: "repost", id = the repost's own activity URN, date = when it was reposted, content = "", no counts of its own (reactionCount, commentCount, sharesCount, reactionsByType omitted), the reposting profile or page as author and profile, repostedBy, and the original post nested under resharedPost with its own counts - the same shape a quote repost has. Collaborative posts are also returned when this is on. Accepts true/false (or 1/0); any other value is a free 400. The price does not change.

Response

Successfully fetched posts

paginationTokenstring nullable

Cursor to pass back as paginationToken to fetch the next page.

hasMoreboolean

Whether the feed holds more posts behind this page. Keep paging while true.

pageSizeinteger

The count this page was requested with.

Example response

{
  "posts": [
    {
      "id": "urn:li:activity:1234567890",
      "shareUrn": "urn:li:ugcPost:7123456789012345678",
      "content": "This is a post content...",
      "profile": {
        "urn": "urn:li:fsd_profile:ACoAAABCDEF",
        "name": "John Doe",
        "headline": "Software Engineer at Tech Company",
        "url": "https://www.linkedin.com/in/johndoe",
        "imageUrl": "https://media.licdn.com/dms/image/..."
      },
      "resharedPostUrn": "urn:li:activity:7123456789012345670",
      "postType": "image",
      "shareUrl": "https://www.linkedin.com/posts/williamhgates_my-time-in-rwanda-...",
      "reactionsByType": {
        "like": 4139,
        "empathy": 159,
        "praise": 104,
        "appreciation": 63,
        "interest": 23
      },
      "images": [
        {
          "url": "https://media.licdn.com/dms/image/...",
          "width": 2048,
          "height": 1365
        }
      ],
      "video": {
        "url": "https://dms.licdn.com/playlist/vid/...",
        "duration": 60000
      },
      "authorProfileId": "ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc",
      "authorType": "Person",
      "permissions": {
        "allowedCommentersScope": "ALL",
        "shareAudience": "PUBLIC"
      },
      "author": {
        "followerCount": 29282565
      },
      "job": {
        "id": "4012345678",
        "url": "https://www.linkedin.com/jobs/view/4012345678/",
        "title": "Senior Product Manager",
        "companyName": "Microsoft",
        "companyId": "1035",
        "companyUrl": "https://www.linkedin.com/company/microsoft/",
        "location": "Redmond, WA"
      },
      "event": {
        "dateText": "Sun, Sep 6, 5:30 AM - 6:30 AM UTC"
      }
    }
  ],
  "paginationToken": "dXJuOmxpOmFjdGl2aXR5Ojc0ODk4OTQ2NzU5MjgwMjcxMzY=",
  "pageSize": 10
}

Changes

No recorded changes to this operation across all 1 revision of this API.