CompanyEnrich / Create export job
CompanyEnrich tool companyenrich-people-search-async on looot: input fields, $0.0098 per call, output shape, and code to run it with curl, JavaScript or Python.
Cost: 2 credits per person returned (reserved when the job is created, settled on completion) Creates an asynchronous search export job for up to 50,000 people. Returns a job ID immediately. The webhook URL will be called with a notification when processing completes. Use the status endpoint to track progress and retrieve results.
- Tool id:
companyenrich-people-search-async - Provider: CompanyEnrich
- Job: Async people search (
people.search.async) - Price: $0.0098 per call. 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 |
count |
integer | yes | The number of people to export. |
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. |
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 |
webhook_url |
string | no | The webhook URL to receive the notification when processing completes. |
expand |
array | no |
Output
The run’s result holds the provider’s answer. Signed in, looot inspect companyenrich-people-search-async 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-async","input":{"count":1},"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-async",
input: {
count: 1,
},
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-async",
"input": {
"count": 1,
},
"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.async as endpointId; see the job page.