asknews
Python SDK for AskNews
Decision gist · record as of 2026-08-14
Yes, if you have an AskNews API key and need to integrate real-time news, forecasts, or analytics into a Python application. The SDK is actively maintained, has low install friction, carries no known vulnerabilities, and is licensed permissively. The main decision point is whether the AskNews API service itself meets your data and cost requirements.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a valid AskNews API key to authenticate and access the service.
- Low install friction with a pure Python wheel distribution.
- Active maintenance with a recent release (10 days old) and ongoing commits.
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
last release 2026-08-04 (10 days) · last repo commit 2026-08-04 · 9 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 154,777 downloads/mo, #10,844 on PyPI
Alternatives
Verify before relying
pip install asknews
from asknews import AskNewsSDK
ask = AskNewsSDK(api_key="your_key", scopes=["news", "chat", "stories", "analytics"])
news_context = ask.news.search_news("Effect of fed policy on tech sector").as_string- Rate limits, quota constraints, or pricing model for API access
- Performance characteristics for large-scale news queries or analytics requests
- Data freshness guarantees and update frequency for news, forecasts, and analytics
What it is and what it does
AskNews is a Python SDK that wraps the AskNews API, providing structured access to real-time news, event tracking, forecasts, and analytics data. It formats results as prompt-optimized strings designed to integrate directly with language models, making it useful for applications that need to augment LLM responses with current events, financial data, or political information. The SDK depends on asgiref, crontab, cryptography, httpx, orjson, and pydantic to handle async operations, scheduling, secure communication, HTTP requests, JSON serialization, and data validation.
The API surface includes endpoints for news search, high-level event clustering, real-time forecasting, time-series analytics on finance and politics, a deep research agent, a knowledge graph builder, and web search with LLM distillation. The package is actively maintained, supports Python 3.8 through 3.13, and carries no known security vulnerabilities.
Use it for
- Augment LLM applications with real-time news context and financial data for more informed responses
- Build event tracking and monitoring systems using article clustering and aggregation
- Create forecasting or analytics dashboards that consume time-series data on finance and politics
- Integrate web search and knowledge graph queries into research or intelligence workflows
- Develop chatbots or agents that need current events and deep research capabilities
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you have an AskNews API key and need to integrate real-time news, forecasts, or analytics into a Python application.
The SDK is actively maintained, has low install friction, carries no known vulnerabilities, and is licensed permissively. The main decision point is whether the AskNews API service itself meets your data and cost requirements.
Install
asknews on PyPI
Before you install
Low install friction with a pure Python wheel distribution. Active maintenance with a recent release (10 days old) and ongoing commits. Supports Python 3.8 through 3.13.
Requires a valid AskNews API key to authenticate and access the service.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install asknews
from asknews import AskNewsSDK
ask = AskNewsSDK(api_key="your_key", scopes=["news", "chat", "stories", "analytics"])
news_context = ask.news.search_news("Effect of fed policy on tech sector").as_string
Verify before relying
- Rate limits, quota constraints, or pricing model for API access
- Performance characteristics for large-scale news queries or analytics requests
- Data freshness guarantees and update frequency for news, forecasts, and analytics
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesasgirefcrontabcryptographyhttpxorjsonpydantic |
| Maintenance | Actively maintained 10 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 154,777 / month, #10,844 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: asknews-0.13.56-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “news api python sdk”
- asknewsPython SDK for the AskNews API that retrieves and formats news data,…
- newsapi-pythonA Python client library that wraps the News API, providing methods to…
- eventregistryQuery news articles and events from Event Registry's API using…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also openbb-news · newsapi-python · eventregistry · nixtla · gnews · trendspy · posthog · yahooquery · analytics-python · darts