LinkedIn API

LinkedIn Search accounts API

LinkedIn company search with Sales Navigator's account filters: one call returns a page of up to 25 companies matching filters on industry, headquarters location, headcount, and follower count, with industries and headquarters locations to exclude. Each company comes with name, industry, size, description, and logo, and its url opens the company page and can be passed to linkedin.company for the full record. To search companies by keyword use linkedin.search_companies; to find people at matching companies use linkedin.search_leads.

POST/v1/run/linkedin.search_accounts
请求数
-
30d

价格

LinkedIn Search accounts API 价格

服务商
Hedgehog已服务 -可用率 -- p50US$70.00/千次请求固定价
你需支付
US$700.00
US$70.00/千次请求,只为实际用量付费。没有月度套餐。
有了 US$0.10 的初始余额,你的前 1 次请求免费。

调用方式

一个请求获取 LinkedIn Search accounts

import os, requests

res = requests.post(
    "https://api.getanyapi.com/v1/run/linkedin.search_accounts",
    headers={"Authorization": f"Bearer {os.environ['ANYAPI_KEY']}"},
    json={
        "companyHeadcount": [
            "D"
        ],
        "industry": [
            "Software Development"
        ],
        "location": "United States",
        "page": 1
    },
)
print(res.json())
打开于
获取免费密钥
示例响应
{
  "data": {
    "items": [
      {
        "description": "A short example description of this item.",
        "employeeCountRange": "example",
        "employeesOnLinkedInText": "https://example.com/page",
        "id": "a1b2c3d4",
        "image": "https://example.com/image.jpg",
        "industry": "general",
        "name": "Example title",
        "url": "https://example.com/page"
      }
    ],
    "page": 29,
    "totalPages": 12500,
    "totalResults": 12500
  },
  "found": true,
  "reason": "not_found"
}

完整的参数与响应参考:这个接口的每个字段、类型和示例。

参考

一个请求,一种响应结构。

你发送的每个字段和收到的每个字段,都附有真实示例。

最近验证于 2026-11-23 · 可用率和延迟按 30d 统计

请求体

JSON,POST 到这个接口。

  • companyHeadcountarray

    ["D"]

    Filter by LinkedIn's headcount band for the company. Codes: 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+ (the same codes as linkedin.search_leads; there is no Self-Employed code for companies). The band is LinkedIn's own, so a result's employeeCountRange or employeesOnLinkedInText can fall outside it.

  • excludeIndustriesarray

    Exclude companies in any of these LinkedIn industries, by name (same names as industry). Up to 70 values.

  • excludeLocationsarray

    Exclude companies headquartered in any of these locations, by place name. Best effort: companies headquartered in an excluded location can still appear. Commas are not allowed in a value. Up to 70 values.

  • followersarray

    Filter by how many LinkedIn followers the company page has, as one or more ranges: 1-50, 51-100, 101-1000, 1001-5000, 5001+.

  • industryarray

    ["Software Development"]

    Filter to companies in any of these LinkedIn industries, by name (e.g. ['Software Development']). A broad industry also matches its sub-industries (Software Development includes Computer Games). Up to 70 values.

  • locationstring

    United States

    Filter by where the company is headquartered, by place name (e.g. 'United States', 'Berlin'). Commas are not allowed in a value.

  • pageinteger

    Which page of up to 25 companies to return, starting at 1 (1-100, default 1). Each page is billed as one request.

你发送。 一个简短的 JSON 请求体。显示的值只是示例,请换成你自己的。

响应

JSON,每个字段一个示例值。

each itemdata.items[]

