GET
/
linkedin
/
profile-comments
Get comments of LinkedIn profile
curl --request GET \
  --url https://api.harvest-api.com/linkedin/profile-comments \
  --header 'X-API-Key: <api-key>'
{
  "elements": [
    {
      "id": "7330012053861998592",
      "linkedinUrl": "https://www.linkedin.com/feed/update/urn:li:ugcPost:7329991434395160578?commentUrn=urn%3Ali%3Acomment%3A%28ugcPost%3A7329991434395160578%2C7330012053861998592%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287330012053861998592%2Curn%3Ali%3AugcPost%3A7329991434395160578%29",
      "commentary": "Exciting 🔥",
      "createdAt": "2025-05-18T23:30:58.680Z",
      "numComments": 0,
      "numShares": null,
      "numImpressions": null,
      "reactionTypeCounts": [
        {
          "type": "LIKE",
          "count": 1
        }
      ],
      "postId": "7329991434395160578",
      "actor": {
        "id": "ACoAABLGFg4BRMcDx84MmyU8X-Jqcw9wKCA1QxU",
        "name": "Harshavardhan G H",
        "linkedinUrl": "https://www.linkedin.com/in/harshavardhangh",
        "position": "Business Analyst | Data-Driven Decision Maker | 5+ Years of Experience in Municipal Data Systems & Public Sector Projects | Passionate About Driving Innovation in Local Governance | Always Exploring New Technologies",
        "pictureUrl": "https://media.licdn.com/dms/image/v2/D5603AQF38AglH7bh-A/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1730799919024?e=1753920000&v=beta&t=Jo-oVn--3ftKSEMtrITF0b3_UG97a0n401-ztV_9Gac",
        "picture": {
          "url": "https://media.licdn.com/dms/image/v2/D5603AQF38AglH7bh-A/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1730799919024?e=1753920000&v=beta&t=Jo-oVn--3ftKSEMtrITF0b3_UG97a0n401-ztV_9Gac",
          "width": 800,
          "height": 800,
          "expiresAt": 1753920000000
        },
        "author": false
      },
      "createdAtTimestamp": 1747611058680,
      "pinned": false,
      "contributed": false,
      "edited": false
    }
  ],
  "pagination": {
    "totalPages": 123,
    "totalElements": 123,
    "pageNumber": 123,
    "previousElements": 123,
    "pageSize": 123,
    "paginationToken": "<string>"
  },
  "status": "<string>",
  "error": "<string>"
}

Get comments on a LinkedIn profile.
For example, it will scrape this page: https://www.linkedin.com/in/satyanadella/recent-activity/comments/

const params = new URLSearchParams({
  profile: 'https://www.linkedin.com/in/satyanadella',
  // profileId: 'ACoAAAEkwwAB9KEc2TrQgOLEQ-vzRyZeCDyc6DQ', // profileId is preferable & faster
});
fetch(`https://api.harvest-api.com/linkedin/profile-comments?${params.toString()}`, {
  headers: { 'X-API-Key': '<api-key>' },
})
  .then((response) => response.json())
  .then((data) => console.log(data));

Authorizations

X-API-Key
string
header
required

Query Parameters

profile
string

URL of the LinkedIn profile

profileId
string

Profile ID of the LinkedIn profile. It's faster to search by ID

postedLimit
string

Filter posts by maximum posted date. Supported values: '24h', 'week', 'month'

page
integer
default:1

Page number for pagination. Each page contains 20 comments. Default is 1

paginationToken
string

Required for pages > 1. Use this token from the previous page response.

Response

200
application/json

Profile comments response

The response is of type object.