main-image main-image
arrow

Best news API

for your product

Easy to integrate news API that you can use in your products and services to obtain access to real-time as well as archive news content.
main-image main-image
World’s leading companies are using NewsAPI.ai
spotify
IBM
accenture
bloomberg
palantir
merck
BASF
johnson_and_johnson

Get articles from 150,000 news publishers worldwide

Get the full news content as well as information about the mentioned entities, topics and sentiment. Filter using any of the available properties to get the content you need.
Explore the docs
Latest news about Bitcoin
Latest news about Bitcoin, Ethereum or Litecoin in English language
Natural Disasters
Events describing natural disasters that happened in United States
News about Apple Inc.
News about Apple Inc. reported by top business related news sources, sorted by relevance
German or Spanish news about football
German or Spanish articles about football sorted by number of shares on social media
News about Refugees
News about Refugees published by news sources located in Germany, sorted by source importance
Python python
Node.JS python
HTML python
										
  from eventregistry import *
  MAX_RESULTS = 1000
  er = EventRegistry(apiKey = YOUR_API_KEY)
  iter = QueryArticlesIter(
      keywords = QueryItems.OR(["Bitcoin", "Ethereum", "Litecoin"]),
      lang = "eng")
  for art in iter.execQuery(er,
          sortBy = "date",
          maxItems = MAX_RESULTS,
          returnInfo = ReturnInfo(
              articleInfo = ArticleInfoFlags(
                  concepts = True,
                  categories = True)
      )):
      # do something with the article
      print(art)
  
									
										
  from eventregistry import *
  MAX_RESULTS = 1000
  er = EventRegistry(apiKey = YOUR_API_KEY)
  iter = QueryEventsIter(
      categoryUri = er.getCategoryUri("natural disasters"),
      locationUri = er.getLocationUri("United States"))
  for event in iter.execQuery(er, maxItems = MAX_RESULTS):
      # do something with the event
      print(event)
  
									
										
  from eventregistry import *
  MAX_RESULTS = 1000
  er = EventRegistry(apiKey = YOUR_API_KEY)
  iter = QueryArticlesIter(
      conceptUri = er.getConceptUri("Apple"),
      sourceGroupUri = er.getSourceGroupUri("business top100"))
  for art in iter.execQuery(er,
          sortBy = "rel",
          maxItems = MAX_RESULTS):
      # do something with the article
      print(art)
  
									
										
  from eventregistry import *
  MAX_RESULTS = 1000
  er = EventRegistry(apiKey = YOUR_API_KEY)
  iter = QueryArticlesIter(
      conceptUri = er.getConceptUri("football"),
      lang = QueryItems.OR(["deu", "spa"]))
  for art in iter.execQuery(er,
          sortBy = "socialScore",
          maxItems = MAX_RESULTS,
          returnInfo = ReturnInfo(
              articleInfo = ArticleInfoFlags(
                  socialScore = True,
                  concepts = True,
                  categories = True))):
      # do something with the article
      print(art)
  
									
										
  from eventregistry import *
  MAX_RESULTS = 1000
  er = EventRegistry(apiKey = YOUR_API_KEY)
  iter = QueryArticlesIter(
      conceptUri = er.getConceptUri("refugee"),
      sourceLocationUri = er.getLocationUri("Germany"),
      lang = QueryItems.OR(["deu", "spa"]))
  for art in iter.execQuery(er,
          sortBy = "sourceAlexaGlobalRank",
          sortByAsc = True,
          maxItems = MAX_RESULTS):
      # do something with the article
      print(art)
  
									
										
  var request = require('request');
  request.get({
  url: "/api/v1/article/getArticles",
  qs: {
      resultType: "articles",
      keyword: ["Bitcoin","Ethereum","Litecoin"],
      keywordOper: "or",
      lang: "eng",
      articlesSortBy: "date",
      includeArticleConcepts: true,
      includeArticleCategories: true,
      apiKey: "API_KEY",
  },
  function(error, response, body) {
      body = JSON.parse(body);
      console.log(body);
  });
  
									
										
  var request = require('request');
  request.get({
  url: "/api/v1/event/getEvents",
  qs: {
      resultType: "events",
      categoryUri: "dmoz/Science/Earth_Sciences/Natural_Disasters_and_Hazards",
      locationUri: "http://en.wikipedia.org/wiki/United_States",
      apiKey: "API_KEY",
  },
  function(error, response, body) {
      body = JSON.parse(body);
      console.log(body);
  });
  
									
										
  var request = require('request');
  request.get({
  url: "/api/v1/article/getArticles",
  qs: {
      resultType: "articles",
      conceptUri: "http,
      sourceGroupUri: "business/top100",
      articlesSortBy: "rel",
      apiKey: "API_KEY",
  },
  function(error, response, body) {
      body = JSON.parse(body);
      console.log(body);
  });
  
									
										
  var request = require('request');
  request.get({
  url: "/api/v1/article/getArticles",
  qs: {
      resultType: "articles",
      conceptUri: "http,
      lang: ["deu","spa"],
      articlesSortBy: "socialScore",
      includeArticleSocialScore: "true",
      includeArticleConcepts: true,
      includeArticleCategories: true,
      apiKey: "API_KEY",
  },
  function(error, response, body) {
      body = JSON.parse(body);
      console.log(body);
  });
  
									
										
  var request = require('request');
  request.get({
  url: "/api/v1/article/getArticles",
  qs: {
      resultType: "articles",
      conceptUri: "http://en.wikipedia.org/wiki/Refugee"
      sourceLocationUri: "http://en.wikipedia.org/wiki/Germany"
      articlesSortBy: "sourceAlexaGlobalRank",
      articlesSortByAsc: "true",
      apiKey: "API_KEY",
  },
  },
  function(error, response, body) {
      body = JSON.parse(body);
      console.log(body);
  });
  
									
https://eventregistry.org/api/v1/article/getArticles?resultType=articles&keyword=Bitcoin&keyword=Ethereum&keyword=Litecoin&keywordOper=or&lang=eng&articlesSortBy=date&includeArticleConcepts=true&includeArticleCategories=true&apiKey=API_KEY
https://eventregistry.org/api/v1/event/getEvents?resultType=events&categoryUri=dmoz/Science/Earth_Sciences/Natural_Disasters_and_Hazards&locationUri=http://en.wikipedia.org/wiki/United_States&apiKey=API_KEY
https://eventregistry.org/api/v1/article/getArticles?resultType=articles&conceptUri=http://en.wikipedia.org/wiki/Apple_Inc.&sourceGroupUri=business/top100&articlesSortBy=rel&apiKey=API_KEY
https://eventregistry.org/api/v1/article/getArticles?resultType=articles&conceptUri=http://en.wikipedia.org/wiki/Association_football&lang=deu&lang=spa&articlesSortBy=socialScore&includeArticleConcepts=true&includeArticleCategories=true&apiKey=API_KEY
https://eventregistry.org/api/v1/article/getArticles?resultType=articles&conceptUri=http://en.wikipedia.org/wiki/Refugee&sourceLocationUri=http://en.wikipedia.org/wiki/Germany&articlesSortBy=sourceAlexaGlobalRank&articlesSortByAsc=true&apiKey=API_KEY

Made with love for developers

We want you to access our API as easily as possible. Choose your language of preference and check the documentation for it.
python Python SDK dots GET CODE
node Node.JS dots GET CODE
html REST API dots GET CODE

The News API pipeline

News API uses state-of-the-art services for identifying the available article meta-data as well as computing additional information such as mentioned entities, categories, event detection, sentiment and more.
pipeline pipeline
global-content
Global content

Access news content published by global news sources in 60+ languages just minutes after it has been published online.

advanced-filtering
Advanced filtering

Find news content of interest by specifying keywords, people, locations, organizations, topics, news sources, sentiment and more.

metadata-information
Meta-data information

Obtain all available article information as well as mentioned entities, sentiment, topics, shares on social media and more.

track_world_events
Track world’s events

Search world events identified in the news. See coverage of each event by different publishers and in different languages.

pay_per_usage
Pay per use

Use our News API with a simple pay as you go monthly subscription. Upgrade or downgrade your plan at any time.

news_archive
News archive

Get access to historical news content published since 2014 by accessing our news database.

Comparison of news API providers

There are plenty of news API providers out there. See below why we think newsapi.ai is the best for you.
NewsAPI.ai Other providers
Basic Article Data
Title, Body, URL, Publication date
help
We extract the title, body of the article, URL, and the publication date.
check check
Authors
help
We extract the information about the author(s) of the article.
check check
Links from the body
help
We extract the URLs and the anchor text for the links that are provided in the body of the article.
check check
Videos shown in the body
help
We extract the URLs to the videos that are linked inside the body of the article.
check check
Enriched Article Data
Entity recognition and disambiguation
help
We identify and disambiguate the list of people, organizations, locations, and other important concepts mentioned in the article text.
check missing
Categorization
help
We compute what are the topics discussed in the text. The article can be associated with one or more topics from a predefined taxonomy of 5000+ topics.
check missing
Article clustering (events)
help
We group the articles into events based on the similarity of their content. Events allow us to identify additional articles addressing identical topics or occurrences.
check missing
Sentiment
help
We compute what is the sentiment of the text in the article.
check missing
Social media score
help
We monitor how many times each of the articles is shared on social media.
check missing
(Near) Duplicate detection
help
Articles can be copied or nearly copied by multiple sources. We mark if an article is new or a copy of some previously published article.
check missing
Publisher ranking
help
For each source we provide additional meta-data such as location and the ranking according to the number of monthly viewers.
check missing
Support
Tech support via chat, email and Zoom
help
We are happy to help our clients to get onboard as easily as possible. We provide support over chat, email and video conferences.
check missing

Uses for our API

Our News API is used by companies as well as research organizations to fulfill the needs of their use-case. May it be analyzing the content on a particular topic, building a machine learning model or identifying trends, our API can provide you exactly the data you need.
dynamic_news_platform
Dynamic News Platform
Supporting a platform that requires real-time news content.
live_news_access
Live News Access
Access to the full stream of news and blogs as they are collected.
retrieving_past_news
Retrieving Past News
Obtain historical content from news sources published since 2014.
dataset_creation
Dataset Creation
Build a news or event dataset for further analysis.
industry_analysis
Industry Analysis
Extract market trends, analyze specific industry, track competitors and customers.
virality_analysis
Virality Analysis
Track news reach and virality of a person, company, product or topic of interest.