LinkedIn 搜索主页 API
按关键词搜索 LinkedIn 主页,可选按地点和职位名称筛选。每个匹配结果都返回完整的主页记录:姓名、头衔、地点、当前职位、工作经历、教育经历和技能,以及主页 URL、用户名和 id。如需只返回姓名/头衔/URL 的更便宜搜索,请用 linkedin.search_profiles_thin;如需附加邮箱,请用 linkedin.search_profiles_email。
US$7.92/千条结果,按请求付费,无需订阅。
Lead filters
GeographyIndustryCompany headcountSeniority levelFunctionAbout 1,400 results
Marcus Chen
VP of Sales, Commercial at Salesforce
Chicago, Illinois, United States
20 years scaling B2B SaaS revenue teams from seed to IPO. Currently building out the commercial segment at Salesforce.
{"id": "ACoAAAvpsales001","url": "https://www.linkedin.com/in/marcus-chen-sales","handle": "marcus-chen-sales","firstName": "Marcus","lastName": "Chen","headline": "VP of Sales, Commercial at Salesforce","location": "Chicago, Illinois, United States","about": "20 years scaling B2B SaaS revenue teams from seed to IPO. Currently building out the commercial segment at Salesforce.",... 还有 18 个字段}
价格
LinkedIn 搜索主页 API 价格
每次请求封顶 US$0.1981 条结果US$0.092413 条结果US$0.145225 条结果US$0.198(封顶)按实际返回的内容计费。调低返回数量上限即可少付,而且无论返回多少,单次请求都不会超过封顶价。Hedgehog暂停服务已服务 861可用率 67.48%7761ms p50US$7.20/千条结果每次请求最多 US$0.18计量方式:每条结果,按实际返回基础费 US$0.08 + 每条结果 US$0.004
每次请求封顶 US$0.181 条结果US$0.08413 条结果US$0.13225 条结果US$0.18(封顶)按实际返回的内容计费。调低返回数量上限即可少付,而且无论返回多少,单次请求都不会超过封顶价。
标记为暂停服务的服务商因响应不稳定,已移出轮换,你的调用会转到其他服务商。它恢复稳定响应后会自动重新加入。
调用方式
一个请求获取 LinkedIn 搜索主页
import os, requests res = requests.post( "https://api.getanyapi.com/v1/run/linkedin.search_profiles", headers={"Authorization": f"Bearer {os.environ['ANYAPI_KEY']}"}, json={ "query": "engineer", "currentCompanies": [ "Google" ], "limit": 3 }, ) print(res.json())
这个示例展示了 30 个字段中的 13 个。查看全部字段
{
"found": true,
"data": {
"items": [
{
"id": "ACoAAAvpsales001",
"url": "https://www.linkedin.com/in/marcus-chen-sales",
"handle": "marcus-chen-sales",
"firstName": "Marcus",
"lastName": "Chen",
"headline": "VP of Sales, Commercial at Salesforce",
"location": "Chicago, Illinois, United States",
"about": "20 years scaling B2B SaaS revenue teams from seed to IPO. Currently building out the commercial segment at Salesforce.",
"image": "https://media.licdn.com/dms/image/D4E03AQMarcusChenProfile/profile-displayphoto-shrink_800_800/0/1701000000007?e=1735689600",
"experience": [
{
"title": "VP of Sales, Commercial",
"company": "Salesforce",
"startDate": "Jan 2023",
"endDate": "Present",
"location": "Chicago, Illinois"
},
{
"title": "Senior Director of Sales",
"company": "Salesforce",
"startDate": "Jun 2019",
"endDate": "Dec 2022",
"location": "Chicago, Illinois"
}
]
},
{
"id": "ACoAAAvpsales002",
"url": "https://www.linkedin.com/in/renee-okafor-hubspot",
"handle": "renee-okafor-hubspot",
"firstName": "Renee",
"lastName": "Okafor",
"headline": "VP of Sales, EMEA at HubSpot",
"location": "Dublin, Ireland",
"about": "Leading HubSpot's EMEA sales org across mid-market and enterprise segments.",
"image": "https://media.licdn.com/dms/image/D4E03AQReneeOkaforProfile/profile-displayphoto-shrink_800_800/0/1701000000009?e=1735689600",
"experience": [
{
"title": "VP of Sales, EMEA",
"company": "HubSpot",
"startDate": "Apr 2021",
"endDate": "Present",
"location": "Dublin, Ireland"
}
]
}
]
}
}完整的参数与响应参考:这个接口的每个字段、类型和示例。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-11-14 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- querystring
VP of Sales
LinkedIn 主页搜索查询:职位、姓名或关键词(例如 'Marketing Manager')。
- companyHeadcountarray
按当前公司规模(员工人数)筛选。代码:A=自雇,B=1-10,C=11-50,D=51-200,E=201-500,F=501-1,000,G=1,001-5,000,H=5,001-10,000,I=10,001+。
- companyHeadquarterLocationsarray
按此人当前公司总部所在地筛选,填写地名(例如 ['United States'])。
- currentCompaniesarray
["Salesforce","HubSpot"]
筛选当前在其中任一公司工作的人员,填写公司名称(例如 ['Google','Meta'])。多个名称会扩大匹配范围(OR)。
- excludeCompanyHeadquarterLocationsarray
排除当前公司总部位于其中任一地点的人员。
- excludeCurrentCompaniesarray
排除当前在其中任一公司工作的人员,填写公司名称。
- excludeCurrentJobTitlesarray
排除当前职位名称匹配其中任一项的人员。
- excludeFunctionIdsarray
排除这些职能(代码同 functionIds)。
- excludeLocationsarray
排除位于其中任一地点的人员,填写地名。
- excludePastCompaniesarray
排除曾在其中任一公司工作过的人员,填写公司名称。
- excludePastJobTitlesarray
排除曾担任其中任一职位的人员。
- excludeSchoolsarray
排除就读过其中任一学校的人员,填写学校名称。
- excludeSeniorityLevelIdsarray
排除这些职级(代码同 seniorityLevelIds)。
- firstNamesarray
筛选名字匹配其中任一项的人员。
- functionIdsarray
按职能筛选。代码:1=会计,2=行政,3=艺术与设计,4=业务拓展,5=社区与社会服务,6=咨询,7=教育,8=工程,9=创业,10=财务,11=医疗服务,12=人力资源,13=信息技术,14=法务,15=市场营销,16=媒体与传播,17=军事与安保服务,18=运营,19=产品管理,20=项目与计划管理,21=采购,22=质量保证,23=房地产,24=研究,25=销售,26=客户成功与支持。
- jobTitlestring
可选的当前职位名称筛选(例如 'Software Engineer')。
- lastNamesarray
筛选姓氏匹配其中任一项的人员。
- limitinteger
3
最多返回的完整主页数(1-25,默认 10)。按返回的主页数扣费,所以上限越低,费用越少。
- locationstring
可选的地点筛选(例如 'San Francisco')。
- pastCompaniesarray
筛选曾在其中任一公司工作过的人员,填写公司名称。
- pastJobTitlesarray
按此人曾担任的职位筛选(例如 ['Product Manager'])。
- profileLanguagesarray
按主页的主要语言筛选。
- recentlyChangedJobsboolean
为 true 时,只返回最近换过工作的人员(强烈的销售/招聘信号)。
- recentlyPostedOnLinkedInboolean
为 true 时,只返回最近在 LinkedIn 上发过帖子的人员(活跃度信号)。
- schoolsarray
筛选就读过其中任一学校的人员,填写学校名称。
- seniorityLevelIdsarray
["310"]
按职级筛选。代码:100=培训中,110=入门级,120=资深,130=战略级,200=初级经理,210=资深经理,220=总监,300=副总裁,310=CXO,320=所有者/合伙人。
- yearsAtCurrentCompanyIdsarray
按在当前公司的任职时长筛选。代码:1=不到 1 年,2=1 到 2 年,3=3 到 5 年,4=6 到 10 年,5=超过 10 年。
- yearsOfExperienceIdsarray
按总工作年限筛选。代码:1=不到 1 年,2=1 到 2 年,3=3 到 5 年,4=6 到 10 年,5=超过 10 年。
响应
JSON,每个字段一个示例值。
Matched profile records. Populated whenever the provider has data for the entity.
- aboutstring
20 years scaling B2B SaaS revenue teams from seed to IPO. Currently building out the commercial segment at Salesforce.
Profile about / summary text. Populated whenever the provider has data for the entity.
- citystring
City of the member.
- connectionsCountinteger
Number of connections on the profile.
- countrystring
Country of the member.
- countryCodestring
Two-letter country code of the member.
- coverImagestring
Profile cover (banner) image URL. The query string is a signed token, so keep the URL intact.
- creatorboolean
Whether the member is in LinkedIn creator mode.
- currentPositionobject[]
Current role(s). Each entry is an open object with the position title, company, dates, and location; shape can vary by profile.
- educationobject[]
Education history. Each entry is an open object with school, degree, and field of study; shape can vary by profile.
- experienceobject[]
Full work history. Each entry is an open object with the position title, company, dates, and location; shape can vary by profile. Populated whenever the provider has data for the entity.
- firstNamestring
Marcus
Member's first name. Populated whenever the provider has data for the entity.
- followerCountinteger
Number of followers of the profile.
- handlestring
marcus-chen-sales
Public profile identifier (the vanity slug in the URL). Populated whenever the provider has data for the entity.
- headlinestring
VP of Sales, Commercial at Salesforce
Profile headline (the tagline under the name). Populated whenever the provider has data for the entity.
- hiringboolean
Whether the member shows the Hiring badge.
- idstring
ACoAAAvpsales001
LinkedIn member URN id for the profile.
- imagestring
https://media.licdn.com/dms/image/D4E03AQMarcusChenProfile/profile-displayphoto-shrink_800_800/0/1701000000007?e=1735689600
Profile picture URL. Populated whenever the provider has data for the entity.
- influencerboolean
Whether LinkedIn marks the member as an influencer.
- lastNamestring
Chen
Member's last name. Populated whenever the provider has data for the entity.
- locationstring
Chicago, Illinois, United States
Member's location as a single string (city, region, country). Populated whenever the provider has data for the entity.
- openToWorkboolean
Whether the member has the Open to Work flag set.
- premiumboolean
Whether the member has a LinkedIn Premium subscription.
- skillsany[]
Listed skills, one object per skill with its name and, when the source has them, the endorsements label and related positions.
- statestring
State or region of the member.
- urlstring
https://www.linkedin.com/in/marcus-chen-sales
Canonical LinkedIn profile URL. Populated whenever the provider has data for the entity.
- verifiedboolean
Whether LinkedIn has verified the member's identity.
- foundboolean
true
True when at least one profile was returned.
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
常见问题
关于 LinkedIn 搜索主页 API
AnyAPI 的 LinkedIn 搜索主页 API 只需一次 POST 请求 /v1/run/linkedin.search_profiles,就以统一格式的 JSON 返回 LinkedIn 数据。按关键词搜索 LinkedIn 主页,可选按地点和职位名称筛选。每个匹配结果都返回完整的主页记录:姓名、头衔、地点、当前职位、工作经历、教育经历和技能,以及主页 URL、用户名和 id。如需只返回姓名/头衔/URL 的更便宜搜索,请用 linkedin.search_profiles_thin;如需附加邮箱,请用 linkedin.search_profiles_email。无论哪个数据源提供服务,AnyAPI 都返回同一套统一的 schema。费用:每千条结果 US$7.92,单次请求最多 US$0.198,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 LinkedIn 搜索主页 API 调用中有 98.7% 成功,响应时间中位数为 11.0 秒,共测量 3,443 次调用。