OpenAny
Get API keyAPI Key
APIScrapersSocial Media

linkedin logo
LinkedIn Post Comments API

Get LinkedIn Post Comments data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Compare 2 implementations (Harvestapi and TikHub), 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.

Selected price
$0.004 / callPublished pricing
Sellers / APIs
2 / 2
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

LinkedIn Post Comments API

Prepare your request, then continue with your agent.

Selected price

$0.004 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
LinkedIn Post Comments API

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.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs query: post, sortBy, page, paginationToken
Selected implementation harvestapi · Get comments of LinkedIn post
Billing Follow the selected implementation pricing, billing unit, quantity and charge rules

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

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the supported inputs and set any required query value shown in the template.
  3. Check the HTTP response and business result before reading optional fields.
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'

Request and Response Examples

The response illustration is a schema template, not a captured business response. Replace request placeholders and read actual returned values for your target resource.

Published Get comments of LinkedIn post API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
URL of the LinkedIn post (required)
Sort comments by field. Supported values: 'relevance', 'date'
Page number for pagination. Default is 1
Required only if sortBy is 'relevance' and page > 1. Use this token from the previous page response.

Response template · not a real response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
Current
Get comments of LinkedIn post · GET · View API reference
$0.004 / call0
—successP50—
Get post comments · GET · View API reference
$0.05 / call—Select to load statistics
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · harvestapiUSD / call
Unit price
$0.004

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.

calls

Total $0.4

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/harvestapi/linkedin/post-comments
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
postURL query parametersquerystringNo

URL of the LinkedIn post (required)

sortByURL query parametersquerystringNo

Sort comments by field. Supported values: 'relevance', 'date'

pageURL query parametersqueryintegerNo

Page number for pagination. Default is 1

paginationTokenURL query parametersquerystringNo

Required only if sortBy is 'relevance' and page > 1. Use this token from the previous page response.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • elementsobject[]
    • actorobject
      • authorboolean
      • idstring
      • linkedinUrlstring
      • namestring
      • pictureobject
        • expiresAtinteger
        • heightinteger
        • urlstring
        • widthinteger
      • pictureUrlstring
      • positionstring
    • commentarystring
    • contributedboolean
    • createdAtstring
    • createdAtTimestampinteger
    • editedboolean
    • idstring
    • linkedinUrlstring
    • numCommentsinteger
    • numImpressionsnull
    • numSharesnull
    • pinnedboolean
    • postIdstring
    • reactionTypeCountsobject[]
      • countinteger
      • typestring
  • errorstring
  • paginationobject
    • pageNumberinteger
    • pageSizeinteger
    • paginationTokenstring
    • previousElementsinteger
    • totalElementsinteger
    • totalPagesinteger
  • statusinteger

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Schema template (HTTP assumed; request placeholders)

Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 4

    Review these request fields before running. Keep the published provider and request method unchanged.

    post
    URL of the LinkedIn post (required)
    sortBy
    Sort comments by field. Supported values: 'relevance', 'date'
    page
    Page number for pagination. Default is 1
    paginationToken
    Required only if sortBy is 'relevance' and page > 1. Use this token from the previous page response.
    Terminal · cURL
    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'
  3. Check the response

    Response template · not a real response · Configured HTTP 200; actual status is unverified.

    Response template · not a real response
    {
      "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
    }

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.

Use LinkedIn Post Comments API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.