Search
Phrases, boolean operators and filters in one query.
Real-time news
The latest endpoint returns the newest articles first, filtered by category, country and source.
The newest articles in one call, filtered the way your product needs.
Anything that has to be current: feeds, alerts and agents.
From Growth up, articles arrive with no delay.
What you get
0/3Show new stories as they break.
Notify users when a watched topic appears.
See market-moving headlines without refreshing sites.
Answer with today's reporting, not last year's.
Freshness delay
By planPoll the latest endpoint on your own schedule and keep the newest articles.
Example
An app polls the latest politics articles every minute, compares article IDs with what it already has, and shows new stories at the top.
At a glance
curl -G https://api.newsmesh.co/v1/latest \ -d apiKey=$NEWSMESH_API_KEY \ -d category=politics \ -d country=us \ -d limit=10
import os, requestsr = requests.get( "https://api.newsmesh.co/v1/latest", params={ "apiKey": os.environ["NEWSMESH_API_KEY"], "category": "politics", "country": "us", "limit": "10", },)articles = r.json()["data"]
const params = new URLSearchParams({ apiKey: process.env.NEWSMESH_API_KEY, category: "politics", country: "us", limit: "10",});const res = await fetch(`https://api.newsmesh.co/v1/latest?${params}`);const { data } = await res.json();
{
"data": [{
"article_id": "e853678fc7f08a5c4f9d2159167beff7",
"title": "Justice Alito Won’t Participate in Supreme Court Case on Cl…",
"source": "The Wall Street Journal",
"category": "politics",
"topics": ["climate change", "Supreme Court decisions", "justices"],
"people": ["Justice Alito"],
"country_relevance": ["United States"],
"link": "https://www.wsj.com/us-news/law/justice-alito-wont-…"
}],
"next_cursor": "eyJwIjoi…"
}