SubstackAPI
API for Substack publications to access their content in their own applications.
Install / Use
/learn @Noah-Bjorner/SubstackAPIREADME
An unofficial, open-source API for accessing and displaying Substack content in external applications. It combines Substack’s unofficial API and RSS feeds for reliability and performance.
📌 Official Website: substackapi.dev – Find the latest guides, documentation, and updates.
Features
- Fast and reliable access to publication content
- Simple authentication using API keys
- Redis-powered caching for optimal performance
- Generous rate limits
- Free to use
Getting Started
1. Generate an API Key
Visit auth.substackapi.dev to create your API key. You'll need your Substack publication URL.
2. Try the API
You can try out all endpoints and see detailed documentation at substackapi.dev/endpoints.
3. Make API Requests
Include your API key in the X-API-Key header when making requests:
curl https://api.substackapi.dev/posts/latest?publication_url=example.substack.com \
-H "X-API-Key: your_api_key_here"
Available Endpoints
/posts/latest- Get the latest posts/posts/top- Get the most popular posts/posts/search- Search for posts/post- Get a single post by slug
Usage Guidelines
- This API is intended for content owners accessing their own Substack publication data
- Each API key is limited to accessing a single publication
- Rate limits apply per endpoint (see Usage Limits)
- Test API key available:
sk_test_9b0j6a1bdbf4f38b1
Technical Overview
The API implements a simple hybrid approach combining:
- Substack's unofficial API (primary data source)
- RSS Feed (fallback mechanism)
- Redis caching layer
flowchart LR
Client[API Client]
Cache[(Redis Cache)]
API[Unofficial API]
RSS[RSS Feed]
Client --> Cache
Cache -- "Cache Miss" --> API
API -- "Error" --> RSS
API --> Cache
RSS --> Cache
Cache --> Client
This architecture ensures:
- Reliable and unlimited access to publication data
- Minimal dependency on unofficial APIs
- Fast response times
- High availability through fallback mechanisms
For more technical details, visit Technical Overview.
Author
Created and maintained by Noah Bjorner
- 📧 Email: bjornernoah@gmail.com
- 🛠 GitHub: @Noah-Bjorner
License
This project is licensed under the MIT License - see the LICENSE file for details.
Related Skills
qqbot-channel
346.8kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.1k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
346.8kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Design
Campus Second-Hand Trading Platform \- General Design Document (v5.0 \- React Architecture \- Complete Final Version)1\. System Overall Design 1.1. Project Overview This project aims t
