Skip to main content
GET
/
api
/
v1
/
posts
/
updates
Get recent posts from multiple LinkedIn profiles
curl --request GET \
  --url https://api.fetchin.io/api/v1/posts/updates \
  --header 'X-API-Key: <api-key>'
{
  "posts": [
    {
      "urn": "urn:li:activity:7123456789012345678",
      "text": "Excited to announce our new initiative...",
      "publishedAt": "2024-01-15T10:30:00Z",
      "numberOfLikes": 127,
      "numberOfComments": 15,
      "numberOfReposts": 8,
      "imageUrl": "https://media.licdn.com/dms/image/...",
      "videoUrl": null,
      "carouselPdfUrl": null,
      "profile": {
        "urn": "urn:li:fsd_profile:ACoAAABCDEF",
        "name": "William Gates",
        "headline": "Co-chair, Bill & Melinda Gates Foundation",
        "url": "https://www.linkedin.com/in/williamhgates",
        "imageUrl": "https://media.licdn.com/dms/image/..."
      }
    },
    {
      "urn": "urn:li:activity:7123456789012345679",
      "text": "Reflecting on the past year and looking forward...",
      "publishedAt": "2024-01-10T14:20:00Z",
      "numberOfLikes": 89,
      "numberOfComments": 7,
      "numberOfReposts": 3,
      "imageUrl": null,
      "videoUrl": "https://dms.licdn.com/playlist/...",
      "carouselPdfUrl": null,
      "profile": {
        "urn": "urn:li:fsd_profile:XYZabc123",
        "name": "Jeff Weiner",
        "headline": "Executive Chairman at LinkedIn",
        "url": "https://www.linkedin.com/in/jeffweiner08",
        "imageUrl": "https://media.licdn.com/dms/image/..."
      }
    }
  ]
}

Endpoint

GET /api/v1/posts/updates

Authentication

Include your API key in the request header:
X-API-Key: your-api-key-here

Credits

This endpoint consumes 1 credit per 1-15 profiles (rounded up):
  • 1-15 profiles = 1 credit
  • 16-30 profiles = 2 credits
  • 31-45 profiles = 3 credits
  • 46-60 profiles = 4 credits

Parameters

profileUrlsOrUrns
string
required
Comma-separated list of LinkedIn profile URLs or URNs (maximum 60 profiles).Examples:
  • https://www.linkedin.com/in/username1,https://www.linkedin.com/in/username2
  • urn:li:fsd_profile:ACoAAABCDEF,https://www.linkedin.com/in/username
count
integer
default:"15"
Number of posts to return PER PROFILE (not total across all profiles).
  • Minimum: 1
  • Maximum: 100
  • Default: 15
Example: With 2 profiles and count=15, you will receive up to 30 posts total (15 from each profile).

Response

posts
array
Array of recent LinkedIn posts aggregated from all specified profiles

Example Request

curl -X GET "https://api.fetchin.io/api/v1/posts/updates?profileUrlsOrUrns=https://www.linkedin.com/in/williamhgates,https://www.linkedin.com/in/jeffweiner08&count=15" \
  -H "X-API-Key: your-api-key-here"

Example Response

{
  "posts": [
    {
      "urn": "urn:li:activity:7123456789012345678",
      "text": "Excited to announce our new initiative...",
      "publishedAt": "2024-01-15T10:30:00Z",
      "numberOfLikes": 127,
      "numberOfComments": 15,
      "numberOfReposts": 8,
      "imageUrl": "https://media.licdn.com/dms/image/...",
      "videoUrl": null,
      "carouselPdfUrl": null,
      "profile": {
        "urn": "urn:li:fsd_profile:ACoAAABCDEF",
        "name": "William Gates",
        "headline": "Co-chair, Bill & Melinda Gates Foundation",
        "url": "https://www.linkedin.com/in/williamhgates",
        "imageUrl": "https://media.licdn.com/dms/image/..."
      }
    },
    {
      "urn": "urn:li:activity:7123456789012345679",
      "text": "Reflecting on the past year and looking forward...",
      "publishedAt": "2024-01-10T14:20:00Z",
      "numberOfLikes": 89,
      "numberOfComments": 7,
      "numberOfReposts": 3,
      "imageUrl": null,
      "videoUrl": "https://dms.licdn.com/playlist/...",
      "carouselPdfUrl": null,
      "profile": {
        "urn": "urn:li:fsd_profile:XYZabc123",
        "name": "Jeff Weiner",
        "headline": "Executive Chairman at LinkedIn",
        "url": "https://www.linkedin.com/in/jeffweiner08",
        "imageUrl": "https://media.licdn.com/dms/image/..."
      }
    }
  ]
}

Notes

This endpoint consumes 1 credit per 1-15 profiles (rounded up). The cost scales with the number of profiles requested. Failed requests (errors) do not count against your quota.
Posts are returned in reverse chronological order (newest first), aggregated from all specified profiles. The count parameter specifies posts PER PROFILE, so 3 profiles with count=15 returns up to 45 posts total.
This endpoint scrapes each profile individually using reliable methods, ensuring consistent and deterministic results.
You can mix profile URLs and URNs in the same request. Both formats are supported.

Authorizations

X-API-Key
string
header
required

Query Parameters

profileUrlsOrUrns
string
required

Comma-separated list of LinkedIn profile URLs or URNs (maximum 60)

Example:

"https://www.linkedin.com/in/username1,https://www.linkedin.com/in/username2"

count
integer
default:15

Number of posts to return PER PROFILE (default: 15). With 2 profiles and count=15, you get up to 30 posts total.

Required range: 1 <= x <= 100

Response

Successfully fetched posts

posts
object[]