AskNews Python SDK
Python SDK for the AskNews API.
Installation
pip install asknews
Usage
from asknews_sdk import AskNewsSDK
ask = AskNewsSDK(
api_key="<YOUR API KEY>"
scopes=["news", "chat", "stories", "analytics"]
)
query = "Effect of fed policy on tech sector"
# prompt-optimized string ready to go for any LLM:
news_context = ask.news.search_news(query).as_string
And you will have a prompt-optimized string ready to go for any LLM. The API doesn't stop there, explore a wide range of endpoints:
- /stories, high level event tracking and state of the art article clustering
- /forecasts, industry leading forecasting on any real-time event
- /analytics, time-series data on finance and politics
- /deepnews, a deep research agent that can explore the new knowledge graph, X, Reddit, Google, Wikipedia and more to build forecasts, reports, analytics, and anything else your system may need.
- /graph, build any news knowledge graph imaginable from the largest news graph on the planet
- /websearch, search the web and get back an LLM distillation of all the relevant web pages
Find full details at the AskNews API documentation.
Support
Join our Discord to see what other people are building, and to get support with your projects.
Metadata
Release files for asknews 0.14.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asknews-0.14.4-py3-none-any.whl | Python 3 | none | any | Details |
Release files / asknews-0.14.4-py3-none-any.whl
| Download URL | asknews-0.14.4-py3-none-any.whl |
|---|---|
| Size | 54.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5fddd3b10e713b099a039a36ad395862485b1850b603c33041b7a44873fc153
|
|
BLAKE2b-256 checksum How to use checksums |
f154838964931e0f9c117665192f5a1e523e333464931f3bb90c9606807293d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency log