querystringจำเป็น
The post search query.
https://api.sandbase.ai/v1/api/linkedin/search-postsSearch 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.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | The post search query. |
cursor | string | No | Pagination cursor from a previous response. |
datePosted | string | No | Filter by recency. One of last-hour, last-day, last-week, last-month, last-year. |
requireCursor | boolean | No | 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. |
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
}
| Field | Meaning |
|---|---|
data.posts[].text | Text of the post. The sample values end with an ellipsis, so the text can be shortened. |
data.posts[].url | Link to the post on LinkedIn. |
data.posts[].id | ID of the post. It is a numeric string and also appears at the end of the post url. |
data.posts[].authorName / data.posts[].authorUrl | Display name and LinkedIn page link of the author. The link can point to a person (/in/) or a company (/company/). |
data.posts[].avatarUrl | Link to the author's profile image. It can be an empty string. |
data.posts[].reactionCount / data.posts[].commentCount | Number of reactions and comments on the post. |
data.posts[].createdUtc | Time the post was created, as a Unix timestamp. |
data.nextCursor | Cursor value to send as cursor to get the next page of results. |
found | true when the search returned results. |
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.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
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"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
querystringจำเป็นThe post search query.
cursorstringPagination cursor from a previous response.
datePostedstringFilter by recency. One of last-hour, last-day, last-week, last-month, last-year.
ค่าที่เป็นไปได้: last-hour, last-day, last-week, last-month, last-year
requireCursorbooleanDeprecated. 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.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
LinkedIn Post SearchAPI นี้ LinkedIn | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
LinkedIn | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
LinkedIn | เริ่มต้นที่ $0.0331 ต่อครั้ง | JSON |
LinkedIn | เริ่มต้นที่ $0.0012 ต่อครั้ง | JSON |
LinkedIn | เริ่มต้นที่ $0.00569 ต่อครั้ง | JSON |
LinkedIn | เริ่มต้นที่ $0.0026 ต่อครั้ง | JSON |
คู่มือ:LinkedIn API pricing: official access vs per-call dataBest LinkedIn API in 2026: Pricing Compared
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/linkedin/search-posts โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
เริ่มต้นที่ $0.0012 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: query (string). ตัวเลือก: cursor (string), datePosted (หนึ่งใน last-hour, last-day, last-week, last-month, last-year) และ requireCursor (boolean). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น LinkedIn Post Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง LinkedIn API แยกต่างหาก