Substack Post Metadata & Engagement Summary
Retrieve Substack post metadata, subtitle, summary excerpt, wordcount, reaction/comment/restack counts, tags, authors, and canonical URL by publication and slug (excludes full body_html).
curl -sG "https://api.agentapigate.ai/v1/substack/post/detail" \ --data-urlencode "publication=simonw.substack.com" \ --data-urlencode "slug=first-impressions-of-claude-cowork" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Substack Post Metadata & Engagement Summary (`substack.post.detail`) **found**: true · **publication**: simonw.substack.com · **slug**: first-impressions-of-claude-cowork · **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 · **post_date**: 2026-01-13T04:25:54.893Z · **reaction_count**: 132 · **comment_count**: 9 · **restacks**: 7 · **canonical_url**: https://simonw.substack.com/p/first-impressions-of-claude-cowork
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:substack.post.detail · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| publication | string | required | simonw.substack.com | Substack handle (e.g. "simonw"), <pub>.substack.com, or custom Substack domain |
| slug | string | required | first-impressions-of-claude-cowork | Post URL slug (e.g. "first-impressions-of-claude-cowork") |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | substack_post_detail | OAuth 2.1 Hub & /mcp/social |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 83 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 638t → 142t (-80%) | Partner credit: eligible |
More Social & Video Real-Time APIs
Fetch TikTok account profile bio, verification badge, follower count, heart count, and video count.
List recent short videos posted by a TikTok creator with view, like, comment, and share counts.
Fetch full metadata, audio track, author details, and engagement metrics for a TikTok video URL or ID.
Fetch top comments on a TikTok video URL or ID with author handles and like counts.
Search TikTok short videos by keyword with view, like, and creator statistics.
Fetch currently trending viral TikTok videos in a target country code.
Frequently Asked Questions
How do I call Substack Post Metadata & Engagement Summary (substack.post.detail) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/substack/post/detail with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool substack_post_detail on https://mcp.agentapigate.ai/mcp.
What does substack.post.detail 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.post.detail?
Passing ?format=md transforms the response into normalized Markdown (~142 tokens vs ~638 raw tokens, saving 80% 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.post.detail"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.