---
title: "Search companies, every filter typed"
method: POST
path: "/v1/actions/search_linkedin_companies"
tags: ["Search"]
---

# Search companies, every filter typed

`POST /v1/actions/search_linkedin_companies`

## Request

- Base URL: `https://api.heyreagent.com`
- URL: `https://api.heyreagent.com/v1/actions/search_linkedin_companies`
- Auth: HTTP bearer

Search company pages on ordinary LinkedIn, with each LinkedIn filter as its own typed input.

At most 10 rows per call: LinkedIn's page size for this search.

LinkedIn returns at most 1,000 rows for one search; narrow the filters to reach the rest.

A row can be a school: a real search returned one, with a linkedin.com/school/… link in profileUrl.

Docs: https://heyreagent.com/docs/actions/search_linkedin_companies

## Request body

- object
  - `keywords` string: Words to search for.
  - `industry` string[]: Industries: ids from lookup_search_ids type INDUSTRY.
  - `location` string[]: Places: ids from lookup_search_ids type LOCATION.
  - `hasJobOffers` boolean: Only companies with job listings on LinkedIn.
  - `headcount` object[]: Company sizes, as LinkedIn's own bands, e.g. { min: 51, max: 200 }.
    - `min` unknown
    - `max` unknown
  - `networkDistance` unknown[]: Connection degrees from you: 1, 2, 3.
    - unknown
  - `limit` number: How many to return (1–10, default 10).
  - `cursor` string: nextCursor from the previous call, to get the next page. Keep the other arguments the same.
  - `connectionId` string: Which of your LinkedIn accounts to act from (its id from list_linkedin_accounts). Omit to use your first live one.

## Response `200`

It worked. Inside result: returned, nextCursor, results[].type, results[].id, results[].name, results[].location, results[].profileUrl, results[].industry, results[].summary, results[].followersCount, results[].jobOffersCount, results[].headcount.

- Worked
  - `ok` true, required
  - `result` object, required: What was asked for. A field that does not apply is left out, or is null.

## Other responses

- `default`: It did not work. The message says why, in plain English.

---

[API](https://skmtc.dev/heyreagent/apis/heyreagent-api.md) · [All operations](https://skmtc.dev/heyreagent/apis/heyreagent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/heyreagent/apis/heyreagent-api/revisions/917360c5f841?raw)