Matching companies, up to 25 per page. Populated whenever the provider has data for the entity.

  • descriptionstring

    Company description from its LinkedIn page, when it has one. Populated whenever the provider has data for the entity.

  • employeeCountRangestring

    Company size as stated on its LinkedIn page, one of 1-10, 11-50, 51-200, 201-500, 501-1000, 1001-5000, 5001-10000, 10001+. It can differ from employeesOnLinkedInText, which counts members. Populated whenever the provider has data for the entity.

  • employeesOnLinkedInTextstring

    How many LinkedIn members list the company as their employer, as LinkedIn displays the number (e.g. '144' or '220K+'). Text, not an integer, because large counts are rounded. It can fall outside the companyHeadcount band searched for.

  • idstring

    LinkedIn company id, the last segment of `url`. Populated whenever the provider has data for the entity.

  • imagestring

    Company logo image URL. The query string is a signed token, so keep the URL intact. Populated whenever the provider has data for the entity.

  • industrystring

    Company industry, as a LinkedIn industry name. Populated whenever the provider has data for the entity.

  • namestring

    Company name. Populated whenever the provider has data for the entity.

  • urlstring

    LinkedIn company page URL in its numeric-id form (https://www.linkedin.com/company/1035). It opens the company page on LinkedIn, and passing it as `url` to linkedin.company returns the full record. Populated whenever the provider has data for the entity.

datadata

The results wrapper, or null when nothing matched.

  • pageinteger

    The page this response holds, starting at 1.

  • totalPagesinteger

    How many pages of up to 25 companies the search has, at most 100.

  • totalResultsinteger

    How many companies match the search in total, across every page.

top level
  • foundboolean

    True when the page returned at least one company.

  • 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 Search accounts API

AnyAPI 的 LinkedIn Search accounts API 只需一次 POST 请求 /v1/run/linkedin.search_accounts,就以统一格式的 JSON 返回 LinkedIn 数据。LinkedIn company search with Sales Navigator's account filters: one call returns a page of up to 25 companies matching filters on industry, headquarters location, headcount, and follower count, with industries and headquarters locations to exclude. Each company comes with name, industry, size, description, and logo, and its url opens the company page and can be passed to linkedin.company for the full record. To search companies by keyword use linkedin.search_companies; to find people at matching companies use linkedin.search_leads.无论哪个数据源提供服务,AnyAPI 都返回同一套统一的 schema。费用:每千次请求 US$70 起,以美元计价,无需订阅,也没有每月最低消费。

费用:每千次请求 US$70 起,以美元计价,无需订阅,也没有每月最低消费。你只需为一个美元钱包充值,每次调用从中扣费。部分由钱包付费的失败请求会产生处理费用,我们按成本原价转嫁,不加价;错误响应会显示收取的金额。

LinkedIn company search with Sales Navigator's account filters: one call returns a page of up to 25 companies matching filters on industry, headquarters location, headcount, and follower count, with industries and headquarters locations to exclude. Each company comes with name, industry, size, description, and logo, and its url opens the company page and can be passed to linkedin.company for the full record. To search companies by keyword use linkedin.search_companies; to find people at matching companies use linkedin.search_leads.响应是统一格式的 JSON,外层结构与每个 AnyAPI 接口相同,所以解析另一个接口只需换一个 URL,别的都不用改。

可以。新的 AnyAPI 账户自带 US$0.10 免费余额,无需绑卡,足够调用 1 次 LinkedIn Search accounts,每次 US$0.07。

向 https://api.getanyapi.com/v1/run/linkedin.search_accounts 发送 POST 请求,在 “Authorization: Bearer” 请求头中放入你的 AnyAPI 密钥,并以 JSON 请求体传入参数。同一个密钥和同一个钱包适用于所有 AnyAPI 接口。

不需要。你向一个预付费的 AnyAPI 余额充值美元,每个请求从中扣费。没有月度套餐,也没有最低消费,同一个余额可用于所有 AnyAPI 接口。

有。TypeScript 用 npm 安装 @getanyapi/sdk,Python 用 pip 安装 getanyapi。两者都用同一个密钥调用所有 AnyAPI 接口,任何 HTTP 客户端也都可以。

可以。智能体可以连接 https://api.getanyapi.com/mcp 上的 AnyAPI MCP 服务器,或者向 https://api.getanyapi.com/agent/signup 发送一次无需认证的 POST 来创建自己的免费试用密钥,再通过 HTTP 调用这个接口。