Skip to main content

People

Retrieve person posts

The Linked API allows you to retrieve posts made by a person on LinkedIn programmatically. Below is an example of how to retrieve a person's posts using a GET request.

Endpoint

GET /v1/people

Parameters

  • url (required, string): The LinkedIn profile URL of the person to retrieve posts from.
  • include (optional, string): Set to posts to retrieve only the person's posts.
  • limit (optional, integer): The maximum number of posts to retrieve. Default is 10.
  • sortBy (optional, string): Sort posts by either date or popularity. Default is date.

Example

curl -X GET "https://api.linkedapi.io/v1/people?include=posts&limit=5&sortBy=date" \
-H "Content-Type: application/json" \
-H "x-api-token: your-api-token-here" \
-H "account-token: your-account-token-here" \
-d '{
  "url": "https://www.linkedin.com/in/johndoe/"
}'

Response

{
  "data": {
    "posts": [
      {
        "postId": "123456789",
        "content": "Excited to share that I'll be speaking at the upcoming tech conference!",
        "timestamp": "2024-09-21T12:34:00Z",
        "likes": 150,
        "comments": 20
      },
      {
        "postId": "987654321",
        "content": "Proud of the new project my team just completed!",
        "timestamp": "2024-09-20T11:15:00Z",
        "likes": 200,
        "comments": 35
      }
    ]
  },
  "success": true
}

Errors

  • 400 Bad Request: Invalid or missing parameters.
  • 401 Unauthorized: Missing or invalid authorization token.
  • 404 Not Found: Profile or posts not found.