A large archive and extensive search options
Our databases contain news articles published by over 150,000 news sources, and the archive goes back to January 2014.
A large number of search filters lets you specify exactly which articles you want to retrieve. Among others, you can search by keyword, concept, category, source, source location, language, date and sentiment.
- Date ranges down to a single day
- 50+ languages, selected per query
- News categories such as news/Health work across languages
# one category, two languages, one year, no copies
q = QueryArticlesIter(
categoryUri = "news/Health",
lang = QueryItems.OR(["eng", "deu"]),
dateStart = "2023-01-01", dateEnd = "2023-12-31",
isDuplicateFilter = "skipDuplicates")
corpus = []
for art in q.execQuery(er, sortBy = "date", maxItems = 20000):
corpus.append(art)
const api = "https://eventregistry.org/api/v1";
const response = await fetch(api + "/article/getArticles", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"apiKey": "YOUR_API_KEY",
"categoryUri": "news/Health",
"lang": [
"eng",
"deu"
],
"dateStart": "2023-01-01",
"dateEnd": "2023-12-31",
"isDuplicateFilter": "skipDuplicates",
"resultType": "articles",
"articlesSortBy": "date",
"articlesCount": 100,
"articlesPage": 1
}),
});
const data = await response.json();
// one page of up to 100 articles; raise articlesPage for the next
const corpus = data.articles.results;
console.log(corpus.length, "of", data.articles.totalResults);
curl -X POST "https://eventregistry.org/api/v1/article/getArticles" \
-H "Content-Type: application/json" \
-d '{
"apiKey": "YOUR_API_KEY",
"categoryUri": "news/Health",
"lang": [
"eng",
"deu"
],
"dateStart": "2023-01-01",
"dateEnd": "2023-12-31",
"isDuplicateFilter": "skipDuplicates",
"resultType": "articles",
"articlesSortBy": "date",
"articlesCount": 100,
"articlesPage": 1
}'
POST https://eventregistry.org/api/v1/article/getArticles
Content-Type: application/json
{
"apiKey": "YOUR_API_KEY",
"categoryUri": "news/Health",
"lang": [
"eng",
"deu"
],
"dateStart": "2023-01-01",
"dateEnd": "2023-12-31",
"isDuplicateFilter": "skipDuplicates",
"resultType": "articles",
"articlesSortBy": "date",
"articlesCount": 100,
"articlesPage": 1
}
Comes back with
titlebodylangdatesource