Call it
curl https://api.peume.com/v1/call/google-news-results-for-a-query-or-topic \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"engine": "google_news",
"q": "pizza",
"gl": "us",
"hl": "en"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-news-results-for-a-query-or-topic", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"engine": "google_news",
"q": "pizza",
"gl": "us",
"hl": "en"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-news-results-for-a-query-or-topic",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"engine": "google_news",
"q": "pizza",
"gl": "us",
"hl": "en"
}
},
)
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: google-news-results-for-a-query-or-topic.
Parameters
engineRequiredstringExample: google_news
qstringsearch query; alternative to topic_token/story_token
Example: pizza
glstringExample: us
hlstringExample: en
topic_tokenstringopaque token to fetch a specific news topic instead of a query
Other ways to do it
Same job, other sources, cheapest first.
Get Google News results for a keywordBest sourceGet Google News results for a keyword. Checks the cheapest source first and moves to the next one until it finds an answer.Google News headlines for a queryGet Google News headlines for a query with source, link, publication time and a short summary.Search Google NewsSearch Google News articles using news vertical.Google NewsSearch Google News by keyword and get fresh articles (headlines, sources, links, and publish times) as clean JSON.Search Google NewsSearch recent Google News results with source, date, snippet, image, and ranked article link.Google News results — titles, sources, datesReturns parsed Google News articles for a keyword from a chosen country, each with its title, link, snippet, publisher, publication date and thumbnail.
