Call it
curl https://api.peume.com/v1/call/page-load-waterfall \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"id": "08101204-0696-0216-0000-644a7b21a48a",
"url": "https://example.com/tag/broken-links"
}
}'const res = await fetch("https://api.peume.com/v1/call/page-load-waterfall", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"id": "08101204-0696-0216-0000-644a7b21a48a",
"url": "https://example.com/tag/broken-links"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/page-load-waterfall",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"id": "08101204-0696-0216-0000-644a7b21a48a",
"url": "https://example.com/tag/broken-links"
}
},
)
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: page-load-waterfall.
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: 08101204-0696-0216-0000-644a7b21a48a
urlstringpage URL required field specify the pages you want to receive timing for
Example: https://example.com/tag/broken-links
tagstringuser-defined task identifier optional field the character limit is 255 you can use this parameter to identify the task and match it with the result you will find the specified tag value in the data object of the response
