Call it
curl https://api.peume.com/v1/call/search-google-news-4 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keywords": [],
"topics": [],
"topicUrls": [],
"maxArticles": 100,
"timeframe": "1h",
"region_language": "US:en"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-google-news-4", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keywords": [],
"topics": [],
"topicUrls": [],
"maxArticles": 100,
"timeframe": "1h",
"region_language": "US:en"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-google-news-4",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keywords": [],
"topics": [],
"topicUrls": [],
"maxArticles": 100,
"timeframe": "1h",
"region_language": "US: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: search-google-news-4.
Parameters
keywordsarrayList of keywords to search for. You can use Google News search operators: - Use '-' to exclude words (e.g. 'bitcoin -ethereum') - Use 'site:' to filter by specific website (e.g. 'bitcoin site:cnn.com') - Use 'OR' to search for multiple terms (e.g. 'bitcoin OR ethereum') - Use quotes for exact match (e.g. '"bitcoin price"')
Example: []
topicsarraySelect one or more predefined Google News topics to scrape.
Example: []
topicUrlsarrayProvide custom Google News topic or section URLs to scrape. Useful for niche topics not in the predefined list. Example: https://news.google.com/topics/CAAqJggKIiBDQkFTRWdvSUwyMHZNRGx1YlY4U0FtVnVHZ0pWVXlnQVAB
Example: []
maxArticlesintegerMaximum number of news to extract per keyword or topic (0 = no limit). More than 100 articles per keyword: Google News shows about 100 results per search, so the scraper automatically splits the period into smaller date ranges and combines them. This needs a time period of at least 'Last week', or custom dates.
Example: 100
timeframestringTime period for the keyword search. To get more than 100 articles per keyword, choose 'Last week' or longer (up to about 700 for a week, 3,000 for a month, 5,000 for a year). Ignored when custom dates are set below. Topic pages return their own curated results.
1h · 1d · 7d · 30d · 1y · all
Example: 1h
dateFromstringOnly articles published on or after this date (YYYY-MM-DD). When set, it replaces the time period above. Leave both dates empty to use the time period.
dateTostringOnly articles published on or before this date (YYYY-MM-DD). Leave empty for today. With more than 100 articles requested, the date range is split automatically to collect more than 100 articles.
region_languagestringRegion and language for news search
US:en · SK:sk · AU:en · BW:en · CA:en · ET:en · GH:en · IN:en · ID:en · IE:en · IL:en · KE:en …
Example: US:en
decodeUrlsbooleanIf enabled, decodes Google News URLs to get the original article URLs. Note: This will significantly slow down the scraping process as each URL needs to be decoded individually.
Example: false
extractDescriptionsbooleanIf enabled, extracts the meta description from each article page. Note: This will significantly slow down the scraping process.
Example: false
extractImagesbooleanFetches the og:image from each article page when no image is available (mainly for RSS/topic results). When this option is not explicitly set, images are extracted by default. Toggle OFF to skip image extraction and speed up scraping.
Example: true
extractFullTextbooleanAdds the full text of each article in a fullText field, read from the publisher's page. No extra cost. Runs take longer, and paywalled sites may return no text or only the beginning of the article.
Example: false
proxyConfigurationobjectConfigure Proxy. Residential proxies recommended for best results.
Example: {"useexampleProxy":true}
debugbooleanShow detailed technical logs. For troubleshooting only.
Example: false
debugArticleBillingbooleanInternal test switch. Leave it off.
Example: false
