報
Substack API
7 endpointsNews & MediaGlobalsocial:read6 real examples
Returns Substack posts, comments, writer profiles, directory categories and the newsletters within each category.
View as Markdown| GET | /substack/archive | Latest or most liked posts of one Substack publication. |
| GET | /substack/search | Posts of one Substack publication that match the words of a search, newest first. |
| GET | /substack/post | One post of a Substack publication by its slug. |
| GET | /substack/comments | Top-level comments on one post, with the number of replies under each. Replies are not expanded. |
| GET | /substack/user | Public profile of a Substack writer: name, bio and follower count. |
| GET | /substack/categories | Newsletter categories Substack lists in its directory, with their ids for categoryPublications. |
| GET | /substack/categoryPublications | Newsletters in one Substack directory category, 25 per page. |
archive
GET
/v1/substack/archiveLatest or most liked posts of one Substack publication.
scope social:read1 unitcached 30 minpaginated
Parameters
publicationstring required | Publication subdomain, such as astralcodexten for astralcodexten.substack.com. e.g. astralcodexten |
sortstring | new for the newest posts, top for the most liked.newtopdefault newe.g. top |
limitinteger | Number of posts, from 1 to 25. default 10 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
23 fields
audience | string |
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
authors | Author[] |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
id | string |
imageUrl | string |
publishedAt | string |
slug | string |
source | string |
subtitle | string |
summary | string |
title | string |
url | string |
wordCount | integer (int64) |
curl "https://api.hoshime.com/v1/substack/archive?publication=astralcodexten&sort=top" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/substack/archive?publication=astralcodexten&sort=top", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/substack/archive?publication=astralcodexten&sort=top", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "audience": "everyone", "author": { "avatarUrl": "https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.…", "id": "12009663", "name": "Scott Alexander", "url": "", "username": "astralcodexten" }, "authors": [ { "avatarUrl": "https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.…", "id": "12009663", "name": "Scott Alexander", "url": "", "username": "astralcodexten" } ], "id": "184503512", "imageUrl": "https://substack-post-media.s3.amazonaws.com/public/images/5d0d108d-c368-4e1b-9246-0828f0d01025_952x593.png", "publishedAt": "2026-01-16T14:02:08Z", "slug": "the-dilbert-afterlife", "source": "", "subtitle": "Sixty-eight years of highly defective people", "summary": "Sixty-eight years of highly defective people", "title": "The Dilbert Afterlife", "url": "https://www.astralcodexten.com/p/the-dilbert-afterlife", "wordCount": 10551 }, { "audience": "everyone", "author": { "avatarUrl": "https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.…", "id": "12009663", "name": "Scott Alexander", "url": "", "username": "astralcodexten" }, "authors": [ { "avatarUrl": "https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.…", "id": "12009663", "name": "Scott Alexander", "url": "", "username": "astralcodexten" } ], "id": "31751211", "imageUrl": "https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/c6711968-876b-4c79-ba53-5a6f9c60e338_920x720.jpeg", "publishedAt": "2021-01-21T20:18:29Z", "slug": "still-alive", "source": "", "subtitle": "You just keep on trying till you run out of cake", "summary": "You just keep on trying till you run out of cake", "title": "Still Alive", "url": "https://www.astralcodexten.com/p/still-alive", "wordCount": 6359 } ], "meta": { "cached": false, "endpoint": "archive", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "substack", "requestId": "req_2Xb9kQ…", "units": 1 } }
search
GET
/v1/substack/searchPosts of one Substack publication that match the words of a search, newest first.
scope social:read1 unitcached 30 minpaginated
Parameters
publicationstring required | Publication subdomain, such as astralcodexten for astralcodexten.substack.com. e.g. astralcodexten |
querystring required | Words to search for in the posts, such as monosemanticity. e.g. monosemanticity |
limitinteger | Number of posts, from 1 to 25. default 10 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
23 fields
audience | string |
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
authors | Author[] |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
id | string |
imageUrl | string |
publishedAt | string |
slug | string |
source | string |
subtitle | string |
summary | string |
title | string |
url | string |
wordCount | integer (int64) |
curl "https://api.hoshime.com/v1/substack/search?publication=astralcodexten&query=monosemanticity" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/substack/search?publication=astralcodexten&query=monosemanticity", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/substack/search?publication=astralcodexten&query=monosemanticity", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "audience": "…", "author": { "avatarUrl": "https://…", "id": "abc123", "name": "…", "url": "https://…", "username": "…" }, "authors": [ { "avatarUrl": null, "id": null, "name": null, "url": null, "username": null } ], "id": "abc123", "imageUrl": "https://…", "publishedAt": "2026-11-06T09:41:00Z", "slug": "…", "source": "…", "subtitle": "…", "summary": "…", "title": "…", "url": "https://…", "wordCount": 1280 } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "substack", "requestId": "req_2Xb9kQ…", "units": 1 } }
post
GET
/v1/substack/postOne post of a Substack publication by its slug.
scope social:read1 unitcached 30 min
Parameters
publicationstring required | Publication subdomain, such as astralcodexten for astralcodexten.substack.com. e.g. astralcodexten |
slugstring required | Post slug, the last part of its URL, such as the-dilbert-afterlife. e.g. the-dilbert-afterlife |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
23 fields
audience | string |
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
authors | Author[] |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
id | string |
imageUrl | string |
publishedAt | string |
slug | string |
source | string |
subtitle | string |
summary | string |
title | string |
url | string |
wordCount | integer (int64) |
curl "https://api.hoshime.com/v1/substack/post?publication=astralcodexten&slug=the-dilbert-afterlife" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/substack/post?publication=astralcodexten&slug=the-dilbert-afterlife", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/substack/post?publication=astralcodexten&slug=the-dilbert-afterlife", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "audience": "everyone", "author": { "avatarUrl": "https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.…", "id": "12009663", "name": "Scott Alexander", "url": "", "username": "astralcodexten" }, "authors": [ { "avatarUrl": "https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.…", "id": "12009663", "name": "Scott Alexander", "url": "", "username": "astralcodexten" } ], "id": "184503512", "imageUrl": "https://substack-post-media.s3.amazonaws.com/public/images/5d0d108d-c368-4e1b-9246-0828f0d01025_952x593.png", "publishedAt": "2026-01-16T14:02:08Z", "slug": "the-dilbert-afterlife", "source": "", "subtitle": "Sixty-eight years of highly defective people", "summary": "Sixty-eight years of highly defective people", "title": "The Dilbert Afterlife", "url": "https://www.astralcodexten.com/p/the-dilbert-afterlife", "wordCount": 10551 }, "meta": { "cached": false, "endpoint": "post", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "substack", "requestId": "req_2Xb9kQ…", "units": 1 } }
comments
GET
/v1/substack/commentsTop-level comments on one post, with the number of replies under each. Replies are not expanded.
scope social:read1 unitcached 5 minpaginated
Parameters
publicationstring required | Publication subdomain, such as astralcodexten for astralcodexten.substack.com. e.g. astralcodexten |
idinteger required | Post id, as the archive and post endpoints give it, such as 184503512. e.g. 184503512 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
11 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
createdAt | string |
id | string |
likeCount | integer (int64) |
replyCount | integer (int64) |
text | string |
curl "https://api.hoshime.com/v1/substack/comments?publication=astralcodexten&id=184503512" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/substack/comments?publication=astralcodexten&id=184503512", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/substack/comments?publication=astralcodexten&id=184503512", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "Sandeep", "url": "", "username": "sandeep675935" }, "createdAt": "2026-01-16T14:25:29Z", "id": "200649152", "likeCount": 67, "replyCount": 2, "text": "Among the numerous intellectual gifts I have received from reading Scott Adams is that I started reading slatestarcodex on his recommendatio…" }, { "author": { "avatarUrl": "", "id": "", "name": "Brian Moore", "url": "", "username": "brianmoore2028" }, "createdAt": "2026-01-16T14:44:45Z", "id": "200658070", "likeCount": 35, "replyCount": 0, "text": "This is excellent. Thank you for writing it.\n\nSpeaking of dopplegangers, there is a companion piece to be written comparing Adams to Bill W…" } ], "meta": { "cached": false, "endpoint": "comments", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "substack", "requestId": "req_2Xb9kQ…", "units": 1 } }
user
GET
/v1/substack/userPublic profile of a Substack writer: name, bio and follower count.
scope social:read1 unitcached 30 min
Parameters
handlestring required | Substack handle, such as astralcodexten, from a profile URL substack.com/@astralcodexten. e.g. astralcodexten |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
11 fields
avatarUrl | string |
bio | string |
createdAt | string |
followerCount | integer (int64) |
followingCount | integer (int64) |
id | string |
name | string |
postCount | integer (int64) |
url | string |
username | string |
verified | boolean |
curl "https://api.hoshime.com/v1/substack/user?handle=astralcodexten" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/substack/user?handle=astralcodexten", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/substack/user?handle=astralcodexten", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "avatarUrl": "https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.…", "bio": "", "createdAt": "2021-04-16T05:06:04Z", "followerCount": 302654, "followingCount": 0, "id": "12009663", "name": "Scott Alexander", "postCount": 0, "url": "https://substack.com/@astralcodexten", "username": "astralcodexten", "verified": false }, "meta": { "cached": false, "endpoint": "user", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "substack", "requestId": "req_2Xb9kQ…", "units": 1 } }
categories
GET
/v1/substack/categoriesNewsletter categories Substack lists in its directory, with their ids for categoryPublications.
scope social:read1 unitcached 24 hpaginated
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
id | string |
name | string |
parentId | string |
slug | string |
curl "https://api.hoshime.com/v1/substack/categories" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/substack/categories", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/substack/categories", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "96", "name": "Culture", "parentId": "", "slug": "culture" }, { "id": "4", "name": "Technology", "parentId": "", "slug": "technology" } ], "meta": { "cached": false, "endpoint": "categories", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "substack", "requestId": "req_2Xb9kQ…", "units": 1 } }
categoryPublications
GET
/v1/substack/categoryPublicationsNewsletters in one Substack directory category, 25 per page.
scope social:read1 unitcached 1 hpaginated
Parameters
idinteger required | Category id from categories, such as 96 for Culture. e.g. 96 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
author | string |
heroText | string |
id | string |
logoUrl | string |
name | string |
subdomain | string |
url | string |
curl "https://api.hoshime.com/v1/substack/categoryPublications?id=96" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/substack/categoryPublications?id=96", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/substack/categoryPublications?id=96", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": "Santa Barbara Current", "heroText": "Right. Thinking. Journalism. The races, measures and shenanigans Sacramento would rather you not see.", "id": "8269862", "logoUrl": "https://substackcdn.com/image/fetch/$s_!vWwt!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fp…", "name": "California Current", "subdomain": "californiacurrent", "url": "https://www.californiacurrent.org" }, { "author": "The New Yorker", "heroText": "One good story, every week, without a paywall.", "id": "6420945", "logoUrl": "https://substackcdn.com/image/fetch/$s_!X3Lo!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fp…", "name": "The New Yorker", "subdomain": "newyorker", "url": "https://newyorker.substack.com" } ], "meta": { "cached": false, "endpoint": "categoryPublications", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "substack", "requestId": "req_2Xb9kQ…", "units": 1 } }