[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [Substack post text](https://spiral.ai/integrations/claude-code/substack-post-text)

# How to Use Substack post text in Claude Code

Get one post's metadata and body text from its link. Use it to check an argument or summarize an article; free posts return complete text, while paid posts return the public preview.

|  |  |
| --- | --- |
| Model | Substack post text |
| Available through | Alexandria |
| Category | News & Media |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Substack post text in Claude Code

- Use Substack post text for https://www.noahpinion.blog/p/the-second-trump-presidency-is-a. Add a brief summary to this project's research notes and label it if only a preview is available.
- Use Substack post text to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Substack post text and tell me what changed since last week.
- Check Substack post text and summarize what you find in three bullet points.
- Pull the newest data from Substack post text and give me the result as a table.

## How to set up Substack post text in Claude Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Substack post text**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "substack-com/newsletters/post",
    "input": {
      "url": "<url>"
    }
  }'
```

Then paste one of the prompts above: Claude Code finds Substack post text on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## Substack post text tools and prices

- [Substack · Post](https://spiral.ai/tools/alexandria/substack-com/newsletters/post) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | https://<publication host>/p/<slug> or https://open.substack.com/pub/<slug>/p/<slug>. Provide url, or publication and slug. Pattern: ^https?://. |
| slug |  | — | Pattern: ^[A-Za-z0-9._-]+$. |
| publication |  | — | Substack slug or a declared custom publication host (www.astralcodexten.com, www.lennysnewsletter.com, www.noahpinion.blog). Other custom domains are not supported by this program. |

## What can you do with Substack post text in Claude Code?

Build a linked research brief from Substack publication listings and available article text. A coding agent can turn the results into project notes that separate complete articles from paid previews.

### Prepare a newsletter reading brief

Browse recent publication entries, find articles about a chosen subject, and summarize the available text with links. Label paid previews so readers know which summaries cover only part of an article.

### Check an editorial pitch

Review a newsletter's recent titles, search the proposed subject, and read relevant public articles before pitching. Turn the findings into a short list of covered angles and questions still worth investigating.

### Compare published arguments

Select articles from public newsletters covering the same issue. Use their listings and available text to compare claims, dates, and supporting examples in a linked research memo.

### Build a topic reading list

Find relevant titles in a publication's archive or topic results, then inspect the available articles to write useful reading notes. Keep links and distinguish complete articles from previews.

### Prepare interview questions

Review a public newsletter's recent coverage and search an interview topic. Read selected articles to draft questions tied to the publication's actual claims and examples.

### Review product management advice

Find relevant Lenny's Newsletter articles through recent listings or topic searches. Compare the available text to identify recommendations a product team could discuss, with a source link for each.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## Substack post text in other agents

- [Amp](https://spiral.ai/integrations/amp/substack-post-text)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/substack-post-text)
- [Claude](https://spiral.ai/integrations/claude-desktop/substack-post-text)
- [Cline](https://spiral.ai/integrations/cline/substack-post-text)
- [Codex](https://spiral.ai/integrations/codex/substack-post-text)
- [Cursor](https://spiral.ai/integrations/cursor/substack-post-text)
- [Devin](https://spiral.ai/integrations/devin/substack-post-text)
- [dots](https://spiral.ai/integrations/dots/substack-post-text)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/substack-post-text)
- [Gemini](https://spiral.ai/integrations/gemini/substack-post-text)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/substack-post-text)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/substack-post-text)
- [goose](https://spiral.ai/integrations/goose/substack-post-text)
- [Grok](https://spiral.ai/integrations/grok/substack-post-text)
- [Grok Build](https://spiral.ai/integrations/grok-build/substack-post-text)
- [Hermes](https://spiral.ai/integrations/hermes/substack-post-text)
- [Instinct](https://spiral.ai/integrations/instinct/substack-post-text)
- [Manus](https://spiral.ai/integrations/manus/substack-post-text)
- [Muse](https://spiral.ai/integrations/muse/substack-post-text)
- [Muse Code](https://spiral.ai/integrations/muse-code/substack-post-text)
- [n8n](https://spiral.ai/integrations/n8n/substack-post-text)
- [Notion](https://spiral.ai/integrations/notion/substack-post-text)
- [OpenClaw](https://spiral.ai/integrations/openclaw/substack-post-text)
- [opencode](https://spiral.ai/integrations/opencode/substack-post-text)
- [Perplexity](https://spiral.ai/integrations/perplexity/substack-post-text)
- [Raycast](https://spiral.ai/integrations/raycast/substack-post-text)
- [VS Code](https://spiral.ai/integrations/vscode/substack-post-text)
- [Windsurf](https://spiral.ai/integrations/windsurf/substack-post-text)
- [Zapier](https://spiral.ai/integrations/zapier/substack-post-text)

## More Claude Code guides

- [Spaceflight News API topic news](https://spiral.ai/integrations/claude-code/spaceflight-news-api-topic-news)
- [Substack publication archive](https://spiral.ai/integrations/claude-code/substack-publication-archive)
- [Spaceflight News API launch coverage](https://spiral.ai/integrations/claude-code/spaceflight-news-api-launch-coverage)
- [Substack publication search](https://spiral.ai/integrations/claude-code/substack-publication-search)
- [Spaceflight News API item details](https://spiral.ai/integrations/claude-code/spaceflight-news-api-item-details)
- [TMDB TV season episodes](https://spiral.ai/integrations/claude-code/tmdb-tv-season-episodes)

## Questions about Substack post text in Claude Code

**Can Claude Code use Substack post text?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Substack post text like any built-in tool.

**How much does Substack post text cost in Claude Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

**Do I need an Alexandria account to use Substack post text in Claude Code?**

No. Spiral runs Substack post text on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Substack post text in Claude Code?**

About two minutes: add the hosted server, then sign in.

**Does Claude Code wait while Substack post text runs?**

Substack post text runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

**Does a publication's website contain every email it sends?**

No. Substack posts addressed to free subscribers only are sent by email and do not appear on the publication page, so a public archive cannot represent every email.

**How much of a paid post is public?**

The writer decides where the paywall falls within the post. Public previews therefore vary in length, and post retrieval returns the preview for paid content.

**Can an older free article become paywalled?**

Yes. Substack lets publishers automatically paywall their free archive after a chosen period, so an article's public availability can change as it ages.

**Can published articles change after their original release?**

Yes. Writers can edit published posts, and those edits appear on the web and in Substack's apps. The available article can therefore differ from an earlier reading.

**Does the displayed publication date prove when an article first appeared?**

No. Substack allows writers to change a published post's displayed date to a past date, so that date alone does not establish its first public appearance.

