Get Started

Our self learning AIML algorithms delivers you the most accurate and relevant results

To get started you’ll need an API key. They’re free for development, open-source, and non-commercial use and you can get one over here.

Also we’re assuming you know how to make web requests in your chosen programming language. We’ve included some crude ways to do this in our examples below if you need a place to start. Alternatively you can use one of our client libraries.

Now let’s consider two of the most popular use cases for Newz AI and walk through each one:

  • I want to show my users live top and breaking news headlines
  • I want to search across every news article that mentions a specific topic or keyword (limited to the last 24 months).

I want to show my users live top and breaking news headlines

Newz.AI is great as a data source for news tickers and other applications where you want to show your users live headlines. We track headlines in 7 categories across over 50 countries, and at over a hundred top publications and blogs, in near real time.

Let’s make a request to get live top headlines in the US right now. We’ll use the /top-headlines endpoint for this.

If you want headlines just from a specific source, for example BBC News, we can do that too.

If you’re wondering how we knew that the identifier for BBC News was bbc-news, there’s a news source listyou can refer to, or you can use the sources endpoint.

As well as tracking top headlines, we also index every article published by over 50,000 news sources and blogs. Think of us as Google for news articles that you can search programmatically!

In this example we want to find all articles published today that mention Apple and sort them by most popular source first (i.e. Engadget articles will be returned ahead of Mom and Pop’s Little iPhone Blog).

We want to broaden the scope to more than just the top headlines here, so we’ll use the /everythingendpoint. The /everything endpoint includes all the articles from /top-headlines, plus all the millions of articles that don’t make it as a top story, or that aren’t breaking news anymore.

Create an account

Get started with Newz.AI.

Have a question?