Call it
curl https://api.peume.com/v1/call/search-google-news-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "OpenAI",
"gl": "us",
"hl": "en",
"page": 1,
"autocorrect": true
}
}'const res = await fetch("https://api.peume.com/v1/call/search-google-news-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "OpenAI",
"gl": "us",
"hl": "en",
"page": 1,
"autocorrect": true
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-google-news-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "OpenAI",
"gl": "us",
"hl": "en",
"page": 1,
"autocorrect": 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: search-google-news-2.
Parameters
qRequiredstringExample: OpenAI
locationstringglstringExample: us
hlstringExample: en
numintegerRequested article count.
tbsstringGoogle date filter. A valid but over-restrictive value can return HTTP 200 with an empty news array and still costs one credit.
pageintegerExample: 1
autocorrectbooleanExample: true
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.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.
