Call it
curl https://api.peume.com/v1/call/duckduckgo-search-private-news \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "your q"
}
}'const res = await fetch("https://api.peume.com/v1/call/duckduckgo-search-private-news", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "your q"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/duckduckgo-search-private-news",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "your q"
}
},
)
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: duckduckgo-search-private-news.
Parameters
qRequiredstringThe query you want to search. You can use anything that you would use in a regular DuckDuckGo News search. (e.g., `inurl:`, `site:`, `intitle:`, etc.) Parameter length can not exceed 500 characters.
klstringThe region to use for the DuckDuckGo News search. Region code examples: `us-en` for the United States, `uk-en` for United Kingdom, or `fr-fr` for France. Head to the DuckDuckGo regions for a full list of supported regions.
dfstringResults filtered by date. It can be set to: `d`: Past day, `w`: Past week, `m`: Past month.
safestringThe level of filtering for adult content. It can be set to `1` (Strict), `-1` (Moderate - default), or `-2` (Off).
startstringThe result offset. It skips the given number of results. When offset is not being used (initial search request, `start` parameter is set to 0 or left blank), up to 75 `news_results` can be returned. When offset is being used (`start` parameter is greater than 0), up to 100 `news_results` can be returned. DuckDuckGo may return duplicated results or a variable number of results. This is more likely to happen with higher `start` and `m` parameters.
mstringThe maximum number of results to return. Default value:`100` Min. value:`1` Max. value:`100` When offset is not being used (initial search request, `start` parameter is set to 0 or left blank), up to 75 `news_results` can be returned. DuckDuckGo may return duplicated results or a variable number of results. This is more likely to happen with higher `start` and `m` parameters.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
