Call it
curl https://api.peume.com/v1/call/chatgpt-s-answer-to-a-question \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"country": "us",
"prompt": "What are the best open-source web crawlers for LLM pipelines?",
"web_search": true
}
}'const res = await fetch("https://api.peume.com/v1/call/chatgpt-s-answer-to-a-question", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"country": "us",
"prompt": "What are the best open-source web crawlers for LLM pipelines?",
"web_search": true
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/chatgpt-s-answer-to-a-question",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"country": "us",
"prompt": "What are the best open-source web crawlers for LLM pipelines?",
"web_search": 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: chatgpt-s-answer-to-a-question.
Parameters
countrystringthe country the question is asked from, like us
Example: us
promptRequiredstringExample: What are the best open-source web crawlers for LLM pipelines?
web_searchbooleanlets ChatGPT search the web before it answers; default true
Example: true
Other ways to do it
Same job, other sources, cheapest first.
Scrape a live ChatGPT answer page for a keywordBest sourceScrape a live ChatGPT answer page for a keyword. Checks the cheapest source first and moves to the next one until it finds an answer.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 search results for a keyword, liveLive ChatGPT LLM Scraper endpoint provides results from ChatGPT searches.
