---
title: "CompanyEnrich / Scroll"
description: "CompanyEnrich tool companyenrich-people-search-scroll on looot: input fields, $0.0196 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:** 2 credits per person returned. 2 credits minimum if no results are found. Searches people based on given criteria using cursor-based pagination. 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 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-people-search-scroll`
- **Provider:** [CompanyEnrich](/providers/companyenrich)
- **Job:** [Find people matching a filter](/reference/jobs/people-search) (`people.search`)
- **Price:** $0.0196 per result. A call that fails at the provider costs $0.

## Inputs

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `atCurrentCompanyAfter` | string | no | Filter by current company join date - only include people who joined after this UTC date |
| `atCurrentCompanyBefore` | string | no | Filter by current company join date - only include people who joined before this UTC date |
| `atCurrentPositionAfter` | string | no | Filter by current position start date - only include people who started after this UTC date |
| `atCurrentPositionBefore` | string | no | Filter by current position start date - only include people who started before this UTC date |
| `companyFilter` | object | no | The filters to be applied on the companies to find people for |
| `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. |
| `department` | array | no | The departments to filter by |
| `domains` | array | no | The domains to find people for. Up to 2,500 domains are allowed. |
| `education` | object | no | The education history filters to apply |
| `exclude` | object | no | Exclusion filters to apply on the people. If a person matches any of the filters here, it will be excluded from the results. |
| `pageSize` | integer | no | The number of results to return in each page. Must be between 1 and 100 |
| `positionQuery` | array | no | The list of search queries to apply on the person's current job position/title |
| `query` | string | no | The search query to apply on the company name and domain |
| `seniority` | array | no | The seniorities to filter by |
| `expand` | array | no |   |

## Output

The run's `result` holds the provider's answer. Signed in, `looot inspect companyenrich-people-search-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-people-search-scroll","input":{"query":"<query>"},"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-people-search-scroll",
    input: {
      query: "<query>",
    },
    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-people-search-scroll",
        "input": {
            "query": "<query>",
        },
        "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:people.search` as `endpointId`; see [the job page](/reference/jobs/people-search).
