The substackR
package allows users to interact with the
Substack API to retrieve various types of data from Substack
publications. This includes fetching the latest posts, top posts,
searching for specific content, and retrieving individual posts by their
slug.
You can install the package from GitHub using the following command:
Before using the package, you need to set your Substack API key:
To fetch the latest posts from a Substack publication, use the
get_substack_latest
function:
You can also retrieve the most popular posts:
To search for specific posts, use the
get_substack_search
function:
To get a single post by its slug:
The substackR
package provides a simple and effective
way to access Substack data, making it easier for developers and
researchers to work with content from Substack publications.