JSON 格式的 LinkedIn 个人资料是一个带有固定键集合的对象:这个人是谁、现在做什么、在哪里工作和求学过、受众规模多大、最近发了什么。使用 ProfileHunt 时,每个键都始终存在;个人资料未公开显示的内容为 null,空列表为 []。本指南逐一讲解每组字段、它们的类型,以及在存储数据或映射到 CRM 时需要注意的细节。
关于数据最初是如何获取的,请参见什么是 LinkedIn 个人资料 API。
要点速览
- 键永远不会缺失。 判断
null,而不是判断键是否存在。 - 日期有两种格式。 职位和学校使用 LinkedIn 自己的
"2014"或"2014-02";时间戳是 UTC 时区的 ISO 8601 格式。 - 当前职位没有
end_date。 这就是找出某人当前工作的方法。 - 部分数值有上限。 在公开视图中,
connections最高为 500;对于主要靠关注者的知名人士,这个数往往比你预想的还低。
精简示例
这是我们首页示例中的一份真实响应,只保留了一条动态:
{
"public_id": "williamhgates",
"profile_url": "https://www.linkedin.com/in/williamhgates",
"full_name": "Bill Gates",
"first_name": "Bill",
"last_name": "Gates",
"headline": "Chair, Gates Foundation and Founder, Breakthrough Energy",
"location": "Seattle, Washington, United States",
"country": "US",
"experience": [
{
"company": "Gates Foundation",
"company_url": "https://www.linkedin.com/company/gates-foundation",
"title": "Co-chair",
"location": null,
"description": null,
"start_date": "2000",
"end_date": null
},
{
"company": "Breakthrough Energy",
"company_url": "https://www.linkedin.com/company/breakthrough-energy",
"title": "Founder",
"location": null,
"description": null,
"start_date": "2015",
"end_date": null
},
{
"company": "Microsoft",
"company_url": "https://www.linkedin.com/company/microsoft",
"title": "Co-founder",
"location": null,
"description": null,
"start_date": "1975",
"end_date": null
}
],
"education": [
{
"school": "Harvard University",
"school_url": "https://www.linkedin.com/school/harvard-university/",
"start_date": "1973",
"end_date": "1975"
}
],
"followers": 40725248,
"connections": 8,
"creator": true,
"badges": [
"Creator",
"Top Voice"
],
"last_post_at": "2026-10-12T20:10:59.000Z",
"recent_posts": [
{
"url": "https://www.linkedin.com/posts/williamhgates_child-malnutrition-is-one-of-africas-biggest-activity-7514893923710984192-ZuIL",
"posted_at": "2026-10-11T03:45:31.389Z",
"text": "Tackling malnutrition requires more than a steady supply of nutritious food. Access to healthcare, clean water, and safe sanitation are just…",
"likes": 1364
}
],
"scraped_at": "2026-10-13T09:00:00.000Z"
}
真实响应中还包含 photo_url、about、languages、badges、recent_articles、last_reaction_at 和 recent_reactions。
身份
| 字段 | 类型 | 说明 |
|---|---|---|
public_id | string | URL 中 /in/ 后面的名称(已解码)。可作为去重的稳定键。 |
profile_url | string | 规范 URL:https://www.linkedin.com/in/ + public_id。 |
full_name、first_name、last_name | string 或 null | 已拆分好,方便邮件合并。 |
photo_url | string 或 null | 指向 LinkedIn 服务器上照片的链接。这类链接可能会过期,如需长期保存,请下载图片。 |
请用 public_id(或 profile_url)而不是姓名作为关联键。重名的人很多,但个人资料 URL 不会重复。
概要
| 字段 | 类型 | 说明 |
|---|---|---|
headline | string 或 null | 姓名下方的那行标题,由本人撰写。 |
about | string 或 null | “关于”部分,可能很长。 |
location | string 或 null | 按页面显示的原样返回,例如 "Seattle, Washington, United States"。 |
country | string 或 null | 两位字母代码,例如 "US"。筛选和分配时请基于这个字段,而不是 location。 |
工作经历与教育经历
experience 是一个职位列表,顺序与个人资料上显示的一致:
| 字段 | 类型 | 说明 |
|---|---|---|
company | string | 始终有值。 |
company_url | string 或 null | 公司的 LinkedIn 主页,便于匹配客户账户。 |
title | string 或 null | 仅当前职位有值;公开视图不显示过往职位的头衔。 |
location | string 或 null | |
description | string 或 null | 通常对未登录访客隐藏,所以大多为 null。 |
start_date、end_date | string 或 null | "2014" 或 "2014-02"。当前职位的 end_date 为 null。 |
education 包含 school、school_url、start_date 和 end_date,日期格式相同。
要获取某人的当前工作,取 end_date: null 的职位即可。第一个通常是主要职位。一个人可能同时有多个当前职位(比如一份工作外加一个董事会席位),所以不要假设只有一个。
影响力与徽章
| 字段 | 类型 | 说明 |
|---|---|---|
followers | number 或 null | 关注者数量。 |
connections | number 或 null | 500 表示 500 及以上,因为 LinkedIn 向未登录访客显示的是“500+”。 |
creator | boolean | 个人资料显示创作者徽章时为 true。 |
badges | string[] | 诸如 Creator 或 Top Voice 之类的徽章。 |
languages | string[] | 个人资料上列出的语言。 |
活动
| 字段 | 类型 | 说明 |
|---|---|---|
last_post_at | string 或 null | 最近一条动态或文章的时间。 |
recent_posts | Post[] | url、posted_at、text(可能被截断,以“…”结尾)、likes。包含转发。 |
recent_articles | Article[] | url、headline、image_url、published_at、likes。 |
last_reaction_at | string 或 null | 最近一次互动回应的时间。 |
recent_reactions | Reaction[] | verb、reacted_at、post_url、post_author、post_at。 |
scraped_at | string | 读取该个人资料的时间。请保留它:它能告诉你手上的数据有多旧。 |

