Skip to content
looot docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

CompanyEnrich / Search

CompanyEnrich tool companyenrich-people-search on looot: input fields, $0.0196 per result, output shape, and code to run it with curl, JavaScript or Python.

Cost: 2 credits per person returned. 2 credits minimum if no results are found. Notice: Up to 10.000 results can be returned from this endpoint (page * pageSize can not exceed 10.000). If you need more results, please use the scroll endpoint. Searches people based on given criteria using page-based pagination.

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
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.
page integer no The page number to return. Must be greater than 0
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 prints its fields.

Run it

Every call needs your API token in LOOOT_TOKEN; Sign in 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:

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","input":{},"wait":30}'
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",
    input: {},
    wait: 30,
  }),
});
const run = await response.json();
console.log(run.status, run.result);
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",
        "input": {},
        "wait": 30,
    },
    timeout=90,
)
run = response.json()
print(run["status"], run.get("result"))

To let looot pick among every provider of this job instead, send job:people.search as endpointId; see the job page.

Was this page helpful?