Call it
curl https://api.peume.com/v1/call/extract-article-text \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "https://www.technologyreview.com/2020/09/04/1008156/knowledge-graph-ai-reads-web-machine-learning-natural-language-processing/",
"paging": true,
"maxTags": 10,
"tagConfidence": 0.5,
"categoryConfidence": 0.5,
"discussion": true
}
}'const res = await fetch("https://api.peume.com/v1/call/extract-article-text", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "https://www.technologyreview.com/2020/09/04/1008156/knowledge-graph-ai-reads-web-machine-learning-natural-language-processing/",
"paging": true,
"maxTags": 10,
"tagConfidence": 0.5,
"categoryConfidence": 0.5,
"discussion": true
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/extract-article-text",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "https://www.technologyreview.com/2020/09/04/1008156/knowledge-graph-ai-reads-web-machine-learning-natural-language-processing/",
"paging": True,
"maxTags": 10,
"tagConfidence": 0.5,
"categoryConfidence": 0.5,
"discussion": True
}
},
)
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: extract-article-text.
Parameters
urlRequiredstringtarget URL to extract
Example: https://www.technologyreview.com/2020/09/04/1008156/knowledge-graph-ai-reads-web-machine-learning-natural-language-processing/
fieldsstringcomma-delimited optional fields: links, extlinks, meta, querystring, breadcrumb, quotes
pagingbooleanpass false to disable automatic concatenation of multi-page articles
Example: true
maxTagsintegermax automatically-generated tags to return
Example: 10
tagConfidencenumberminimum tag relevance score 0.0-1.0
Example: 0.5
categoryConfidencenumberminimum category relevance score 0.0-1.0
Example: 0.5
discussionbooleanpass false to disable automatic comment extraction
Example: true
naturalLanguagestringrun text through the NLP API: entities, sentiment, summary, facts, etc.
summaryNumSentencesintegermax sentences in the generated summary
Example: 3
renderDelayintegerextra rendering ms before DOM extraction, max 180000
scrollstring'slow' or 'fast' — triggers lazy-loaded content
timeoutintegerExample: 30000
proxystringproxyAuthstringuseProxystring'default' = datacenter proxy (2 credits/page); 'none' disables
callbackstring