Skip to content

Political events and policy shifts, filtered from the noise

Political stories generate a lot of noise in everyday news. Follow the events, policies and countries that matter to you across 150,000+ sources in 50+ languages, with the facts structured for analysis.

2,000 free tokens · No credit card required

1000+ companies and institutions rely on NewsAPI.ai

  • Spotify
  • IBM
  • Accenture
  • Bloomberg
  • BBVA
  • World Bank Group
  • BASF
  • Huawei
  • OECD.AI Policy Observatory

From daily noise to the events that matter

To stay on top of the important facts you need to filter many things out. These are the parts of the API that analysts use to do it.

Track political events instead of headlines

News API groups the articles that report the same thing that happened into one event, across languages. A summit, a vote or a new round of sanctions becomes one entry with all its coverage attached.

Search events by the organizations, people and countries involved, restrict them to political news, and rank them by how widely they are reported.

  • Events with dates and article counts
  • Filter by concept, category and location
  • Coverage in different languages under one event
political_events.py
# the largest political events that involve an organization
q = QueryEventsIter(
    conceptUri = er.getConceptUri("NATO"),
    categoryUri = "news/Politics",
    dateStart = "2026-10-15")
for event in q.execQuery(er, sortBy = "size", maxItems = 10):
    print(event["eventDate"], event["totalArticleCount"])
    print(event["title"])

Comes back with urititleeventDatetotalArticleCount

Compare how each country reports it

The same story is told differently in different places. Every source has a location, so you can read how publishers in one country cover a topic and compare that with another country.

Limit the results to the top-ranked sources when you want the outlets with the widest reach.

  • Sources located in a country or a city
  • Source ranking percentiles
  • Articles in the local languages
country_view.py
# how the leading publishers in one country cover a topic
q = QueryArticlesIter(
    conceptUri = er.getConceptUri("BRICS"),
    sourceLocationUri = er.getLocationUri("Brazil"),
    endSourceRankPercentile = 30)
for art in q.execQuery(er, sortBy = "date", maxItems = 50):
    print(art["lang"], art["source"]["title"], art["title"])

Comes back with langsourcetitlebody

Measure the attention a policy issue gets

Climate change, clean technologies, trade and migration move up and down the political agenda. The daily number of political articles that mention a topic shows when an issue gains attention and when it fades.

Use it to analyze, for example, emerging clean technologies and natural disaster events and their impact on policymaking.

  • Daily article counts for any query
  • A concept combined with the politics category
  • Top concepts, sources and categories as further summaries
attention.py
# political coverage of a topic, day by day
q = QueryArticles(
    conceptUri = er.getConceptUri("Renewable energy"),
    categoryUri = "news/Politics",
    dateStart = "2026-10-15",
    requestedResult = RequestArticlesTimeAggr())
res = er.execQuery(q)
for day in res["timeAggr"]["results"]:
    print(day["date"], day["count"])

Comes back with timeAggr

Find what happens in the countries you follow

Events carry the location where they took place. Ask for the elections, protests or negotiations located in a country, and narrow the kind of event with keywords, concepts and categories.

Sorted by date you get a running log of a country; sorted by size, the stories with the widest coverage.

  • Events by the country or city where they happened
  • Keywords, concepts and categories to narrow the kind of event
  • Sorted by date or by size
elections.py
# political events about elections located in one country
q = QueryEventsIter(
    keywords = "election",
    categoryUri = "news/Politics",
    locationUri = er.getLocationUri("Germany"),
    dateStart = "2026-10-15")
for event in q.execQuery(er, sortBy = "date", maxItems = 20):
    print(event["eventDate"], event["title"])

Comes back with eventDatetitlelocationtotalArticleCount

The facts, already structured

Each article and event arrives with the fields an analyst would otherwise have to code by hand.

conceptsWho is involved
Governments, organizations, politicians and places in each article, each with a stable ID across languages.
categoriesThe subject
Categories such as politics, business or environment, to separate political coverage from the rest.
locationWhere it happened
The place named in the dateline of an article, and the location of each event.
eventUriThe event
Articles about the same thing that happened share an event ID, with the number of articles behind it.
sourceWho reports it
The publisher with its country or city and its ranking, to compare domestic and foreign coverage.
sentimentThe tone
A score from -1 to 1 for articles in English.

A political briefing in three steps

  1. Create a free account

    You get 2,000 tokens with no credit card. A 30-day article search costs 1 token, so that is plenty to evaluate the data.

  2. Pick how you call the API

    Run pip install eventregistry for Python, use the Node.JS SDK, or send the REST request from any language. Switch the example to see each one.

  3. Run the query

    Put the countries you follow into the script and run it. The sandbox builds queries interactively and generates the code for you.

Explore the docs
briefing.py
from eventregistry import *

er = EventRegistry(apiKey = YOUR_API_KEY)

# the countries on your watchlist
countries = ["Ukraine", "Taiwan", "Venezuela"]
locations = [er.getLocationUri(name) for name in countries]

q = QueryEventsIter(
    categoryUri = "news/Politics",
    locationUri = QueryItems.OR(locations),
    dateStart = "2026-11-01")

# the largest political events first: one entry per story
for event in q.execQuery(er, sortBy = "size", maxItems = 20):
    print(event["eventDate"], event["totalArticleCount"])
    print(event["title"])

What analysts use it for

  • Geopolitical risk management

    Follow political developments in the countries where you operate or invest.

  • Policy monitoring

    Track legislation, regulation and government announcements on the issues you work on.

  • Climate and energy policy

    Analyze emerging clean technologies, natural disaster events and their impact on policymaking.

  • Election coverage

    Follow campaigns and results, and compare how domestic and foreign media report them.

  • Research and think tanks

    Build datasets of political events with dates, locations and article counts.

  • Public affairs

    Brief clients on what was reported about their sector, by country and by day.

Good to know before you start

What content does the API cover?

News articles, blog posts and press releases from 150,000+ publishers in 50+ languages, with a searchable archive that goes back to 2014.

How quickly do new articles appear?

Content is available through the API just minutes after it has been published online.

Can I follow coverage in languages I do not read?

Yes. Concepts, news categories and events work across languages: a search by concept also returns articles in other languages, and an event groups the coverage of one story in the languages it was reported in.

How far back can I analyze?

The archive goes back to 2014 and takes the same queries as the real-time data. Archive searches use more tokens than searches over the last 30 days; the plans page has the details.

What does it cost to try?

Nothing. Registration gives you 2,000 tokens with no credit card, and they do not expire. An article search over the last 30 days uses 1 token. After that, paid plans are a monthly subscription that you can upgrade or downgrade at any time.

Do I have to use the Python SDK?

No. Every query is available through the REST API, and each example on this page can be switched to Node.js, cURL or the plain REST request. The Node.js version calls the REST API with fetch; there is also a Node.JS SDK. The sandbox lets you build a query interactively and generates the code for you.

Effortless integration

Our API is very easy to integrate and provides great documentation with examples. Simply use the sandbox to generate code that you can directly deploy in your application.

Start with 2,000 free tokens, no credit card required. After that it is a simple pay-as-you-go monthly subscription: upgrade or downgrade your plan at any time.