Call it
curl https://api.peume.com/v1/call/search-linkedin-ads-by-keyword \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keyword": "webinar",
"country": "US"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-linkedin-ads-by-keyword", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keyword": "webinar",
"country": "US"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-linkedin-ads-by-keyword",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keyword": "webinar",
"country": "US"
}
},
)
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-by-keyword.
Parameters
keywordRequiredstringExample: webinar
countrystringExample: US
dateOptionstringcurrent-month · current-year · last-30-days · last-year
continuation_tokenstringOther ways to do it
Same job, other sources, cheapest first.
Search LinkedIn adsRetrieve a list of LinkedIn Ads matching the specified search criteria.Search LinkedIn ad library by company or keywordSearches the LinkedIn Ad Library by company name, keyword, or companyId with optional country and date filters.Find a company's LinkedIn adsReturn one page of LinkedIn ads for one company or LinkedIn page.
