Skip to main content

AskNews Python SDK

Static Badge

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asknews-0.14.1-py3-none-any.whl (54.7 kB view details)

Uploaded Python 3

File details

Details for the file asknews-0.14.1-py3-none-any.whl.

File metadata

  • Download URL: asknews-0.14.1-py3-none-any.whl
  • Upload date:
  • Size: 54.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for asknews-0.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd7ddb51beca348b568dff064c9fe8ee6712630703c4e3c4ed9b5a4891469bfd
MD5 f7096e483b4b3f2f4f40b459e126bbb7
BLAKE2b-256 1077a2d6294b9a1bb814b9aa98e2909d8e1f22ce6ceb31d7412e18f9faa4b0b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for asknews-0.14.1-py3-none-any.whl:

Publisher: release.yml on emergentmethods/asknews-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.14.3

1 file

0.14.2

1 file

This release

0.14.1 This release

1 file

0.14.0

1 file

0.13.56

1 file

0.13.55

1 file

0.13.54

1 file

0.13.53

1 file

0.13.52

1 file

0.13.51

1 file

0.13.50

1 file

0.13.49

1 file

0.13.48

1 file

0.13.47

1 file

0.13.46

1 file

0.13.45

1 file

0.13.44

1 file

0.13.43

1 file

0.13.42

1 file

0.13.41

1 file

0.13.40

1 file

0.13.39

1 file

0.13.38

1 file

0.13.37

1 file

0.13.36

1 file

0.13.35

1 file

0.13.34

1 file

0.13.33

1 file

0.13.32

1 file

0.13.31

1 file

0.13.30

1 file

0.13.29

1 file

0.13.28

1 file

0.13.27

1 file

0.13.26

1 file

0.13.25

1 file

0.13.24

1 file

0.13.23

1 file

0.13.22

1 file

0.13.21

1 file

0.13.20

1 file

0.13.19

1 file

0.13.18

1 file

0.13.17

1 file

0.13.16

1 file

0.13.15

1 file

0.13.14

1 file

0.13.13

1 file

0.13.12

1 file

0.13.11

1 file

0.13.10

1 file

0.13.9

1 file

0.13.8

1 file

0.13.7

1 file

0.13.6

1 file

0.13.5

1 file

0.13.4

1 file

0.13.3

1 file

0.13.2

1 file

0.13.1

1 file

0.13.0

1 file

0.12.5

1 file

0.12.4

1 file

0.12.3

1 file

0.12.2

1 file

0.12.1

1 file

0.12.0

1 file

0.11.32

1 file

0.11.31

1 file

0.11.30

1 file

0.11.29

1 file

0.11.28

1 file

0.11.27

1 file

0.11.26

1 file

0.11.25

1 file

0.11.24

1 file

0.11.23

1 file

0.11.22

1 file

0.11.21

1 file

0.11.20

1 file

0.11.19

1 file

0.11.18

1 file

0.11.17

1 file

0.11.16

1 file

0.11.15

1 file

0.11.14

1 file

0.11.13

1 file

0.11.12

1 file

0.11.11

1 file

0.11.10

1 file

0.11.9

1 file

0.11.8

1 file

0.11.7

1 file

0.11.6

1 file

0.11.5

1 file

0.11.4

1 file

0.11.3

1 file

0.11.2

1 file

0.11.1

1 file

0.11.0

1 file

0.10.4

1 file

0.10.3

1 file

0.10.2

1 file

0.10.1

1 file

0.10.0

1 file

0.9.2

1 file

0.9.1

1 file

0.9.0

1 file

0.8.0

1 file

0.7.58

1 file

0.7.57

1 file

0.7.56

1 file

0.7.55

1 file

0.7.54

1 file

0.7.53

1 file

0.7.52

1 file

0.7.51

1 file

0.7.50

1 file

0.7.49

1 file

0.7.48

1 file

0.7.47

1 file

0.7.46

1 file

0.7.45

1 file

0.7.44

1 file

0.7.43

1 file

0.7.42

1 file

0.7.41

1 file

0.7.40

1 file

0.7.39

1 file

0.7.38

1 file

0.7.37

1 file

0.7.36

1 file

0.7.35

1 file

0.7.34

1 file

0.7.33

1 file

0.7.32

1 file

0.7.31

1 file

0.7.30

1 file

0.7.29

1 file

0.7.28

1 file

0.7.27

1 file

0.7.26

1 file

0.7.25

1 file

0.7.24

1 file

0.7.23

1 file

0.7.22

1 file

0.7.21

1 file

0.7.20

1 file

0.7.19

1 file

0.7.18

1 file

0.7.17

1 file

0.7.16

1 file

0.7.15

1 file

0.7.14

1 file

0.7.13

1 file

0.7.12

1 file

0.7.11

1 file

0.7.10

1 file

0.7.9

1 file

0.7.8

1 file

0.7.7

1 file

0.7.5

1 file

0.7.4

1 file

0.7.3

1 file

0.7.2

1 file

0.7.1

1 file

0.7.0

1 file

0.6.11

1 file

0.6.10

1 file

0.6.9

1 file

0.6.8

1 file

0.6.7

1 file

0.6.6

1 file

0.6.5

1 file

0.6.4

1 file

0.6.3

1 file

0.6.2

1 file

0.6.1

1 file

0.6.0

1 file

0.5.5

1 file

0.5.4

1 file

0.5.3

1 file

0.5.2

1 file

0.5.1

1 file

0.5.0

1 file

0.4.0

1 file

0.3.13

1 file

0.3.12

1 file

0.3.11

1 file

0.3.10

1 file

0.3.9

1 file

0.3.8

1 file

0.3.7

1 file

0.3.6

1 file

0.3.5

1 file

0.3.4

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page