Call it
curl https://api.peume.com/v1/call/parse-crawled-page-content \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "https://example.com/blog/a-versatile-alternative-to-google-trends-exploring-the-power-of-example-trends-api",
"id": "11161551-1535-0216-0000-500b3f307f92"
}
}'const res = await fetch("https://api.peume.com/v1/call/parse-crawled-page-content", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "https://example.com/blog/a-versatile-alternative-to-google-trends-exploring-the-power-of-example-trends-api",
"id": "11161551-1535-0216-0000-500b3f307f92"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/parse-crawled-page-content",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "https://example.com/blog/a-versatile-alternative-to-google-trends-exploring-the-power-of-example-trends-api",
"id": "11161551-1535-0216-0000-500b3f307f92"
}
},
)
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: parse-crawled-page-content.
Parameters
urlstringURL of the content to parse required field URL of the page to parse example:
Example: https://example.com/blog/a-versatile-alternative-to-google-trends-exploring-the-power-of-example-trends-api
idstringID of the task required field you can get this ID in the response of the Task POST endpoint note: the enable_content_parsing parameter in the POST request must be set to true example: "07131248-1535-0216-1000-17384017ad04"
Example: 11161551-1535-0216-0000-500b3f307f92
markdown_viewbooleanreturn page content as markdown optional field if set to true, the markdown-formatted content of the page will be returned in the page_as_markdown field of the response; default value: false
