Call it
curl https://api.peume.com/v1/call/duckduckgo-fast-private-search \
-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-fast-private-search", {
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-fast-private-search",
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-fast-private-search.
Parameters
qRequiredstringThe query you want to search. You can use anything that you would use in a regular DuckDuckGo search. (e.g., `inurl:`, `site:`, `intitle:`, etc.) Parameter length can not exceed 500 characters.
klstringThe region to use for the DuckDuckGo 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, `y`: Past year, or you can pass a custom date following the next format: `from_date` + `..` + `to_date` (e.g. `2021-06-15..2024-06-16`).
next_page_tokenstringThe next page token. It is used for retrieving the next page results. `15` results are returned per page.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
