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

LinkedIn Profile Comments

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

List the comments a LinkedIn member has left on other people's posts - the comment text, its permalink and timestamp, plus the post it was left on and that post's author and engagement.

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

Phòng thử nghiệm

Đầu vào
Full URL of the LinkedIn member profile whose comments on other people's posts should be listed.
1100
Maximum number of comments to return. Phạm vi: 1 đến 100.
Only return comments posted within this window (default any).
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `edited` or `isAuthor`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a comment that genuinely lacks it. Naming a combination that no single source returns together 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 Profile Comments API

Returns the comments a LinkedIn member has left on other people's posts. Each item has the comment text, its link and timestamp, plus the post it was left on, that post's author and engagement counts. It needs the full profile URL in url.

Use cases

  • Track what a executive comments on to see which topics and people they engage with.
  • Build a list of the post authors a prospect interacts with most often, for warm outreach.
  • Monitor a public figure's recent public remarks on other people's announcements.
  • Measure how much reaction a member's comments get by reading the comment engagement counts.

Request

curl -X POST "https://api.sandbase.ai/v1/api/linkedin/profile-comments" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.linkedin.com/in/jeffweiner08", "limit": 10}'

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

Parameters

NameTypeRequiredDescription
urlstringYesFull URL of the LinkedIn member profile whose comments on other people's posts should be listed.
limitintegerNoMaximum number of comments to return.
postedLimitstringNoOnly return comments posted within this window (default any).
requireFieldsarrayNoOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example edited or isAuthor, and it is served only by a source that returns

Example response

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

{
  "data": {
    "items": [
      {
        "actor": {
          "id": "ACoAAAFUu6sBhlQbcvAS0GdcPE344dA3vwutzVM",
          "image": "https://media.licdn.com/dms/image/v2/C4D03AQFM3Y2r-OEStw/profile-displayphoto-sh…",
          "linkedinUrl": "https://www.linkedin.com/in/jeffweiner08",
          "name": "Jeff Weiner",
          "position": "Founding Partner Next Play Ventures; Former CEO / Executive Chairman at LinkedIn"
        },
        "commentary": "Congrats Daniel, Ryan, and the entire content team on the incredible recognition…",
        "createdUtc": 1793468458,
        "edited": null,
        "engagement": {
          "comments": 0,
          "likes": 13
        },
        "id": "7522351927607660544",
        "isAuthor": null,
        "post": {
          "author": {
            "headline": "VP of Content | Editor in Chief | Building content-led products, media, and know…",
            "image": "https://media.licdn.com/dms/image/v2/D4E03AQFssLpG8RItRA/profile-displayphoto-sh…",
            "name": "Daniel Roth",
            "profileUrl": "https://www.linkedin.com/in/danielroth1",
            "publicIdentifier": "danielroth1"
          },
          "engagement": {
            "comments": 68,
            "reactions": 671,
            "reposts": 8
          },
          "id": "7522345650261270528",
          "postedUtc": 1793466961,
          "text": "If you'd told me early in my career that I'd be sitting in the Hollywood Palladi…",
          "url": "https://www.linkedin.com/posts/danielroth1_if-youd-told-me-early-in-my-career-th…"
        },
        "url": "https://www.linkedin.com/feed/update/urn:li:ugcPost:7522345650261270528?commentU…"
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
data.items[].idID of the comment.
data.items[].commentaryText of the comment. Long text may be cut.
data.items[].urlPermalink to the comment on LinkedIn, inside the post it belongs to.
data.items[].createdUtcTime the comment was created, as a Unix timestamp in seconds.
data.items[].engagement.likes / data.items[].engagement.commentsNumber of likes and replies on the comment itself.
data.items[].actor.name / data.items[].actor.position / data.items[].actor.linkedinUrlName, headline and profile URL of the member who wrote the comment.
data.items[].post.id / data.items[].post.urlID and link of the post that was commented on.
data.items[].post.textText of the post that was commented on. Some posts have no text key.
data.items[].post.postedUtcTime the post was published, as a Unix timestamp in seconds.
data.items[].post.author.name / data.items[].post.author.headline / data.items[].post.author.profileUrl / data.items[].post.author.publicIdentifierName, headline, profile URL and public handle of the person who wrote the post.
data.items[].post.engagement.reactions / data.items[].post.engagement.comments / data.items[].post.engagement.repostsCounts of reactions, comments and reposts on the post.

Notes

  • Use the full profile address as url, for example https://www.linkedin.com/in/jeffweiner08. You can find it with LinkedIn Profile Search.
  • limit accepts 1 to 100. Use postedLimit with 24h, week or month to keep only recent comments.
  • edited and isAuthor came back as null in this response. Name them in requireFields if you need them, but the call may then cost more.
  • To read the replies under a comment, call LinkedIn Comment Replies. For the full post, call LinkedIn Post.

Pricing

Billed at the actual cost of each call, about $0.0029 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.0029 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 Profile Comments?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/linkedin/profile-comments 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 Profile Comments có giá bao nhiêu?

Từ $0.0029 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 Profile Comments chấp nhận những tham số nào?

Bắt buộc: url (string). Tùy chọn: limit (integer), postedLimit (một trong số any, 24h, week, month) và requireFields (array). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API LinkedIn Profile Comments 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 Profile Comments 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.