Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

LinkedIn Comment Replies

Tài liệu API
https://api.sandbase.ai/v1/api/linkedin/comment-replies

List up to the 10 newest replies to a comment on a LinkedIn post - reply text, replier name/URL/job title, timestamps, and likes.

Giá
Từ $0.0026USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
LinkedIn comment URL, as returned in the url field of linkedin.post_comments or copied with "Copy link to comment" (a /feed/update/... link carrying commentUrn and dashCommentUrn). A reply's URL returns the thread it belongs to. A post URL without dashCommentUrn is refused as invalid input, with no charge.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

LinkedIn Comment Replies API

This API returns up to the 10 newest replies to one comment on a LinkedIn post. Each reply includes the text, the replier's name, profile URL and job title, a timestamp, and like counts. It needs a LinkedIn comment URL as input.

Use cases

  • Read the full thread under a high-traffic comment to see how people respond to it.
  • Collect the profile URLs and job titles of people who reply to a comment, to build a list of engaged accounts.
  • Track which replies draw likes and which reaction types they get.
  • Find who is mentioned in each reply through the contentAnnotations entries.

Request

curl -X POST "https://api.sandbase.ai/v1/api/linkedin/comment-replies" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.linkedin.com/feed/update/urn:li:activity:7510715600319467520?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7510715600319467520%2C7510749329649725442%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287510749329649725442%2Curn%3Ali%3Aactivity%3A7510715600319467520%29"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
urlstringYesLinkedIn comment URL, as returned in the url field of linkedin.post_comments or copied with "Copy link to comment" (a /feed/update/... link carrying commentUrn and dashCommentUrn). A reply's URL returns the thread it bel

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "items": [
      {
        "actor": {
          "id": "ACoAAAEdHaIBq2zcPNMrJ_k-Z5E7LasZNFSRl7E",
          "linkedinUrl": "https://www.linkedin.com/in/kate-orloski-3423116",
          "name": "Kate Orloski",
          "position": "Marketing",
          "type": "profile"
        },
        "commentary": "Paul Linehan\nTo put a finer point on this, your earlier response, “My point was …",
        "contentAnnotations": [
          {
            "hyperlink": "https://www.linkedin.com/in/ACoAAAbqHRMBD_eyM7-R9_bqbQHjBhVCpmHRIq4",
            "length": 12,
            "profileFirstName": "Paul",
            "profileId": "ACoAAAbqHRMBD_eyM7-R9_bqbQHjBhVCpmHRIq4",
            "profileLastName": "Linehan",
            "profileUrl": "https://www.linkedin.com/in/ACoAAAbqHRMBD_eyM7-R9_bqbQHjBhVCpmHRIq4",
            "start": 0,
            "type": "PROFILE_MENTION"
          }
        ],
        "createdUtc": 1792813635,
        "edited": false,
        "engagement": {
          "likes": 0,
          "reactions": []
        },
        "id": "7519605402238476288",
        "postId": "activity:7510715600319467520",
        "url": "https://www.linkedin.com/feed/update/urn:li:activity:7510715600319467520?comment…"
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
data.items[].commentaryText of the reply. In the sample it starts with the name of the person being replied to.
data.items[].actor.name / data.items[].actor.positionDisplay name and headline of the person who wrote the reply.
data.items[].actor.linkedinUrl / data.items[].actor.idProfile URL and LinkedIn profile ID of the replier. The image field holds a profile photo URL when one is present.
data.items[].createdUtcTime the reply was posted. The value is a Unix timestamp in seconds.
data.items[].editedtrue if the reply was edited after posting.
data.items[].engagement.likesLike count for the reply.
data.items[].engagement.reactions[].type / data.items[].engagement.reactions[].countReaction type, such as LIKE or APPRECIATION, and how many people gave it.
data.items[].contentAnnotations[].profileUrl / data.items[].contentAnnotations[].typeProfile link for each annotation in the reply text. A PROFILE_MENTION marks a mentioned person.
data.items[].id / data.items[].postIdID of the reply and the ID of the post it belongs to, in the form activity:<number>.
foundtrue when the comment was found.

Notes

  • Get the input url from the url field of LinkedIn Post Comments, or copy it with "Copy link to comment" on LinkedIn.
  • The URL must carry commentUrn and dashCommentUrn. A post URL without dashCommentUrn is refused as invalid input.
  • A reply's URL returns the thread it belongs to.
  • To see who reacted to a comment, call LinkedIn Comment Reactions.

Pricing

Billed at the actual cost of each call, about $0.0026 for the request above. Failed calls are not charged.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
LinkedInTừ $0.0026 mỗi lần gọiJSON
LinkedInTừ $0.0012 mỗi lần gọiJSON
LinkedInTừ $0.0331 mỗi lần gọiJSON
LinkedInTừ $0.0012 mỗi lần gọiJSON
LinkedInTừ $0.00569 mỗi lần gọiJSON
LinkedInTừ $0.0026 mỗi lần gọiJSON

Hướng dẫn:LinkedIn API pricing: official access vs per-call dataBest LinkedIn API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API LinkedIn Comment Replies?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/linkedin/comment-replies với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API LinkedIn Comment Replies có giá bao nhiêu?

Từ $0.0026 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API LinkedIn Comment Replies chấp nhận những tham số nào?

Bắt buộc: url (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API LinkedIn Comment Replies trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của LinkedIn không?

Không. LinkedIn Comment Replies chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của LinkedIn.