Substack Post details API
API health
- 24h health
- Normal
- Healthy / normal
- Available
- Limited
- Mostly down
Last 24 hours
Last 30 days
Read a single Substack post from its /p/ link. Get title, subtitle, body text, author, publication, engagement counts and whether it is paid content. Paywalled text is not unlocked. Comments come from the separate comments action.
Send POST https://api.everyinfra.com/api/v1/social with platform set to substack and action set to post. Price $1.39 per 1,000 requests ($0.001389 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
AI prompt
#Please help me write a data collection script with the EveryInfra Substack Post details endpoint (substack/post).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to substack and action to post, and put the parameters inside params.
- Required parameters:
- url: Specifies the target Substack resource link. Use publication homepages for publication and publication_posts, or direct /p/ post links for post and comments.
- Returns one object. Main fields: id, url, title, subtitle, text, author_name, author_username, publication_name, publication_handle, publication_url, like_count, comment_count; 23 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=substack.
- Example request body:
{
"platform": "substack",
"action": "post",
"params": {
"url": "https://astralcodexten.substack.com"
}
}
- Price: $1.39 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | substack | Platform identifier, fixed value. |
action | body | string | Yes | post | Capability identifier, fixed value. |
url | body.params | string | Yes | - | Specifies the target Substack resource link. Use publication homepages for publication and publication_posts, or direct /p/ post links for post and comments. The publication action requires a URL containing a recognizable Substack handle (custom domains may not parse), whereas publication_posts accepts custom domain links directly. |
Code samples
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "substack",
"action": "post",
"params": {
"url": "https://astralcodexten.substack.com"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "id": "req_…", "platform": "substack", "action": "post", "results": { "id": 210681369, "url": "https://www.astralcodexten.com/p/your-book-review-lee-kuan-yews-memoirs", "title": "Your Book Review: Lee Kuan Yew's Memoirs", "subtitle": "Finalist #10 in the Book Review Contest", "text": "Finalist #10 in the Book Review Contest", "author_name": "•••", "author_username": "•••", "publication_name": "Astral Codex Ten", "publication_url": "https://www.astralcodexten.com", "like_count": 139, "comment_count": 31, "repost_count": 2, "word_count": 5683, "post_type": "newsletter", "audience": "everyone", "is_paid": false, "image_url": "https://substack-post-media.s3.amazonaws.com/public/images/3d745943-c11a-4ff0-9c6a-aaf91333ac9f_2546x2560.jpeg", "posted_at": "2026-09-25T22:26:10.306000+00:00", "updated_at": "2026-09-25T22:30:06.391000+00:00", "platform": "substack" }, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.
| Field | Meaning |
|---|---|
id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
url | Link to the record on the platform. |
title | Title. null when the platform has no titles (for example text-only posts). |
subtitle | Keeps the platform's own meaning |
text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
author_name | Author's display name. |
author_username | Author's username (@handle), usually usable in URLs. |
publication_name | Keeps the platform's own meaning |
publication_handle | Keeps the platform's own meaning |
publication_url | Keeps the platform's own meaning |
like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
comment_count | Comments. null means not disclosed, not 0. |
repost_count | Reposts (as distinct from quote posts). null means not disclosed. |
word_count | Keeps the platform's own meaning |
reading_time_minutes | Keeps the platform's own meaning |
post_type | Keeps the platform's own meaning |
audience | Keeps the platform's own meaning |
is_paid | Keeps the platform's own meaning |
podcast_url | Keeps the platform's own meaning |
image_url | Image link. Capabilities with several images may return an image_urls array. |
posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
updated_at | Keeps the platform's own meaning |
tags | Array of tags. An empty array, not null, when there are none. |
platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.
Official references
#Used only to check objects and terms. They do not imply authorization or endorsement of EveryInfra by the platform.
- Substack: Free Previews Are Not Full Paywalled Articles ↗
Substack allows creators to configure free previews and paywall placements for paid articles. Consequently, non-empty text does not prove that full content was retrieved, and setting is_paid or filtering for paid content does not grant reading access.
Checked 2026-09-04