Call it
curl https://api.peume.com/v1/call/scrape-a-live-chatgpt-answer-page-for-a-keyword \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "your q",
"prompt": "your prompt"
}
}'const res = await fetch("https://api.peume.com/v1/call/scrape-a-live-chatgpt-answer-page-for-a-keyword", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "your q",
"prompt": "your prompt"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/scrape-a-live-chatgpt-answer-page-for-a-keyword",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "your q",
"prompt": "your prompt"
}
},
)
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: scrape-a-live-chatgpt-answer-page-for-a-keyword.
Parameters
qstringidentity
promptstringidentity
countrystringfilter; ISO 3166-1 alpha-2, defaults to US
languagestringfilter; default 'en'; accepts a language code
Other ways to do it
Same job, other sources, cheapest first.
ChatGPT answer with web search — text, sources, entitiesRuns a prompt through the live ChatGPT web interface, with its web search, from a chosen country and returns the answer text with its cited sources, citation pills and brand entitiChatGPT's answer to a questionGet ChatGPT's answer to one question as a logged-out visitor sees it, with the sources it cited: for brand and AI-search visibility checks.ChatGPT search results for a keyword, liveLive ChatGPT LLM Scraper endpoint provides results from ChatGPT searches.
