The REST API
for Substack
Pull structured data from any newsletter. Publications, posts, authors, comments, and paywall boundaries — through six clean JSON endpoints.
Everything you need
from Substack
Six endpoints covering the full data model. From publication metadata to recursive comment threads. View all features →
Three steps to structured data
From sign-up to your first API call in under a minute.
Create an account
Sign up with email or GitHub. No credit card required for the free tier.
Generate an API key
Create a key from your dashboard. Use it in the Authorization header.
Start pulling data
Hit any of the six endpoints. Responses come back as clean, typed JSON.
Drop-in simple
Standard REST. Bearer auth. JSON responses. Works with any language or HTTP client.
const response = await fetch(
"https://stackhooks.com/v1/publications/platformer/posts?limit=5",
{
headers: {
Authorization: "Bearer sk_live_abc123...",
},
}
);
const { data, pagination } = await response.json();
for (const post of data) {
console.log(post.title);
console.log(post.is_paid ? " (paid)" : " (free)");
console.log(` ${post.word_count} words, ${post.like_count} likes`);
}Predictable pricing
Start free. Upgrade when you need more throughput.
Pro
- 5,000 requests / day
- 60 requests / minute
- All 6 endpoints
- 5 API keys
- Paywalled content access
- Priority support
Business
- 50,000 requests / day
- 200 requests / minute
- All 6 endpoints
- 5 API keys
- Paywalled content access
- Dedicated support
Start building today
Create a free account, generate your API key, and start pulling structured Substack data in minutes.