Endpoints
Search Posts
Search for posts in your publication.
GET
Authorizations
Test key: sk_test_9b0j6a1bdbf4f38b1 Get production key at auth.substackapi.dev
Query Parameters
The URL of the publication to retrieve posts from (e.g. example.substack.com)
The query to search for (e.g. 'AI', 'machine learning', 'data science')
The maximum number of results to return (default: 10)
Required range:
1 <= x <= 50
The offset of the results to return (default: 0)
Required range:
x >= 0
Response
200
application/json
A list of posts
Example:
"my-post"
Example:
"https://example.substack.com/p/my-post"
Example:
"My Post"
Example:
"This is a description of my post"
Example:
"This is an excerpt of my post"
Example:
"<p>This is the body of my post</p>"
Example:
5
Example:
"https://example.com/my-post.mp3"
Example:
"2025-03-20T15:30:00Z"
Example:
100
Example:
false
Example:
"John Doe"