News Media
Substack logo

Substack API

substack.com

Substack - post search, trending content, publication archives, full posts, and categories.

Actions
5
Category
News Media
Login
Not required
Output
JSON

Call the Substack API

Submit a task, then poll the job until it settles. This example runs sb_post_details.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "sb_post_details",
    "params": {
      "subdomain": "aaronparnas",
      "slug": "breaking-news-im-a-dad"
    }
  }'

5 actions on substack.com

Read

  • Post Details

    sb_post_detailsread1 credit / call

    Returns full post content by subdomain and slug including body, reactions, comments, and podcast info.

    subdomain
    string · required
    slug
    string · required
  • Post Search

    sb_searchread1 credit / call

    Returns posts by keyword with title, author, publication, reactions, comments, and restacks.

    query
    string · required
  • Publication Posts

    sb_publication_postsread1 credit / call

    Returns posts from a publication by subdomain with title, slug, reactions, comments, and author.

    subdomain
    string · required
    limit
    integer
    offset
    integer
  • Substack Categories

    sb_categoriesread1 credit / call

    Returns all categories and subcategories with names, slugs, emojis, and descriptions.

  • Trending Posts

    sb_trendingread1 credit / call

    Returns currently trending posts with reactions, comments, word count, and author info.

    limit
    integer

Substack API questions

Is there an API for Substack?
Substack does not offer a public data API for this, but Anakin Wire provides 5 maintained endpoints for substack.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape Substack data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when substack.com changes its markup, Anakin updates the action.
Do I need a Substack account?
No. Every Substack action listed here runs anonymously — no account and no credentials required.
What does the Substack API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More News Media APIs

All News Media sites