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

LinkedIn Post Search

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

Search public LinkedIn posts by keyword (text, link, publish date). Results come from search-engine matches over public LinkedIn posts and work best with English keywords.

Giá
Từ $0.0012USD / 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
The post search query.
Pagination cursor from a previous response.
Filter by recency. One of last-hour, last-day, last-week, last-month, last-year.
Deprecated. Every source for this search returns a nextCursor, so this changes nothing about the price or which source serves you; it stays accepted so callers that already send it keep working.
Đầ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 Post Search API

Returns public LinkedIn posts that match a keyword search. Each post includes the author, the post text, reaction and comment counts, and a link. The only required input is query, and you can narrow results with datePosted.

Use cases

  • Track how often people discuss a topic or brand on LinkedIn in the past week.
  • Find recent posts from recruiters and companies that mention hiring.
  • Collect high-engagement posts on a keyword to study what content gets reactions.
  • Build a list of authors who post about a niche subject.

Request

curl -X POST "https://api.sandbase.ai/v1/api/linkedin/search-posts" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "hiring", "datePosted": "last-week"}'

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

Parameters

NameTypeRequiredDescription
querystringYesThe post search query.
cursorstringNoPagination cursor from a previous response.
datePostedstringNoFilter by recency. One of last-hour, last-day, last-week, last-month, last-year.
requireCursorbooleanNoDeprecated. Every source for this search returns a nextCursor, so this changes nothing about the price or which source serves you; it stays accepted so callers that already send it keep working.

Example response

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

{
  "data": {
    "nextCursor": "cur_dD2XdS9o_TnOurpj9NGDxQ",
    "posts": [
      {
        "authorName": "Neal 🎙 Schaffer",
        "authorUrl": "https://www.linkedin.com/in/nealschaffer",
        "avatarUrl": "https://media.licdn.com/dms/image/v2/D5603AQEpvaq8manyPQ/profile-displayphoto-sh…",
        "commentCount": 6,
        "createdUtc": 1793296897,
        "id": "7521632349856522240",
        "reactionCount": 15,
        "text": "Hiring an agency isn't a mistake.\n\nHiring one because they called you first is.\n…",
        "url": "https://www.linkedin.com/posts/nealschaffer_hiring-an-agency-isnt-a-mistake-hiri…"
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
data.posts[].textText of the post. The sample values end with an ellipsis, so the text can be shortened.
data.posts[].urlLink to the post on LinkedIn.
data.posts[].idID of the post. It is a numeric string and also appears at the end of the post url.
data.posts[].authorName / data.posts[].authorUrlDisplay name and LinkedIn page link of the author. The link can point to a person (/in/) or a company (/company/).
data.posts[].avatarUrlLink to the author's profile image. It can be an empty string.
data.posts[].reactionCount / data.posts[].commentCountNumber of reactions and comments on the post.
data.posts[].createdUtcTime the post was created, as a Unix timestamp.
data.nextCursorCursor value to send as cursor to get the next page of results.
foundtrue when the search returned results.

Notes

  • Pass data.nextCursor from a response as cursor in the next request to get more posts.
  • datePosted accepts last-hour, last-day, last-week, last-month or last-year.
  • requireCursor is deprecated and has no effect. You can leave it out.
  • To get more detail about one post, call LinkedIn Post. For more post fields per result, see LinkedIn Post Search (full).

Pricing

Billed at the actual cost of each call, about $0.0012 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.0012 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 Post Search?

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

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

Bắt buộc: query (string). Tùy chọn: cursor (string), datePosted (một trong số last-hour, last-day, last-week, last-month, last-year) và requireCursor (boolean). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API LinkedIn Post Search 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 Post Search 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.