把 JSON 映射到 CRM 或数据表
大多数团队会把对象展平,每人一行。下面的映射适用于大多数 CRM:
| 列 | 来源 |
|---|---|
| LinkedIn URL | profile_url |
| 名 / 姓 | first_name / last_name |
| 职位 | 第一个 end_date: null 职位的 title |
| 公司 | 同一职位的 company |
| 国家 | country |
| 关注者 | followers |
| 最近在 LinkedIn 上活跃的时间 | last_post_at |
| 补全时间 | scraped_at |
同时也把完整的 JSON 保存下来,放在 JSON 或文本列里,或者放进数据仓库的表中。今天没有映射的字段(教育经历、最新动态)往往正是你下个季度想要的,而存储它们不需要额外付费。

处理 null、日期和类型
- null 值:
null表示该个人资料不向未登录访客显示这个值,并不代表 API 调用失败。在决定好之前,不要用null覆盖你已有的值。 - 不完整的日期:
"2014"和"2014-02"不是完整日期。如果数据库需要日期类型,可以把字符串原样存到文本列中,或者把"2014"转换为2014-01-01,并保留一个“仅有年份”的标记。 - 时间戳:
posted_at、last_post_at和scraped_at都是 UTC 时区的 ISO 8601 格式,在任何语言中都能直接解析。 - 类型化客户端: OpenAPI 文件描述了每个结构(
Profile、Position、School、Post、Article、Reaction),你可以直接生成类型,而不必手写。
个人资料接口参考文档是所有字段的权威来源。处理个人资料名单时,批量 API 指南说明了结果如何与你的行一一对应。
常见问题
LinkedIn 个人资料 JSON 包含邮箱或电话吗?
不包含。LinkedIn 不在个人资料的公开视图中显示联系方式,所以 JSON 里没有这些信息。
为什么过往职位的头衔是 null?
LinkedIn 的公开视图只显示当前职位的头衔。过往职位会返回公司、地点和日期。
每份个人资料的数据结构都一样吗?
是的。每份个人资料都包含所有键,变化的只有值;个人资料没有显示内容的地方为 null 或 []。
有机器可读的数据结构定义吗?
有。位于 /openapi.json 的 OpenAPI 文件描述了请求、响应以及每个嵌套对象。

