How can I get a Substack API key? #96
-
How can I get a Substack API key? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 5 replies
-
Thank you very much for your question, @ricardocuritiba — I truly appreciate your interest in the project! You're absolutely right to bring this up — I realize now that I missed including a clear instruction on how to obtain the required session token ( This token is stored in your browser cookies and acts as a session identifier that Substack uses to confirm you’re authenticated. Because of its sensitive nature, it’s very important to treat this value like a password: do not share it with anyone, and avoid exposing it in code or version control. How to extract
|
Beta Was this translation helpful? Give feedback.
-
@ricardocuritiba If you found the project helpful, feel free to leave a ⭐ star and share the repo — that kind of support really helps keep things moving forward! Thanks 🙏🏻 |
Beta Was this translation helpful? Give feedback.
-
Hi Jakub
I don’t have a connect.sid key, only a substack.sid key.
Am I doing something wrong?

… On Jul 10, 2025, at 7:19 AM, Jakub Slys ***@***.***> wrote:
Thank you very much for your question, @ricardocuritiba <https://github.com/ricardocuritiba> — I truly appreciate your interest in the project!
You're absolutely right to bring this up — I realize now that I missed including a clear instruction on how to obtain the required session token (connect.sid). Since Substack doesn’t offer an official API or SDK for authentication, the only current method is to manually extract this token from your browser after logging into your account.
This token is stored in your browser cookies and acts as a session identifier that Substack uses to confirm you’re authenticated. Because of its sensitive nature, it’s very important to treat this value like a password: do not share it with anyone, and avoid exposing it in code or version control.
How to extract connect.sid:
Please follow these steps while you are logged into your Substack account in your browser:
connect.sid.png (view on web) <https://github.com/user-attachments/assets/77b47a39-b714-4476-8b39-91e5644e201b>
Right-click anywhere on the page and select Inspect Element (or press Ctrl+Shift+I / Cmd+Option+I to open Developer Tools).
Navigate to the Network tab in the Developer Tools.
In the Network search/filter bar, type: following.
Click the bell icon (🔔) in the top-right corner of Substack — this triggers the /following request we’re interested in.
You should now see a request named following in the list — click it.
In the panel that opens, go to the Cookies tab.
Look for a cookie named connect.sid, and copy its Value.
This value is your session token — it allows you to make authenticated requests on behalf of your Substack account.
|
Beta Was this translation helpful? Give feedback.
-
Yes I am, but don't get the ID you mentioned
Sent via the Samsung Galaxy Note20 Ultra 5G, an AT&T 5G smartphone
Obter o Outlook para Android<https://aka.ms/AAb9ysg>
…________________________________
From: Jakub Slys ***@***.***>
Sent: Monday, July 14, 2025 5:22:08 PM
To: jakub-k-slys/substack-api ***@***.***>
Cc: ricardocuritiba ***@***.***>; Mention ***@***.***>
Subject: Re: [jakub-k-slys/substack-api] How can I get a Substack API key? (Discussion #96)
Hi @ricardocuritiba<https://github.com/ricardocuritiba> are you able to get "following" request?
—
Reply to this email directly, view it on GitHub<#96 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIGPIJJOBFNWO743ON4KWML3IQGPBAVCNFSM6AAAAACBFDNINKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNZVGY3TQNI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
![]() substack.sid and connect.sid are same ? |
Beta Was this translation helpful? Give feedback.
-
I don't know. But substack is the only sid available
Ricardo Martins
Consultor em Design
----
Curitiba - PR - Brasil
+55 41 8855 8007
Em sáb., 2 de ago. de 2025 05:07, Pydevil ***@***.***>
escreveu:
… image.png (view on web)
<https://github.com/user-attachments/assets/bc8e4823-5984-4aaa-a0a2-5af2fd5d8233>
substack.sid and connect.sid are same ?
—
Reply to this email directly, view it on GitHub
<#96 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIGPIJNYZ436SPQI6SBTGRD3LRWTFAVCNFSM6AAAAACBFDNINKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGOJWHAYTGOA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
Thank you very much for your question, @ricardocuritiba — I truly appreciate your interest in the project!
You're absolutely right to bring this up — I realize now that I missed including a clear instruction on how to obtain the required session token (
connect.sid
). Since Substack doesn’t offer an official API or SDK for authentication, the only current method is to manually extract this token from your browser after logging into your account.This token is stored in your browser cookies and acts as a session identifier that Substack uses to confirm you’re authenticated. Because of its sensitive nature, it’s very important to treat this value like a password: do not share it with anyone, …