Substack's newsletter platform now has an API wrapper, for easy access to latest posts.
Substack API is an unofficial Python client library for interacting with Substack newsletters and content. It provides interfaces to retrieve newsletter posts, podcasts, and recommendations, get user profile information and subscriptions, fetch post content and metadata, search for posts within a newsletter, browse categories, and access publication subscriber chats and threads. The library also supports accessing paywalled content using user-provided authentication cookies from a logged-in Substack session.
The library is installable via pip or uv and includes a command-line interface for retrieving posts, searching, fetching post metadata, looking up user subscriptions, and browsing categories, with JSON output by default. It also includes automatic handling of Substack account handle changes, following redirects when a user has renamed their account, with an option to disable this behavior or manually resolve handle redirects.
This is intended for Python developers who want programmatic access to Substack content, including their own paywalled or subscribed newsletters, through either the Python API or the CLI.
It is an unofficial Python client for interacting with Substack newsletters, posts, users, and chats via Substack's unofficial API.
Install with pip install substack-api or uv add substack-api.
Yes, by providing your own exported session cookies from a logged-in Substack account via the SubstackAuth class.
Yes, it includes a CLI that outputs JSON by default and supports commands for newsletters, posts, users, and categories.
It is released under the MIT license.
Show your product to thousands of developers
ยท 100k monthly pageviews
ยท 7k newsletter subscribers
Get or Search Latest Breaking News with ML Powered Summaries ๐ค.
AI-powered news intelligence API delivering structured events with risk assessment, sentiment analysis, company impacts, geo tagging, ai generated summary and more.
Spaceflight related news ๐.
Access all the content the Guardian creates, categorised by tags and section.
RSS reader.
Aggregated headlines, top story and live news JSON API.