# Get comments of LinkedIn post

Get LinkedIn Post Comments data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by Harvestapi, configure supported query parameters and filters, and retrieve structured data including returned page number field, returned page size field, returned pagination token field, returned previous elements field, and returned total elements field for content research and account lookup, and integration reference.

Documentation: https://openany.si/linkedin/linkedin-post-comments-e2f0a920/416b6fbf-c9c7-459f-be32-642ba8c42b05/
API ID: 416b6fbf-c9c7-459f-be32-642ba8c42b05
Provider: harvestapi
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/harvestapi/linkedin/post-comments
Page update time: 2026-12-03T02:53:27.918Z
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:53:27.035Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "4000",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Get comments of LinkedIn post API

Retrieve comments of LinkedIn post via API. Review the optional inputs supported by the selected implementation. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Content research and account lookup**: Keep source records connected to their content and account identifiers.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `pagination.pageNumber` | Returned page number field |
| `pagination.pageSize` | Returned page size field |
| `pagination.paginationToken` | Returned pagination token field |
| `pagination.previousElements` | Returned previous elements field |
| `pagination.totalElements` | Returned total elements field |
| `pagination.totalPages` | Returned total pages field |
| `status` | Reported status |
| `elements[].id` | Identifier |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Get comments of LinkedIn post 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": {
        "post": {
          "type": "string",
          "description": "URL of the LinkedIn post (required)"
        },
        "sortBy": {
          "type": "string",
          "description": "Sort comments by field. Supported values: 'relevance', 'date'"
        },
        "page": {
          "type": "integer",
          "description": "Page number for pagination. Default is 1"
        },
        "paginationToken": {
          "type": "string",
          "description": "Required only if sortBy is 'relevance' and page > 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; request placeholders)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/harvestapi/linkedin/post-comments' \
  -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
### Does this implementation require business input parameters?
No business input is marked as required by the selected schema. Review any optional filters and the documented request format before calling.

### Which pagination or result-size inputs are exposed?
page is integer. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.

### What type does page use?
page uses the JSON type integer in query. Preserve that type; strings, numbers, booleans and arrays are not interchangeable.

### Where do URL parameters belong?
Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

### 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 API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- harvestapi: https://openany.si/linkedin/linkedin-post-comments-e2f0a920/416b6fbf-c9c7-459f-be32-642ba8c42b05/
- tikhub: https://openany.si/linkedin/linkedin-post-comments-e2f0a920/b9b8fe35-f9f2-475b-97c3-cf34fd51ec2a/

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