--- id: asknews version: "0.13.56" license: MIT license_treatment: permissive maintenance: active --- # asknews — Python SDK for AskNews License: permissive · Maintenance: active · Downloads: 154.8K/mo ## 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 above — 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 pip install asknews uv add asknews poetry add asknews ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 154.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags news api python sdk, real-time news data retrieval, llm news context integration, news search and analytics, event tracking and forecasting api, web search and knowledge graph, financial and political analytics, news-api, llm-integration, real-time-data [View on SkillFed](https://skillfed.io/packages/asknews) · [View on PyPI](https://pypi.org/project/asknews/)