Call it
curl https://api.peume.com/v1/call/enrich-a-person-by-linkedin-url-title-company-location \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"linkedin_url": "https://linkedin.com/in/johndoe",
"url": "https://linkedin.com/in/johndoe",
"mode": "cached_first"
}
}'const res = await fetch("https://api.peume.com/v1/call/enrich-a-person-by-linkedin-url-title-company-location", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"linkedin_url": "https://linkedin.com/in/johndoe",
"url": "https://linkedin.com/in/johndoe",
"mode": "cached_first"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/enrich-a-person-by-linkedin-url-title-company-location",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"linkedin_url": "https://linkedin.com/in/johndoe",
"url": "https://linkedin.com/in/johndoe",
"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-person-by-linkedin-url-title-company-location.
Parameters
linkedin_urlstringLinkedIn person profile URL. Send this or url.
Example: https://linkedin.com/in/johndoe
urlstringGeneric URL (auto-detected). Send this or linkedin_url.
Example: https://linkedin.com/in/johndoe
modestringcached_first returns the profile Village holds when it is recent and otherwise fetches it live. realtime_only always fetches live. cached_only never fetches and is free; village.people.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.
