Call it
curl https://api.peume.com/v1/call/search-companies-with-dsl \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"dsl": {
"filters": [
{
"name": {
"operation": "fts",
"value": "Stripe"
}
}
],
"limit": 1,
"offset": 0,
"sort": []
}
}
}'const res = await fetch("https://api.peume.com/v1/call/search-companies-with-dsl", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"dsl": {
"filters": [
{
"name": {
"operation": "fts",
"value": "Stripe"
}
}
],
"limit": 1,
"offset": 0,
"sort": []
}
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-companies-with-dsl",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"dsl": {
"filters": [
{
"name": {
"operation": "fts",
"value": "Stripe"
}
}
],
"limit": 1,
"offset": 0,
"sort": []
}
}
},
)
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-with-dsl.
Parameters
dslRequiredobject{filters,limit,offset,sort?,nameQuery?}; filters use {columnPath:{operation,value,quantifier?}} and support AND/OR groups
Example: {"filters":[{"name":{"operation":"fts","value":"Stripe"}}],"limit":1,"offset":0,"sort":[]}
Other ways to do it
Same job, other sources, cheapest first.
Find companies by industry, size or techBest sourceSearch companies by industry, size or tech — account lists for lead generation. Checks the cheapest source first and moves to the next one until it finds an answer.Company name or domain to id — free lookupLook up a company by name or domain for its id (free — costs 0 credits)Discover companies by criteria or plain-language queryIdentifies companies matching specified criteria; returns up to 100 companies per requestDiscover companies with their email countsReturns companies matching Discover filters together with their personal/generic email countsPreview the top 25 company search results (free, Scale plan)Returns the top 25 results for free, perfect for previewing search results before running a full searchSearch companies by industry, country and sizeStructured filters (or a natural-language query) → matching companies with firmographics, socials, revenue band, headcount band and how many contacts are available for each
