A River of News

API

Everything on this site is also available as JSON. It is free and needs no key. Any website may call it from the browser.

AddressWhat it returns
/api/v1/latest/{category}.jsonThe newest 200 headlines. Use all for every category.
category is all or a category slug
/api/v1/search.jsonSearch headlines, newest first, 50 per page.
q (required), c, country (a slug from /countries/), lang (en, es, de, fr, pt, it, nl), from, to (YYYY-MM-DD), before (an id from the last page)
/api/v1/keywords.jsonTop keywords for the last 24 hours, overall and by category.
/api/v1/keywords/{yyyy}/{mm}/{dd}.jsonA UTC day's final keyword list.
/api/v1/authors.jsonAuthors, ranked, 100 per page.
sort (articles, name, latest, first), dir (asc, desc), page
/api/v1/authors/{slug}.jsonOne author's summary and their newest 50 articles.
before
/api/v1/stories.jsonStories covered by the most publications, each with one article per publication.
window (6, 24 or 72 hours; default 24)
/api/v1/leaderboards/{topic}.jsonThe top authors and publications for a topic over a window. Each row has was, its rank in the window before (0 if new).
window (7, 30 or 90 days; default 30). Topics are listed at /leaderboards/
/api/v1/leaderboards/category.jsonThe same, for one category.
c (category slug), window
/api/v1/leaderboards/search.jsonThe same, for any words you choose.
q, window
/api/v1/sources.jsonEvery publication with counts, categories, bylines and when it publishes.
/api/v1/first.jsonWhich publications reported stories first.
/api/v1/days.jsonEvery day with data, with counts by category.
/api/v1/countries/{country}.jsonThe last 7 days of headlines that name a country (mentions) and headlines from publications based there (outlets), newest first.
country is a slug such as canada or united-kingdom; the list is at /countries/
/api/v1/changes.jsonHeadlines a publication rewrote after publishing, newest change first, with every wording. kind is rewrite, or live for a live blog or advisory made to change.
/api/v1/status.jsonWhether headlines are arriving on time.

Try it

These open in your browser and show the raw JSON.

From a web page, with no key:

const res = await fetch("https://ariverofnews.com/api/v1/search.json?q=" + encodeURIComponent("solar power"));
const { rows } = await res.json();
for (const r of rows) console.log(r.ts, r.n, r.t, r.u);

Terms

Other ways in

RSS and JSON Feed for every category, search, author and publication; the embeddable widget; the daily audio briefing podcast feed; and the sitemap.