cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/linkedin/get_user_profile?username=jack&include_follower_and_connection=false&include_experiences=false&include_skills=false&include_certifications=false&include_publications=false&include_educations=false&include_volunteers=false&include_honors=false&include_interests=false&include_bio=false' \
--header 'Authorization: Bearer <YOUR_API_KEY>'import requests
response = requests.get(
'https://api.keyapi.ai/v1/linkedin/get_user_profile',
params={"username": "jack", "include_follower_and_connection": "false", "include_experiences": "false", "include_skills": "false", "include_certifications": "false", "include_publications": "false", "include_educations": "false", "include_volunteers": "false", "include_honors": "false", "include_interests": "false", "include_bio": "false"},
headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
)
print(response.json())const params = new URLSearchParams({"username": "jack", "include_follower_and_connection": "false", "include_experiences": "false", "include_skills": "false", "include_certifications": "false", "include_publications": "false", "include_educations": "false", "include_volunteers": "false", "include_honors": "false", "include_interests": "false", "include_bio": "false"});
const response = await fetch(`https://api.keyapi.ai/v1/linkedin/get_user_profile?${params}`, {
method: 'GET',
headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
});
const data = await response.json();
console.log(data);{
"code": 0,
"message": "success",
"data": {
"id": "615825428",
"urn": "ACoAACS0wBQB9GfGRgyQfsFTHlx2ZBohtGXPlQ8",
"public_identifier": "jack",
"first_name": "Jack",
"last_name": "Rogers",
"full_name": "Jack Rogers",
"headline": "Problem Solver, Developer, Human - Managing Director at D3VL",
"is_premium": false,
"is_open_to_work": false,
"is_hiring": false,
"is_memorialized": false,
"is_influencer": false,
"is_top_voice": false,
"is_creator": false,
"birth": {
"day": null,
"month": null,
"year": null
},
"pronoun": null,
"created": 1509141319065,
"created_date": "2017-10-27T21:55:19.065Z",
"location": {
"country": "United Kingdom",
"country_code": "GB",
"city": "East Cowes, England, United Kingdom",
"postal_code": null
},
"cover": [
{
"width": 574,
"height": 143,
"url": "https://media.licdn.com/dms/image/v2/D4E16AQEXgh9-ad4Spg/profile-displaybackgroundimage-shrink_200_800/profile-displaybackgroundimage-shrink_200_800/0/1675532069775?e=1775088000&v=beta&t=k2n03RIe5zrnxSXpInOTsIOdj2i_07HetwmxxM3mGYU",
"expires_at": 1775088000000
},
{
"width": 574,
"height": 143,
"url": "https://media.licdn.com/dms/image/v2/D4E16AQEXgh9-ad4Spg/profile-displaybackgroundimage-shrink_350_1400/profile-displaybackgroundimage-shrink_350_1400/0/1675532069775?e=1775088000&v=beta&t=WwnACp2L_r9pN0DPz2huPum6w3dr_S8YHN2FQOwit8s",
"expires_at": 1775088000000
}
],
"website": {},
"supported_locales": [
{
"country": "US",
"language": "en"
}
],
"primary_locale": {
"country": "US",
"language": "en"
}
},
"requestId": "40db0be5-da77-4613-9052-fde8877ec937"
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}LinkedIn 用户
获取用户资料
获取LinkedIn用户资料信息
GET
/
v1
/
linkedin
/
get_user_profile
cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/linkedin/get_user_profile?username=jack&include_follower_and_connection=false&include_experiences=false&include_skills=false&include_certifications=false&include_publications=false&include_educations=false&include_volunteers=false&include_honors=false&include_interests=false&include_bio=false' \
--header 'Authorization: Bearer <YOUR_API_KEY>'import requests
response = requests.get(
'https://api.keyapi.ai/v1/linkedin/get_user_profile',
params={"username": "jack", "include_follower_and_connection": "false", "include_experiences": "false", "include_skills": "false", "include_certifications": "false", "include_publications": "false", "include_educations": "false", "include_volunteers": "false", "include_honors": "false", "include_interests": "false", "include_bio": "false"},
headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
)
print(response.json())const params = new URLSearchParams({"username": "jack", "include_follower_and_connection": "false", "include_experiences": "false", "include_skills": "false", "include_certifications": "false", "include_publications": "false", "include_educations": "false", "include_volunteers": "false", "include_honors": "false", "include_interests": "false", "include_bio": "false"});
const response = await fetch(`https://api.keyapi.ai/v1/linkedin/get_user_profile?${params}`, {
method: 'GET',
headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
});
const data = await response.json();
console.log(data);{
"code": 0,
"message": "success",
"data": {
"id": "615825428",
"urn": "ACoAACS0wBQB9GfGRgyQfsFTHlx2ZBohtGXPlQ8",
"public_identifier": "jack",
"first_name": "Jack",
"last_name": "Rogers",
"full_name": "Jack Rogers",
"headline": "Problem Solver, Developer, Human - Managing Director at D3VL",
"is_premium": false,
"is_open_to_work": false,
"is_hiring": false,
"is_memorialized": false,
"is_influencer": false,
"is_top_voice": false,
"is_creator": false,
"birth": {
"day": null,
"month": null,
"year": null
},
"pronoun": null,
"created": 1509141319065,
"created_date": "2017-10-27T21:55:19.065Z",
"location": {
"country": "United Kingdom",
"country_code": "GB",
"city": "East Cowes, England, United Kingdom",
"postal_code": null
},
"cover": [
{
"width": 574,
"height": 143,
"url": "https://media.licdn.com/dms/image/v2/D4E16AQEXgh9-ad4Spg/profile-displaybackgroundimage-shrink_200_800/profile-displaybackgroundimage-shrink_200_800/0/1675532069775?e=1775088000&v=beta&t=k2n03RIe5zrnxSXpInOTsIOdj2i_07HetwmxxM3mGYU",
"expires_at": 1775088000000
},
{
"width": 574,
"height": 143,
"url": "https://media.licdn.com/dms/image/v2/D4E16AQEXgh9-ad4Spg/profile-displaybackgroundimage-shrink_350_1400/profile-displaybackgroundimage-shrink_350_1400/0/1675532069775?e=1775088000&v=beta&t=WwnACp2L_r9pN0DPz2huPum6w3dr_S8YHN2FQOwit8s",
"expires_at": 1775088000000
}
],
"website": {},
"supported_locales": [
{
"country": "US",
"language": "en"
}
],
"primary_locale": {
"country": "US",
"language": "en"
}
},
"requestId": "40db0be5-da77-4613-9052-fde8877ec937"
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}🪙1 credit每次请求
Copy for AI
🤖 让 AI 帮你写调用代码
点击按钮复制一段结构化提示词,可直接交给 ChatGPT、Claude 或其他 AI 助手生成接口调用代码。
授权
查询参数
LinkedIn用户名,可以从个人资料URL中获取 例如:https://www.linkedin.com/in/jack 用户名为 jack
包含粉丝和连接数(可选)
包含工作经历(可选)
包含技能(可选)
包含认证(可选)
包含出版物(可选)
包含教育背景(可选)
包含志愿者经历(可选)
包含荣誉奖项(可选)
包含兴趣(可选)
包含个人简介(可选)
响应
请求成功
The response is of type object.
⌘I

