We use cookies to ensure you get the best experience on our website. Some of these cookies are provided by third parties. You are free to decide which categories you would like to permit and can withdraw this consent at any time (via cookie preferences link on the footer).
By accepting the necessary cookies, you agree to our privacy policy and terms of service, both located in the footer of the website.
Learn more on our terms of service and privacy policy.
AskNews is a toolbox for access to high-quality, licensed, and paywalled data. With thousands of licensed publishers, access to the X (Twitter) firehose, and a host of open web sources, AskNews' dedication to open-source research puts is squarely at the forefront of high quality search, retrieval, entity extraction, bias detection, and much more.
Don't settle for messy and brittle web-scrapes. Build on AskNews' high quality data.
Metaculus AI forecasting bot winners took home over 200k dollars across five quarterly tournaments, by building their bots with AskNews instead of Perplexity! Metaculus in-house bots changed their bots from using Perplexity to AskNews for the Q4 tournament 🚀 Read more here
UTexas is using AskNews to improve misinformation detection by 26% compared to the previous state-of-the-art 🔎 Read more here
RileyRisk is using AskNews to generate real-time drone and missile alerts 🌍
The AskNews SDK allows you to access a variety of news and web related endpoints. The top features include:
For endpoint specific pricing and rate-limits, please head to the pricing and rate limits page.
AskNews infuses any LLM with the latest news, using a single natural language query. Specifically, AskNews is enriching hundreds of thousands of articles per day, indexing them into a hot vector database, and putting that vector database on an endpoint for you. When you query AskNews, you get back a prompt-optimized string that goes directly into your prompt. This means that you do not need to manage your own news RAG, and you do not need to worry about how to properly convey news information in a condensed way to your LLM.
Grab your API key at AskNews and boost the quality of yor LLM app today.
Building and managing a high-quality real-time news Retrieval Augmented Generation (RAG) architecture includes:
When you use AskNews, you get all this with a single line of code.
We keep a hot and fresh set of tools available with 99.9% uptime, backed by our status page. Our engineering team is constantly monitoring and improving the system to ensure that you have access to the latest news when you need it.
A quantitative benchmark was run on AskNews vs JinaAI vs Tavily vs Exa, results indicate that AskNews is 1400% faster than JinaAI, and has 78% better context precision than all competitors. The full blog + Google Colab is available here. The summary of results is shown here:

We researched, developed, and deployed the best entity extraction model in the world, called GLiNER News. It is currently used to extract entities for all articles and stories in the AskNews database. It is also completely open-source, in-case you'd like to run the entity extraction yourself. You can find it on our HuggingFace repository.
Our research extends beyond GLiNER, we are actively improving quality and innovating on all aspects of our system. Our full list of scientific publications can be found here.
This level of dedication to quality and transparency sets us apart from all other News APIs. When you consume AskNews content, you are getting only the best quality data, guaranteed. We even have our own Quality Assurance and Quality Control that runs on every single article/story to ensure that you will not run into a single article with incorrect content, scraping, etc.
Much of this quality comes from our dedication to high-quality foundational software. We also developed and open-sourced Flowdapt, which is a cluster orchestration software that enables highly reactive and adaptive artificial intelligence software. This software is what powers the AskNews backend, ensuring that we can keep up with the ever-changing news landscape, without missing a single article.
Beyond these points, we are dedicated to open-source, with the majority of our software completely free and open-source. We are fully transparent about our datasources as well, with a transparency dashboard available to track and monitor the data. We are commonly invited to present on our open-source methodologies at conferences, such as GenAI Zurich. You can find all our presentations here.
If you need help with the AskNews SDK, please join our Discord, where you can ask questions, share your projects, and connect with other AskNews users. The Discord even has a channel that lets you talk directly to the AskNews endpoints, asking for Forecasts and talking to millions of news articles.
If you would like to explore the data before using the SDK, we encourage you to visit the AskNews website at https://asknews.app.
We love supporting academic use-cases. If you are interested in accessing AskNews data for an academic project, please reach out to us at contact@asknews.app with a description of your project as well as contact information. In most cases, academic access to AskNews is completely free under the Limited License.
We are going to setup an example that infuses GPT3.5 with the latest news, but you could substitute GPT3.5 with any LLM you like. First, install the sdk:
Authentication is supported via two methods: OAuth2 client credentials or an API key. Each SDK supports both methods. Most examples in this documentation demonstrate the use of OAuth2 client credentials.
Your AskNews client_id and client_secret can be generated by going to the AskNews console and generating a new pair of client credentials in the API Credentials tab of the Settings page. Once generated, pass them to the AskNewsSDK constructor using the client_id and client_secret parameters.
The scopes parameter allows you to control access to different endpoints for different credentials, effectively defining the permissions associated with the credentials. When using OAuth2 client credentials, the access token is short-lived and automatically refreshed by the SDK as needed. If a token is compromised, it will automatically expire after a short period, and a new one will be generated.
To use API key authentication, generate an API key in the same API Credentials tab. Instead of passing client_id, client_secret, and scopes to the SDK constructor, simply pass the api_key parameter. With API key authentication, scopes are defined at the time of key creation and the scopes parameter is ignored. To change the scopes associated with an API key, you must create a new key. If your API key is compromised, it must be manually deleted and replaced.
Note: API key and OAuth2 client credentials are exclusive, you can only use one method at a time.
The primary differences between the two methods are:
| Feature | OAuth2 Client Credentials | API Key |
|---|---|---|
| Granular access control | Yes | No |
| Rotate credentials without app changes | Yes | No |
| Easier to use in serverless environments | No | Yes |
| Easier to use in local dev environments | No | Yes |
Next, import the AskNews and OpenAI SDKs:
Let's take an example of your LLM interacting with a user who is asking about the current political situation in Germany. If you had your own RAG setup, you would use that query to go search a database and retrieve documents, structure them into a prompt-ready format, and it inject into your prompt. With AskNews, you treat it as a one-stop RAG shop. Here's how you would do it:
Now the response provides the latest updated information about the political situation in Germany:
Response from GPT3.5
The current political situation in Germany is dynamic and multifaceted.
Internal Security Concerns: There are doubts about Germany's internal security, with increasing threats from outside and vulnerabilities within the state structure, as highlighted in debates over strengthening the Federal Constitutional Court.
Fiscal Policy: The CDU's party leader, Friedrich Merz, has raised concerns about the financial feasibility of spending 40 billion euros on citizen's income in 2024, especially in the context of maintaining defense capabilities.
Political Shifts: The SPD has been criticized for moving away from its core voter base and reviving old Russia policies. This has sparked warnings about denying reality and concerns about Germany's foreign policy post-Merkel.
Youth Political Views: A survey found that a significant portion of first-time voters lean towards conservative views, some even trusting the far-right Alternative for Germany (AfD)...(LLM response truncated for brevity)
More details about filtering and sorting your news search can be found here.
If you would like to obtain the hottest tech stories in North America, you can use SDK as follows:
Which would return the hottest tech stories in North America, sorted by coverage, with the top 3 Reddit threads, and the 2 most recent updates for each story. Each story in the response is a custom AskNews-written story about a topic that is currently circulating in the news-sphere. The story includes a host of aggregated information such as sentiment, reddit opinion, clustered articles, coverage counts, origin diversity and much more.
More details about filtering and sorting your stories search can be found here.
If you would like to use the chat endpoint to ask questions about the news, you can use the SDK as follows:
Beyond news, there are other endpoints like stories, chat, analytics, and sources that you can explore.
Check out our blog post explaining how to use the AskNews SDK to infuse news into your LLM.