urlstringbắt buộc
Full LinkedIn company page URL.
https://api.sandbase.ai/v1/api/linkedin/company-postsList a LinkedIn company page's recent posts by URL: full text, canonical link, publish date, author, engagement counts with a per-reaction breakdown, and attached media.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns a list of recent posts from a LinkedIn company page. Each post includes text, links, a publish timestamp, author details, engagement counts and attached media. It needs the full company page URL in url.
curl -X POST "https://api.sandbase.ai/v1/api/linkedin/company-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.linkedin.com/company/stripe", "limit": 10}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Full LinkedIn company page URL. |
includeQuotePosts | boolean | No | Include quote posts (posts shared with an added comment). Defaults to true; set false to exclude them. |
includeReposts | boolean | No | Include reposts (posts shared without an added comment). Defaults to true; set false to exclude them. |
limit | integer | No | Maximum number of posts to return. |
postedLimit | string | No | Only return posts published within this window (default any). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"items": [
{
"author": {
"id": "2135371",
"image": "https://media.licdn.com/dms/image/v2/D560BAQE2ZfJyfn-VCg/company-logo_400_400/B5…",
"linkedinUrl": "https://www.linkedin.com/company/stripe/",
"name": "Stripe",
"type": "company",
"universalName": "stripe"
},
"contentAttributes": [],
"createdUtc": 1793605643,
"engagement": {
"comments": 10,
"likes": 872,
"reactions": [],
"shares": 29
},
"id": "7522927325529862144",
"postImages": [],
"postVideo": null,
"repostAuthorName": "Stripe",
"repostAuthorUniversalName": "stripe",
"repostAuthorUrl": "https://www.linkedin.com/company/stripe/",
"repostCreatedUtc": 1793605643,
"shareUrl": "https://www.linkedin.com/posts/jefftitterton_congratulations-to-kimi-antonelli-o…"
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.items[].id | ID of the post, as a string. |
data.items[].text | Post text. Long posts may be shortened in the sample. |
data.items[].url / data.items[].shareUrl | Link to the post on LinkedIn. |
data.items[].createdUtc | Publish time as a Unix timestamp in seconds. |
data.items[].author.name / data.items[].author.universalName / data.items[].author.linkedinUrl | Name, URL slug and page link of the company that published the post. |
data.items[].engagement.likes / data.items[].engagement.comments / data.items[].engagement.shares | Counts of likes, comments and shares for the post. |
data.items[].engagement.reactions[].type / data.items[].engagement.reactions[].count | Reaction breakdown, such as LIKE, EMPATHY or PRAISE, with the count for each. The list can be empty. |
data.items[].postImages[].url | Link to an image attached to the post. Each image also has width and height. |
data.items[].contentAttributes[] | Mentions inside the text. Each entry has a type such as COMPANY_NAME or PROFILE_MENTION, plus start and length for its position in text. |
data.items[].repostAuthorName / data.items[].repostAuthorUrl / data.items[].repostCreatedUtc | Present on reposted items. They name the account tied to the repost and give a timestamp. |
https://www.linkedin.com/company/stripe. Get the company page URL from LinkedIn Company Search.limit from 1 to 50 (default 10). Use postedLimit to restrict posts to a time window.includeReposts or includeQuotePosts to false to leave those post types out.url. To read its comments, call LinkedIn Post Comments.Billed at the actual cost of each call, about $0.0029 for the request above. Failed calls are not charged.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/linkedin/company-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.linkedin.com/company/stripe",
"limit": 10
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
urlstringbắt buộcFull LinkedIn company page URL.
limitintegerMaximum number of posts to return.
Mặc định: 10
postedLimitstringOnly return posts published within this window (default any).
Giá trị có thể dùng: any, 1h, 24h, week, month, 3months, 6months, year
includeRepostsbooleanInclude reposts (posts shared without an added comment). Defaults to true; set false to exclude them.
includeQuotePostsbooleanInclude quote posts (posts shared with an added comment). Defaults to true; set false to exclude them.
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
LinkedIn Company PostsAPI này LinkedIn | Từ $0.0029 mỗi lần gọi | JSON |
LinkedIn | Từ $0.0012 mỗi lần gọi | JSON |
LinkedIn | Từ $0.0331 mỗi lần gọi | JSON |
LinkedIn | Từ $0.0012 mỗi lần gọi | JSON |
LinkedIn | Từ $0.00569 mỗi lần gọi | JSON |
LinkedIn | Từ $0.0026 mỗi lần gọi | JSON |
Hướng dẫn:LinkedIn API pricing: official access vs per-call dataBest LinkedIn API in 2026: Pricing Compared
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/linkedin/company-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.
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ý.
Bắt buộc: url (string). Tùy chọn: limit (integer), postedLimit (một trong số any, 1h, 24h, week, month, 3months, 6months, year), includeReposts (boolean) và includeQuotePosts (boolean). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
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.
Không. LinkedIn Company Posts 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.