Call it
curl https://api.peume.com/v1/call/search-linkedin-ads \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountOwner": "Microsoft"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-linkedin-ads", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountOwner": "Microsoft"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-linkedin-ads",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountOwner": "Microsoft"
}
},
)
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-linkedin-ads.
Parameters
keywordstringSearch by keyword
accountOwnerstringSearch by company or advertiser name
Example: Microsoft
countriesstringOne or comma separated list of country codes to filter ads by country. Eg. 'US,GB,FR'. Supports "ALL" value to search in all countries.
dateOptionstringOne of the following options to filter ads by date: 'last-30-days', 'current-month', 'current-year', 'last-year', 'custom-date-range'
startdatestringStart date for 'custom-date-range' filter in 'YYYY-MM-DD' format
enddatestringEnd date for 'custom-date-range' filter in 'YYYY-MM-DD' format
paginationTokenstringPagination token from the previous response for fetching the next page
Other ways to do it
Same job, other sources, cheapest first.
