Call it
curl https://api.peume.com/v1/call/search-companies-by-firmographics-or-nl-query \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"filters": {
"field": "basic_info.primary_domain",
"type": "=",
"value": "stripe.com"
},
"search": {
"query": "AI infrastructure companies building tools for model deployment and monitoring",
"mode": "hybrid"
},
"fields": [
"basic_info.name",
"basic_info.primary_domain",
"social_profiles.twitter_url"
],
"limit": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/search-companies-by-firmographics-or-nl-query", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"filters": {
"field": "basic_info.primary_domain",
"type": "=",
"value": "stripe.com"
},
"search": {
"query": "AI infrastructure companies building tools for model deployment and monitoring",
"mode": "hybrid"
},
"fields": [
"basic_info.name",
"basic_info.primary_domain",
"social_profiles.twitter_url"
],
"limit": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-companies-by-firmographics-or-nl-query",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"filters": {
"field": "basic_info.primary_domain",
"type": "=",
"value": "stripe.com"
},
"search": {
"query": "AI infrastructure companies building tools for model deployment and monitoring",
"mode": "hybrid"
},
"fields": [
"basic_info.name",
"basic_info.primary_domain",
"social_profiles.twitter_url"
],
"limit": 1
}
},
)
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: search-companies-by-firmographics-or-nl-query.
Parameters
filtersobjectrequired when search is omitted; one condition {field,type,value} or a nested {op:'and'|'or',conditions:[...]} group. With ranked search, filters are hard constraints applied before retrieval
Example: {"field":"basic_info.primary_domain","type":"=","value":"stripe.com"}
searchobject{query, mode?} for ranked NL search; mode hybrid|lexical|semantic default hybrid. Supply filters and/or search. When search is set, cursor and sorts are unsupported and limit max is 100
Example: {"query":"AI infrastructure companies building tools for model deployment and monitoring","mode":"hybrid"}
fieldsarraydot-path fields to return; specifying these keeps responses small
Example: ["basic_info.name","basic_info.primary_domain","social_profiles.twitter_url"]
sortsarrayfilter-only; each item is {field, order:'asc'|'desc'}. Not supported with ranked search
limitintegerresults per page; max 1000 filter-only / max 100 with ranked search; this is the price dial
Example: 1
cursorstringfilter-only pagination; next_cursor from the previous response. Not supported with ranked search
Other ways to do it
Same job, other sources, cheapest first.
