skillfed

asknews

Python SDK for AskNews

asknews v0.13.56 154.8K downloads/30d#10,844 on PyPI9
Permissive license MIT Active released

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 asknews

uv

uv add asknews

poetry

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 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

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

Tags

news api python sdkreal-time news data retrievalllm news context integrationnews search and analyticsevent tracking and forecasting apiweb search and knowledge graphfinancial and political analytics
news-apillm-integrationreal-time-data

More WWW/HTTP packages