Call it
curl https://api.peume.com/v1/call/crawled-page-html \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"id": "07281559-0695-0216-0000-c269be8b7592",
"url": "https://example.com/apis"
}
}'const res = await fetch("https://api.peume.com/v1/call/crawled-page-html", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"id": "07281559-0695-0216-0000-c269be8b7592",
"url": "https://example.com/apis"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/crawled-page-html",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"id": "07281559-0695-0216-0000-c269be8b7592",
"url": "https://example.com/apis"
}
},
)
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: crawled-page-html.
Parameters
idstringID of the task required field you can get this ID in the response of the Task POST endpoint example: “07131248-1535-0216-1000-17384017ad04”
Example: 07281559-0695-0216-0000-c269be8b7592
urlstringpage url required field the absolute URL of a page to request HTML Note: this field is optional if the task was set using the Instant Pages endpoint
Example: https://example.com/apis
