AgentAPIGate
Back to Catalog
GET /v1/substack/publication/archivePack: social·MCP Tool: substack_publication_archive

Substack Publication Top & Recent Archive

Fetch top or latest newsletter posts from any Substack subdomain or custom Substack domain with reactions, comments, restacks, wordcount, tags, authors, audience, and canonical URLs.

API Key Price:$0.0010 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
Substack handle (e.g. "simonw"), <pub>.substack.com, or custom Substack domain (e.g. "blog.bytebytego.com")
Sort order: top (highest engagement) or new (latest chronological)
Max posts returned per page (1-12)
Pagination offset (default 0)
Get $0.25 Free Key →
curl -sG "https://api.agentapigate.ai/v1/substack/publication/archive" \
  --data-urlencode "publication=simonw.substack.com" \
  --data-urlencode "sort=top" \
  --data-urlencode "limit=10" \
  --data-urlencode "format=md" \
  -H "Authorization: Bearer aag_live_YOUR_KEY" \
  -H "X-AAG-Max-Cost: 0.0100"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-89% tokens
# Substack Publication Top & Recent Archive (`substack.publication.archive`)
**publication**: simonw.substack.com · **sort**: top · **count**: 10

## posts
- [1] id: 184400226, title: First impressions of Claude Cowork, Anthropic’s general agent, subtitle: Plus Fly’s new Sprites.dev addresses both developer sandboxes and API sandboxes at the same time, slug: first-impressions-of-claude-cowork, post_date: 2026-01-13T04:25:54.893Z
- [2] id: 176459746, title: Claude Skills are awesome, maybe a bigger deal than MCP, subtitle: Plus Claude Haiku 4.5, slug: claude-skills-are-awesome-maybe-a, post_date: 2025-10-17T23:47:01.447Z
- [3] id: 189200830, title: Agentic Engineering Patterns, subtitle: Plus vibe coding my dream macOS presentation app, Gemini 3.1 Pro and lots more, slug: agentic-engineering-patterns, post_date: 2026-02-27T06:05:13.207Z
- [4] id: 201817505, title: Claude Fable is relentlessly proactive, subtitle: I have a lot to say about Anthropic's new Mythos-class model, slug: claude-fable-is-relentlessly-proactive, post_date: 2026-06-13T00:19:43.494Z
- [5] id: 211490758, title: Qwen 3.8 27B is excellent, but it defaults to wildly overthinking things, subtitle: Plus Gemini 3.7 Flash, Muse Glimmer, and DeepSeek V4 Pro 0813, slug: qwen-38-27b-is-excellent-but-it-defaults, post_date: 2026-08-17T00:33:31.468Z
- [6] id: 166160113, title: The lethal trifecta for AI agents, subtitle: Plus reviews of two new papers about prompt injection, and Anthropic's tips on building multi-agent LLM systems, slug: the-lethal-trifecta-for-ai-agents, post_date: 2025-06-17T15:14:09.764Z
- [7] id: 199683963, title: I think Anthropic and OpenAI have found product-market fit, subtitle: Plus Claude Opus 4.8: “a modest but tangible improvement”, and the Pope!, slug: i-think-anthropic-and-openai-have, post_date: 2026-05-29T02:19:56.739Z
- [8] id: 217851004, title: 2026 in LLMs (so far), subtitle: Plus Claude Opus 5.5, GPT-6 Sol, GPT-6 Luna, and a new price war, slug: 2026-in-llms-so-far, post_date: 2026-09-28T16:42:27.944Z
- [9] id: 198348844, title: The last six months in LLMs in five minutes, slug: the-last-six-months-in-llms-in-five, post_date: 2026-05-19T04:30:21.161Z, type: newsletter
- [10] id: 186383691, title: Moltbook is the most interesting place on the internet right now, subtitle: Plus Datasette 1.0a24, slug: moltbook-is-the-most-interesting, post_date: 2026-01-31T06:29:39.452Z

Endpoint Parameters, Cost & Token Economy Reference

Endpoint ID: substack.publication.archive · Method: GET
ParameterTypeReqSample / DefaultDescription
publicationstringrequiredsimonw.substack.comSubstack handle (e.g. "simonw"), <pub>.substack.com, or custom Substack domain (e.g. "blog.bytebytego.com")
sortstringoptionaltopSort order: top (highest engagement) or new (latest chronological)
limitnumberoptional10Max posts returned per page (1-12)
offsetnumberoptional0Pagination offset (default 0)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0010 / call$0/mo · Balance never expires
Remote MCP Toolsubstack_publication_archiveOAuth 2.1 Hub & /mcp/social
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency59 ms$0 billed on empty or 4xx/5xx
Token Economy5486t → 629t (-89%)Partner credit: eligible

More substack.publication Sibling Endpoints

Frequently Asked Questions

How do I call Substack Publication Top & Recent Archive (substack.publication.archive) over REST and Remote MCP?

Send GET requests to https://api.agentapigate.ai/v1/substack/publication/archive with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool substack_publication_archive on https://mcp.agentapigate.ai/mcp.

What does substack.publication.archive cost per call and are failed calls billed?

Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.

How does ?format=md or ?format=compact optimize AI agent token usage on substack.publication.archive?

Passing ?format=md transforms the response into normalized Markdown (~629 tokens vs ~5486 raw tokens, saving 89% of LLM context budget) while preserving structured JSON via ?format=json.

Can I restrict an AI agent key to only social endpoints with a daily USD cap?

Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["social"], optional allowed_endpoints: ["substack.publication.archive"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.