Python SDK
Athena provides a Python package to make it easier to work with our APIs.
https://pypi.org/project/athenanewsapi/
First, install the package:
pip install athenanewsapi
If you haven't already, go ahead and create an Athena News API account.
From there, you can run searches without ever having to touch the APIs.
Python SDK Parameter Reference
start_date (str): ISO formatted start date.
end_date (str): ISO formatted end date.
query (str): The search query.
key_phrases (str): Key phrases to refine the search. (ex:
('elon' or 'musk') and not 'sam altman'
)toggle_state (str): The toggle state (e.g., "All Articles" or "Encoded Articles").
api_key (str): Your Athena API key.
Last updated