Call it
curl https://api.peume.com/v1/call/google-news-headlines-for-a-query \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "rust programming"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-news-headlines-for-a-query", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "rust programming"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-news-headlines-for-a-query",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "rust programming"
}
},
)
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-headlines-for-a-query.
Parameters
countrystringthe edition's country; default US
langstringthe edition's language; default en-US
limitintegerat most 100; default 25
queryRequiredstringExample: rust programming
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.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.Google News results for a keyword, liveLive Google News SERP provides real-time data on top search engine results for the specified keyword, search engine, and location.
