APIs / Social media / Substack
1 credit per call4 endpointsChecked working 6 Dec 2026
Substack API
Substack API for publication details, public posts, single posts and comments as JSON. Four endpoints, one key, 1 credit per call.
curl "https://api.perceptlayer.com/v1/substack/posts?publication=slowboring&sort=new&offset=0&limit=2" \
-H "X-API-Key: $API_KEY"Playground
Run this API
curl "https://api.perceptlayer.com/v1/substack/posts?publication=slowboring&sort=new&offset=0&limit=2" \
-H "X-API-Key: $API_KEY"Substack · 4 endpoints
Endpoints
Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
GET/v1/substack/comments | publicationpost_idNeeds terms | idauthordatetextlikes | 1 credit |
GET/v1/substack/post | publicationslugNeeds terms | post | 1 credit |
GET/v1/substack/posts | publication+4 optionalNeeds terms | idtitleslugauthordatelikes+3 more | 1 credit |
GET/v1/substack/publication | publicationNeeds terms | publication | 1 credit |
Overview
About the Substack API
What you can get
The Substack API returns public Substack data as JSON through 4 endpoints. Every endpoint takes a publication. These are restricted endpoints: the restricted-endpoint terms apply, and they don't permit collecting personal data without a lawful basis or using it to contact people.
- Publications:
publicationreturns one publication's details. - Posts:
postslists a publication's posts, withsort(new or top),offsetandlimit. - One post:
posttakes the post'sslug. - Comments:
commentstakes apost_id.
How a call works
Use the publication's name: GET /v1/substack/posts?publication=...&sort=new&limit=10 with your key in the X-API-Key header lists its latest posts. Read one in full with post and its slug, and its comments with comments and its post_id. Every successful call costs 1 credit; failed calls cost nothing.
More social media APIs
Use cases
Archive a newsletter's public posts
Use the Substack API to archive a newsletter's public postsTrack what publications in your field are writing about
Use the Substack API to track what publications in your field are writing aboutFeed public posts into a reading or summarising agent
Use the Substack API to feed public posts into a reading or summarising agentReview public discussion on posts through their comments
Use the Substack API to review public discussion on posts through their commentsFAQ
Questions
Is there a Substack API key?
No key from Substack is needed. You call this Substack API with your Perceptlayer key in the `X-API-Key` header, after accepting the restricted-endpoint terms.
How much does the Substack API cost?
Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.
What format are responses in?
Every endpoint returns JSON, with no HTML parsing on your side.
Is this the official Substack API?
No. Perceptlayer is an independent service and is not affiliated with Substack. It returns Substack data as JSON with a Perceptlayer key, so there is no Substack developer account, app review or partner approval to get first. It only reads data: if Substack has an official API and you need to act on your own Substack account, such as posting, managing orders or reading private data, use that one.
Should I build a Substack scraper instead?
You can, but a Substack scraper is code you maintain: page changes break it, requests get blocked, and Substack's terms govern how you collect data. The Substack API gives you 4 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first. Some of these endpoints return social or personal data and need the restricted-endpoint terms; collect only what you have a lawful basis for.
Try the Substack API with 100 free credits
No credit card. Failed calls are never billed.