Call it
curl https://api.peume.com/v1/call/capture-page-screenshot \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "your url"
}
}'const res = await fetch("https://api.peume.com/v1/call/capture-page-screenshot", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "your url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/capture-page-screenshot",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "your url"
}
},
)
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: capture-page-screenshot.
Parameters
urlRequiredstringFull URL to scrape, including the http:// or https:// scheme.
screenshotstringCapture area: 'full' for the entire scroll height (default), 'top' for the visible viewport only.
full · top
geoCodestringTwo-letter country code to load the page from (default 'us').
proxyCountrystringTwo-letter country code of the proxy exit (default 'us').
waitUntilstringWhen the browser considers navigation complete (browser rendering only). 'networkidle0' is the most thorough but slowest. Default 'domcontentloaded'.
domcontentloaded · load · networkidle0 · networkidle2
timeoutintegerMaximum seconds to wait for the page to fully load (default 300).
waitForSelectorstringWait until this CSS selector appears in the DOM before extracting — for content that loads after the initial page.
superbooleanRoute through real devices to bypass hard anti-bot protection. Default true; send false to turn it off.
