# Substack API

Search Substack publications, posts, comments and notes to retrieve author details, engagement counts and subscriber data.

Publication URLs need a handle that can be read from the URL. Custom domains are not always recognized.

- Request: POST https://api.everyinfra.com/api/v1/social with `{"platform": "substack", "action": "<action>", "params": {...}}`
- Canonical page: [https://everyinfra.com/en/substack-api](https://everyinfra.com/en/substack-api?utm_medium=ai_doc&utm_campaign=page_md)
- Each capability uses the price recorded in the public catalog. The response includes the amount charged. Authentication failures, invalid parameters, failed calls, and empty results are not charged.

## Actions

### search — Search
Discover Substack newsletters that match a keyword, with each publication's name, handle, custom domain, language, author and top posts. It matches publications rather than the text of posts, and a null subscriber count means hidden, not zero.
- Sync delivery · Price: $1.39 per 1,000 requests (every 10 rows count as one call)
- Catalog values: defaultLimit=10, maxLimit=30. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `keyword` (required): Specifies the discovery query string for locating Substack newsletters and publications. It does not perform full-text searches across post bodies.
- Returns fields: id, handle, name, url, custom_domain, bio, language, subscriber_count, payments_enabled, avatar_url, cover_url, platform, author_name, author_username, top_posts
- Capability page: [https://everyinfra.com/en/substack-api/search](https://everyinfra.com/en/substack-api/search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/substack-api/search.md)

### publication — Publication
Look up a Substack publication from its homepage link and get its name, handle, custom domain, language, author, top posts and subscriber count when disclosed. The link needs a recognizable Substack handle, since custom domains may not parse, and nothing comes from the author's dashboard.
- Sync delivery · Price: $1.39 per 1,000 requests
- Parameters:
  - `url` (required): Specifies the target Substack resource link. Use publication homepages for publication and publication_posts, or direct /p/ post links for post and comments. The publication action requires a URL containing a recognizable Substack handle (custom domains may not parse), whereas publication_posts accepts custom domain links directly.
- Returns fields: id, handle, name, url, custom_domain, bio, language, subscriber_count, payments_enabled, avatar_url, cover_url, platform, author_name, author_username, top_posts
- Capability page: [https://everyinfra.com/en/substack-api/publication](https://everyinfra.com/en/substack-api/publication?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/substack-api/publication.md)

### publication_posts — Publication posts
List posts from a Substack publication. Each post has title, subtitle, author, likes, comments, word count, reading time and paid status. Narrow by format with `content_type` or by date with `since` and `until`. Paywalled text stays locked, and one batch may not cover the whole archive.
- Sync delivery · Price: $1.39 per 1,000 requests (every 10 rows count as one call)
- Catalog values: defaultLimit=10, maxLimit=30. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `url` (required): Specifies the target Substack resource link. Use publication homepages for publication and publication_posts, or direct /p/ post links for post and comments. The publication action requires a URL containing a recognizable Substack handle (custom domains may not parse), whereas publication_posts accepts custom domain links directly.
  - `content_type` (optional): Filters publication posts by content format using all_types, newsletter_posts_only, podcast_episodes_only, or threads_only. Field presence must be verified against specific post links, and setting this value does not unlock paywalled content. One of: all_types, newsletter_posts_only, podcast_episodes_only, threads_only.
  - `since` (optional): Specifies the start date string for filtering posts or activity feeds within a date range. Its presence in shared profile or publication parameters does not enable account creation date filtering.
  - `until` (optional): Specifies the end date string for filtering posts or activity feeds alongside since. This parameter does not represent subscription expiration dates or trigger complete historical archive exports.
- Returns fields: id, url, title, subtitle, text, author_name, author_username, publication_name, publication_handle, publication_url, like_count, comment_count, repost_count, word_count, reading_time_minutes, post_type, audience, is_paid, podcast_url, image_url, posted_at, updated_at, tags, platform
- Capability page: [https://everyinfra.com/en/substack-api/publication_posts](https://everyinfra.com/en/substack-api/publication_posts?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/substack-api/publication_posts.md)

### post — Post details
Read a single Substack post from its /p/ link. Get title, subtitle, body text, author, publication, engagement counts and whether it is paid content. Paywalled text is not unlocked. Comments come from the separate `comments` action.
- Sync delivery · Price: $1.39 per 1,000 requests
- Parameters:
  - `url` (required): Specifies the target Substack resource link. Use publication homepages for publication and publication_posts, or direct /p/ post links for post and comments. The publication action requires a URL containing a recognizable Substack handle (custom domains may not parse), whereas publication_posts accepts custom domain links directly.
- Returns fields: id, url, title, subtitle, text, author_name, author_username, publication_name, publication_handle, publication_url, like_count, comment_count, repost_count, word_count, reading_time_minutes, post_type, audience, is_paid, podcast_url, image_url, posted_at, updated_at, tags, platform
- Capability page: [https://everyinfra.com/en/substack-api/post](https://everyinfra.com/en/substack-api/post?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/substack-api/post.md)

### comments — Comments
Pull the comments under a Substack post. Get author, likes, reply count, and flags for replies, pinned comments and remarks by the post's own author. Pass the post's /p/ link. The batch may not hold the whole conversation.
- Sync delivery · Price: $1.39 per 1,000 requests (every 20 rows count as one call)
- Catalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `url` (required): Specifies the target Substack resource link. Use publication homepages for publication and publication_posts, or direct /p/ post links for post and comments. The publication action requires a URL containing a recognizable Substack handle (custom domains may not parse), whereas publication_posts accepts custom domain links directly.
- Returns fields: id, text, author_name, author_username, like_count, reply_count, reply_to_id, is_reply, is_pinned, is_author, posted_at, platform
- Capability page: [https://everyinfra.com/en/substack-api/comments](https://everyinfra.com/en/substack-api/comments?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/substack-api/comments.md)

### profile — Profiles
Find a Substack writer's profile from their handle. Get display name, bio, avatar, linked Twitter username and the publications tied to the account. It accepts a plain handle, an @handle or a substack.com/@ link. It describes the person, not a publication, and shows no subscription data.
- Sync delivery · Price: $1.39 per 1,000 requests
- Parameters:
  - `username` (required): Specifies the target creator handle for profile or notes, accepted as a plain handle (with optional @ prefix) or a full substack.com/@user link. The notes action fetches short creator updates rather than long-form publication posts.
- Returns fields: user_id, username, display_name, bio, avatar_url, twitter_username, platform, publications
- Capability page: [https://everyinfra.com/en/substack-api/profile](https://everyinfra.com/en/substack-api/profile?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/substack-api/profile.md)

### notes — Notes
Collect a Substack writer's Notes, the short posts kept apart from newsletters, with text, kind, likes and publish time for each. It lists one writer's Notes only, not a sitewide search, and may not reach the full history.
- Sync delivery · Price: $1.39 per 1,000 requests (every 25 rows count as one call)
- Catalog values: defaultLimit=25, maxLimit=200. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `username` (required): Specifies the target creator handle for profile or notes, accepted as a plain handle (with optional @ prefix) or a full substack.com/@user link. The notes action fetches short creator updates rather than long-form publication posts.
- Returns fields: id, kind, text, author_username, author_name, like_count, posted_at, platform, restacked_post, attachment_urls
- Capability page: [https://everyinfra.com/en/substack-api/notes](https://everyinfra.com/en/substack-api/notes?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/substack-api/notes.md)

## Substack API questions

### What can I retrieve with the Substack API?

Set `platform` to `substack`. The current catalog lists search, publication, publication posts, post details, comments, and more. These action names identify different Substack objects or views; they are not interchangeable search modes.

### Which input starts the Substack `search` request?

Specifies the discovery query string for locating Substack newsletters and publications. It does not perform full-text searches across post bodies. Send it as `keyword` inside `params`.

### Which fields can Substack `search` return?

Its declared schema includes `handle`, `name`, `custom_domain`, and `bio`. A declared field can still be absent from an individual record, and every other action has its own field list.

### Does every Substack action return immediately?

Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add `"mode": "async"` to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog?platform=substack
- API guide for AI clients: https://everyinfra.com/llms.txt · agents guide: https://everyinfra.com/agents.md
