LeadMagic / List a company's employees
LeadMagic tool leadmagic-people-employee-finder on looot: input fields, $0.00099 per result, output shape, and code to run it with curl, JavaScript or Python.
Lists employees at a company. Send company_domain or company_name; limit sets how many. Returns data with name, headline, job function and level, country and whether an email or mobile is known. Priced per employee returned. Send one of: company_domain, company_name.
- Tool id:
leadmagic-people-employee-finder - Provider: LeadMagic
- Job: Find people matching a filter (
people.search) - Price: $0.00099 per result. A call that fails at the provider costs $0.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
company_domain |
string | no | Company website domain (preferred, more accurate than company_name). Example: “stripe.com” |
company_name |
string | no | Company name. Use if domain is not available. |
limit |
integer | no | Maximum number of employees to return. Example: 1 |
Output
Shape of the run’s result, checked against 2 real answers:
{ data: { title, website, headline, followers, full_name, has_email, job_level, last_name, first_name, profile_url, company_name, country_code, job_function, has_mobile_phone }[], message, resolved_by, total_count, limit_applied, returned_count, credits_consumed, with_email_count, resolved_company_domain, with_mobile_phone_count, with_email_and_mobile_phone_count }
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":"leadmagic-people-employee-finder","input":{"limit":1,"company_domain":"stripe.com"},"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: "leadmagic-people-employee-finder",
input: {
limit: 1,
company_domain: "stripe.com",
},
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": "leadmagic-people-employee-finder",
"input": {
"limit": 1,
"company_domain": "stripe.com",
},
"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.