# Get comments of LinkedIn profile

Get LinkedIn Profile Comments data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by Harvestapi, pass parameters such as profile, and retrieve structured data including comment identifier, comment text, comment source URL, actor profile identifier, and actor display name for activity reference, and discussion research.

Documentation: https://openany.si/linkedin/linkedin-get-comments-of-linkedin-profile/9a197cbb-839a-46b9-82fd-a2bebc935d5c/
API ID: 9a197cbb-839a-46b9-82fd-a2bebc935d5c
Provider: harvestapi
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/harvestapi/linkedin/profile-comments
Page update time: 2026-12-03T02:49:41.313Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.004 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:40.234Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "4000",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## LinkedIn Profile Comments API

Use profile as a profile URL, public identifier or profile ID. postedLimit is described as accepting 24h, week or month. page is an integer, with paginationToken required by the description for pages after the first. The elements array contains comments with actor, commentary, source URL and creation metadata.

## What You Can Build

- **Activity reference**: Associate comment records with source links.
- **Discussion research**: Retain text, actor identities and creation metadata.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `elements[].id` | Comment identifier |
| `elements[].commentary` | Comment text |
| `elements[].linkedinUrl` | Comment source URL |
| `elements[].actor.id` | Actor profile identifier |
| `elements[].actor.name` | Actor display name |
| `elements[].createdAt` | Comment creation time |
| `elements[].numComments` | Reported reply count |
| `elements[].reactionTypeCounts` | Reported reaction counts by type |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Get comments of LinkedIn profile request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "profile": {
          "type": "string",
          "description": "URL of the LinkedIn profile or public identifier or profile ID"
        },
        "postedLimit": {
          "type": "string",
          "description": "Filter posts by maximum posted date. Supported values: '24h', 'week', 'month'"
        },
        "page": {
          "type": "integer",
          "description": "Page number for pagination. Default is 1"
        },
        "paginationToken": {
          "type": "string",
          "description": "Required for pages > 1. Use this token from the previous page response."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "elements": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "actor": {
            "type": "object",
            "properties": {
              "author": {
                "type": "boolean"
              },
              "id": {
                "type": "string"
              },
              "linkedinUrl": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "picture": {
                "type": "object",
                "properties": {
                  "expiresAt": {
                    "type": "integer"
                  },
                  "height": {
                    "type": "integer"
                  },
                  "url": {
                    "type": "string"
                  },
                  "width": {
                    "type": "integer"
                  }
                }
              },
              "pictureUrl": {
                "type": "string"
              },
              "position": {
                "type": "string"
              }
            }
          },
          "commentary": {
            "type": "string"
          },
          "contributed": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string"
          },
          "createdAtTimestamp": {
            "type": "integer"
          },
          "edited": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "linkedinUrl": {
            "type": "string"
          },
          "numComments": {
            "type": "integer"
          },
          "numImpressions": {
            "type": "null"
          },
          "numShares": {
            "type": "null"
          },
          "pinned": {
            "type": "boolean"
          },
          "postId": {
            "type": "string"
          },
          "reactionTypeCounts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "count": {
                  "type": "integer"
                },
                "type": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "error": {
      "type": "string"
    },
    "pagination": {
      "type": "object",
      "properties": {
        "pageNumber": {
          "type": "integer"
        },
        "pageSize": {
          "type": "integer"
        },
        "paginationToken": {
          "type": "string"
        },
        "previousElements": {
          "type": "integer"
        },
        "totalElements": {
          "type": "integer"
        },
        "totalPages": {
          "type": "integer"
        }
      }
    },
    "status": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Schema template (HTTP assumed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/harvestapi/linkedin/profile-comments?profile=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fsatyanadella' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Configured HTTP 200; actual status is unverified.
```json
{
  "elements": [
    {
      "actor": {
        "author": false,
        "id": "ACoAABLGFg4BRMcDx84MmyU8X-Jqcw9wKCA1QxU",
        "linkedinUrl": "https://www.linkedin.com/in/harshavardhangh",
        "name": "Harshavardhan G H",
        "picture": {
          "expiresAt": 1753920000000,
          "height": 800,
          "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
        },
        "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",
        "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"
      },
      "commentary": "Exciting 🔥",
      "contributed": false,
      "createdAt": "2025-05-18T23:30:58.680Z",
      "createdAtTimestamp": 1747611058680,
      "edited": false,
      "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",
      "numComments": 0,
      "numImpressions": null,
      "numShares": null,
      "pinned": false,
      "postId": "7329991434395160578",
      "reactionTypeCounts": [
        {
          "count": 1,
          "type": "LIKE"
        }
      ]
    }
  ],
  "error": "<error>",
  "pagination": {
    "pageNumber": 0,
    "pageSize": 0,
    "paginationToken": "<paginationToken>",
    "previousElements": 0,
    "totalElements": 0,
    "totalPages": 0
  },
  "status": 0
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which recency values are documented?
postedLimit is described as accepting 24h, week or month. These values describe the recency filter; the exposed schema does not encode them as an enum.

### How are later pages requested?
Use an integer page value with paginationToken from the preceding response. The input description requires that token for pages greater than 1.

### Can I replace null counts with zero?
Keep null or unavailable counts distinct from an explicit zero. Preserve the returned count and reaction-type structures.

### Does this query write comments or fetch every reply?
It reads the profile-related comment records described by this endpoint. Use a comment-reply endpoint for replies to a specific comment.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- harvestapi: https://openany.si/linkedin/linkedin-get-comments-of-linkedin-profile/9a197cbb-839a-46b9-82fd-a2bebc935d5c/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
