Skip to main content
POST
Search

Request contract

  • Method and path: POST /apis/v1/substack-com/newsletters/search
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/substack-com/newsletters/search
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
publication
string
required

Substack slug or a declared custom publication host (www.astralcodexten.com, www.lennysnewsletter.com, www.noahpinion.blog). Other custom domains are not supported by this program.

query
string
required

query

cursor
string

next_cursor from the previous page of the same publication, sort and query. Takes precedence over offset.

limit
number
default:12

Posts to return. Substack serves 25 per request, so larger pages take two requests.

Provider reference: minimum 1; maximum 50; default 12.

offset
number
default:0

Posts to skip. new listings reach at most 250 by offset; follow next_cursor for deeper pages. Ignored when cursor is set.

Provider reference: minimum 0; maximum 10000; default 0.

sort
string
default:new

new = newest first, top = most popular, pinned = the publication's pinned posts only (usually one, a single page).

Provider reference: allowed values ["new", "top", "pinned"]; default "new".

Response

Search a Substack publication's archive for posts matching a query, using Substack's own archive search. Returns the same post entries as archive, with the query echoed. Custom domains are limited to the declared publications; paid text remains the anonymous preview.

The response contains the tool result directly.

The provider identifies posts as the primary payload key.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.