| Title: | Access Substack Data via API |
|---|---|
| Description: | Fetch latest, top, search or single posts from a Substack publication. |
| Authors: | Jason R. [aut, cre] |
| Maintainer: | Jason R. <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.0.9 |
| Built: | 2026-05-14 06:34:36 UTC |
| Source: | https://github.com/posocap/substackr |
Fetch the latest posts from a Substack publication.
get_substack_latest(publication_url, limit = 10L, offset = 0L)get_substack_latest(publication_url, limit = 10L, offset = 0L)
publication_url |
Character, e.g. |
limit |
Integer |
offset |
Integer |
A data.frame (possibly zero‐row) of post records.
Fetch a single post by its slug. Returns a one‐row data.frame, or
zero‐row if not found.
get_substack_post(publication_url, slug)get_substack_post(publication_url, slug)
publication_url |
Character. |
slug |
Character. Post slug. |
A data.frame with one row (or zero rows if missing).
Search posts in a Substack publication. If zero results, returns an empty data.frame.
get_substack_search(publication_url, query, limit = 10L, offset = 0L)get_substack_search(publication_url, query, limit = 10L, offset = 0L)
publication_url |
Character, e.g. |
query |
Character. Search term. |
limit |
Integer |
offset |
Integer |
A data.frame (possibly zero‐row).
Fetch the most popular posts from a Substack publication.
get_substack_top(publication_url, limit = 10L, offset = 0L)get_substack_top(publication_url, limit = 10L, offset = 0L)
publication_url |
Character, e.g. |
limit |
Integer |
offset |
Integer |
A data.frame (possibly zero‐row) of post records.
Store your key once per session. Subsequent calls to other functions will use this key automatically.
set_substack_key(key)set_substack_key(key)
key |
A single string: your Substack API key. |
Invisibly TRUE if successful.