Call it
curl https://api.peume.com/v1/call/enrich-a-company-by-domain-or-url-headcount-industry \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"domain": "acme.com",
"linkedin_url": "https://linkedin.com/company/acme-corp",
"mode": "cached_first"
}
}'const res = await fetch("https://api.peume.com/v1/call/enrich-a-company-by-domain-or-url-headcount-industry", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"domain": "acme.com",
"linkedin_url": "https://linkedin.com/company/acme-corp",
"mode": "cached_first"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/enrich-a-company-by-domain-or-url-headcount-industry",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"domain": "acme.com",
"linkedin_url": "https://linkedin.com/company/acme-corp",
"mode": "cached_first"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: enrich-a-company-by-domain-or-url-headcount-industry.
Parameters
domainstringCompany domain (normalized, without www prefix). Send one of domain, linkedin_url or url.
Example: acme.com
linkedin_urlstringLinkedIn company page URL.
Example: https://linkedin.com/company/acme-corp
urlstringGeneric URL (auto-detected).
modestringcached_first returns the company Village holds when it is recent and otherwise fetches it live. realtime_only always fetches live. cached_only never fetches and is free; village.companies.enrich.stored is that tier.
cached_first · cached_only · realtime_only
Example: cached_first
Other ways to do it
Same job, other sources, cheapest first.
