usernamestringbắt buộc
LinkedIn username from the profile URL, for example jack from linkedin.com/in/jack.
https://api.sandbase.ai/v1/api/linkedin/user-detailGet a LinkedIn profile by username, including documented core profile fields such as name and headline. Use it to inspect a person's professional background or before requesting published posts.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
This API returns a public LinkedIn profile for one person. It needs the LinkedIn username from the profile URL, for example williamhgates from linkedin.com/in/williamhgates. The response includes name, position, location, work history, education, follower count, and recent posts and activity.
experience and education lists.followers and the influencer flag.similar_profiles.curl -X POST "https://api.sandbase.ai/v1/api/linkedin/user-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username": "williamhgates"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
username | string | Yes | LinkedIn username from the profile URL, for example jack from linkedin.com/in/jack. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"about": "Chair of the Gates Foundation. Founder of Breakthrough Energy. Co-founder of Mic…",
"activity": [
{
"id": "7522801130767224832",
"img": "https://media.licdn.com/dms/image/sync/v2/D4E27AQFkOX_Yu-a3fA/articleshare-shrin…",
"interaction": "Bill Gates shared this",
"link": "https://www.linkedin.com/posts/williamhgates_world-bank-says-small-ai-could-tran…",
"title": "Useful advice for farmers, in their own language, on a phone they already have i…"
}
],
"avatar": "https://media.licdn.com/dms/image/v2/D5603AQF-RYZP55jmXA/profile-displayphoto-sh…",
"banner_image": "https://media.licdn.com/dms/image/v2/D5616AQEjhPbTCeblYg/profile-displaybackgrou…",
"bio_links": [
{
"link": "https://gatesnot.es/sourcecode-li",
"title": "Blog"
}
],
"city": "Seattle, Washington, United States",
"connections": 8,
"country_code": "US",
"current_company": {
"company_id": "gates-foundation",
"name": "Gates Foundation",
"title": "Co-chair"
},
"current_company_company_id": "gates-foundation",
"current_company_name": "Gates Foundation",
"default_avatar": false
}
| Field | Meaning |
|---|---|
name / first_name / last_name | The person's full name and its parts. |
position | The headline text shown under the person's name. |
about | The free-text summary section of the profile. |
city / country_code | Location of the person as a readable place and a country code. |
followers / connections | Counts of followers and connections shown on the profile. Check influencer for the platform's influencer flag. |
current_company.name / current_company.title / current_company.company_id | The current employer, the person's title there, and the company's LinkedIn ID. |
experience[].company / experience[].title / experience[].start_date / experience[].end_date | Each job entry with the company, role and dates. An end_date of Present marks a current role. |
education[].title / education[].start_year / education[].end_year | Each school with the years attended, when listed. |
posts[].title / posts[].link / posts[].created_at / posts[].interaction | Recent published articles with link, date, and a text summary of engagement. |
activity[].title / activity[].link / activity[].interaction | Recent activity such as shared posts, with the post text and link. |
username from the part of the profile URL after linkedin.com/in/. The response echoes it in linkedin_id and id.linkedin_num_id holds the numeric profile ID. Post IDs in posts[].id and activity[].id are long numeric strings.similar_profiles[].url gives the profile URL of related people. Use the last part of the URL as username in a new call.$0.028571 per successful call. 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/user-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"username": "williamhgates"
}'Đặ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.
usernamestringbắt buộcLinkedIn username from the profile URL, for example jack from linkedin.com/in/jack.
Đâ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 User ProfileAPI này LinkedIn | $0.028571 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/user-detail 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.
$0.028571 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: username (string). 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 User Profile 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.