---
title: "CompanyEnrich / Scroll"
description: "CompanyEnrich tool companyenrich-companies-similar-scroll on looot: input fields, $0.049 per result, output shape, and code to run it with curl, JavaScript or Python."
sidebar:
  hidden: true
---

{/* Generated by scripts/generate-api-reference.mjs from data/api-reference.json. Do not edit. */}

**Cost:** 5 credit per company returned. 5 credits if no results are found. Finds similar companies to the given company by id or domain. The POST route allows specifying further filtering parameters. At most 100 companies are returned per request. You can request the next page of results by using the `cursor` parameter. The cursor is a string that encodes the current position in the result set. In case on no cursor is provided, the first page of results is returned. You can then use the `next_cursor` parameter to get the next page of results. This will allow you to scroll over the results without having to keep track of the current page number and also allow paginating into more than 10.000 results.

- **Tool id:** `companyenrich-companies-similar-scroll`
- **Provider:** [CompanyEnrich](/providers/companyenrich)
- **Job:** [Lookalike company](/reference/jobs/company-lookalike) (`company.lookalike`)
- **Price:** $0.049 per result. A call that fails at the provider costs $0.

## Inputs

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `category` | array | no | The list of company categories to filter by |
| `categoryOperator` | string | no | The operator to apply to the filters. Defaults to And. |
| `cities` | array | no | The city IDs to filter by |
| `countries` | array | no | The 2 letter country codes to filter by |
| `cursor` | string | no | The cursor to use for pagination. This is used for cursor based pagination. If this is set, Page will be ignored. |
| `domains` | array | no | The domains to find similar companies for. Up to 10 domains are allowed. |
| `employees` | array | no | The list of employee counts to filter by |
| `exclude` | object | no | Exclusion filters to apply on the companies. If a company matches any of the filters here, it will be excluded from the results. |
| `foundedYear` | object | no | The range of years |
| `fundingAmount` | object | no | The funding amount range to filter by |
| `fundingRounds` | array | no | The funding rounds to filter by |
| `fundingYear` | object | no | The range of years |
| `keywords` | array | no | The keywords to filter by |
| `keywordsOperator` | string | no | The operator to apply to the filters. Defaults to And. |
| `minScore` | number | no | The minimum similarity score required for results. Must be between 0 and 1. When omitted, the default cutoff is used. |
| `naicsCode` | array | no | The NAICS codes to filter by. Can be 2 to 6 digit codes. In case of a 2-5 digit code, all 6 digit codes under it will be included |
| `pageSize` | integer | no | The number of results to return in each page. Must be between 1 and 100 |
| `query` | string | no | The search query to apply on the company name and domain |
| `regions` | array | no | The region IDs to filter by |
| `reportedEmployees` | array | no | The list of externally reported employee counts to filter by |
| `require` | array | no | The features that must exist for the company |
| `revenue` | array | no | The list of revenue ranges to filter by |
| `similarityWeight` | number | no | The similarity weight to apply to the results. Must be between -1 and 1. 0 is default. Larger values will prioritize more similar companies, smaller values will prioritize more established companies. |
| `states` | array | no | The state IDs to filter by |
| `technologies` | array | no | The technologies to filter by |
| `technologiesOperator` | string | no | The operator to apply to the filters. Defaults to And. |
| `type` | array | no | The list of company types to filter by |
| `workforceGrowth` | object | no | Filter companies by workforce growth percentage over a selected period and department. |
| `workforceSize` | array | no | Filter companies by absolute workforce headcount. Multiple entries can be provided to filter on different departments simultaneously. |
| `expand` | array | no |   |
| `waitForEnrichment` | boolean | no |   |

## Output

The run's `result` holds the provider's answer. Signed in, `looot inspect companyenrich-companies-similar-scroll` prints its fields.

## Run it

Every call needs your API token in `LOOOT_TOKEN`; [Sign in](/get-started/sign-in#use-the-token-in-scripts-and-agents) shows how to get one. Each run also needs a new idempotency key, so a retry never pays twice. With `wait: 30` the answer comes back inline when the run ends within 30 seconds. Otherwise you get the running run back: poll `GET /v1/runs/<runId>`.

Example input with placeholder values:

<CodeGroup>

```bash curl
curl -X POST "https://api.looot.ai/v1/runs" \
  -H "Authorization: Bearer $LOOOT_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"endpointId":"companyenrich-companies-similar-scroll","input":{},"wait":30}'
```

```js JavaScript
const response = await fetch("https://api.looot.ai/v1/runs", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.LOOOT_TOKEN}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({
    endpointId: "companyenrich-companies-similar-scroll",
    input: {},
    wait: 30,
  }),
});
const run = await response.json();
console.log(run.status, run.result);
```

```python Python
import os
import uuid

import requests

response = requests.post(
    "https://api.looot.ai/v1/runs",
    headers={
        "Authorization": f"Bearer {os.environ['LOOOT_TOKEN']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "endpointId": "companyenrich-companies-similar-scroll",
        "input": {},
        "wait": 30,
    },
    timeout=90,
)
run = response.json()
print(run["status"], run.get("result"))
```

</CodeGroup>

To let looot pick among every provider of this job instead, send `job:company.lookalike` as `endpointId`; see [the job page](/reference/jobs/company-lookalike).
