Skip to content

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/archiveLatest or most liked posts of one Substack publication.
GET/substack/searchPosts of one Substack publication that match the words of a search, newest first.
GET/substack/postOne post of a Substack publication by its slug.
GET/substack/commentsTop-level comments on one post, with the number of replies under each. Replies are not expanded.
GET/substack/userPublic profile of a Substack writer: name, bio and follower count.
GET/substack/categoriesNewsletter categories Substack lists in its directory, with their ids for categoryPublications.
GET/substack/categoryPublicationsNewsletters in one Substack directory category, 25 per page.

archive

GET/v1/substack/archive

Latest or most liked posts of one Substack publication.

scope social:read1 unitcached 30 minpaginated

Parameters

publication
string
required
Publication subdomain, such as astralcodexten for astralcodexten.substack.com.
e.g. astralcodexten
sort
string
new for the newest posts, top for the most liked.
newtop
default newe.g. top
limit
integer
Number of posts, from 1 to 25.
default 10
tunnel
string
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.
proxy
string
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.
profileId
string
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
audiencestring
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
authorsAuthor[]
avatarUrlstring
idstring
namestring
urlstring
usernamestring
idstring
imageUrlstring
publishedAtstring
slugstring
sourcestring
subtitlestring
summarystring
titlestring
urlstring
wordCountinteger (int64)
curl "https://api.hoshime.com/v1/substack/archive?publication=astralcodexten&sort=top" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}

post

GET/v1/substack/post

One post of a Substack publication by its slug.

scope social:read1 unitcached 30 min

Parameters

publication
string
required
Publication subdomain, such as astralcodexten for astralcodexten.substack.com.
e.g. astralcodexten
slug
string
required
Post slug, the last part of its URL, such as the-dilbert-afterlife.
e.g. the-dilbert-afterlife
tunnel
string
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.
proxy
string
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.
profileId
string
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
audiencestring
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
authorsAuthor[]
avatarUrlstring
idstring
namestring
urlstring
usernamestring
idstring
imageUrlstring
publishedAtstring
slugstring
sourcestring
subtitlestring
summarystring
titlestring
urlstring
wordCountinteger (int64)
curl "https://api.hoshime.com/v1/substack/post?publication=astralcodexten&slug=the-dilbert-afterlife" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/comments

Top-level comments on one post, with the number of replies under each. Replies are not expanded.

scope social:read1 unitcached 5 minpaginated

Parameters

publication
string
required
Publication subdomain, such as astralcodexten for astralcodexten.substack.com.
e.g. astralcodexten
id
integer
required
Post id, as the archive and post endpoints give it, such as 184503512.
e.g. 184503512
tunnel
string
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.
proxy
string
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.
profileId
string
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
authorAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
createdAtstring
idstring
likeCountinteger (int64)
replyCountinteger (int64)
textstring
curl "https://api.hoshime.com/v1/substack/comments?publication=astralcodexten&id=184503512" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/user

Public profile of a Substack writer: name, bio and follower count.

scope social:read1 unitcached 30 min

Parameters

handle
string
required
Substack handle, such as astralcodexten, from a profile URL substack.com/@astralcodexten.
e.g. astralcodexten
tunnel
string
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.
proxy
string
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.
profileId
string
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
avatarUrlstring
biostring
createdAtstring
followerCountinteger (int64)
followingCountinteger (int64)
idstring
namestring
postCountinteger (int64)
urlstring
usernamestring
verifiedboolean
curl "https://api.hoshime.com/v1/substack/user?handle=astralcodexten" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/categories

Newsletter categories Substack lists in its directory, with their ids for categoryPublications.

scope social:read1 unitcached 24 hpaginated

Parameters

tunnel
string
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.
proxy
string
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.
profileId
string
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
idstring
namestring
parentIdstring
slugstring
curl "https://api.hoshime.com/v1/substack/categories" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/categoryPublications

Newsletters in one Substack directory category, 25 per page.

scope social:read1 unitcached 1 hpaginated

Parameters

id
integer
required
Category id from categories, such as 96 for Culture.
e.g. 96
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
authorstring
heroTextstring
idstring
logoUrlstring
namestring
subdomainstring
urlstring
curl "https://api.hoshime.com/v1/substack/categoryPublications?id=96" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}
esc
↑↓ move↵ open