asknews
Python SDK for AskNews
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
Python SDK for the AskNews API that retrieves and formats news data, event tracking, forecasts, and analytics for use with language models and applications.
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
pip
pip install asknewsuv
uv add asknewspoetry
poetry add asknewsInstalling asknews
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.
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
Requires a valid AskNews API key to authenticate and access the service.
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 — asgiref, crontab, cryptography, httpx, orjson, pydantic |
| 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) |
Evidence: asknews-0.13.56-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
openbb-newsExtends the OpenBB Platform with news data…
agpl · top 15,000 on PyPI
newsapi-pythonA Python client library that wraps the News…
permissive · top 15,000 on PyPI
eventregistryQuery news articles and events from Event…
permissive · top 15,000 on PyPI
nixtlaPython SDK for accessing TimeGPT, a foundation…
permissive · top 15,000 on PyPI
gnewsGNews searches Google News RSS feeds and…
permissive · top 15,000 on PyPI
trendspyFetch and analyze Google Trends data including…
permissive · top 15,000 on PyPI
posthogPostHog Python SDK integrates product analytics…
permissive · top 1,000 on PyPI
yahooqueryRetrieves financial data from Yahoo Finance…
permissive · top 15,000 on PyPI
analytics-pythonA Python client library that sends analytics…
permissive · top 5,000 on PyPI
dartsDarts provides forecasting and anomaly…
permissive · top 15,000 on PyPI