APISocial Media

Substack Posts

Pull posts from any Substack publication by its URL, or pass a single post URL (…/p/slug) to fetch just that one article. Returns title, subtitle, publish date, paywall status, word count, engagement (reactions, comments, restacks), author profile, publication details, the full article body as text, HTML and Markdown, and optional comment threads.

Selected price
$0.00039 base + $0.00044 / result Published pricing
Sellers / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

Substack Posts

Prepare your request, then continue with your agent.

Pricing

$0.00039 base + $0.00044 / result

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
Pricing
Connect your agent
On this page

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Either a Substack publication URL / custom domain to fetch its recent posts (e.g. https://www.astralcodexten.com), OR a single post URL to fetch just that one article with full content (e.g. https://www.astralcodexten.com/p/your-book-review).
Optional parameters (21)
Optional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost.
Optional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost.
Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.
Optional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost.
Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.
Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.
Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.
Restrict to a single post type, or 'all' (e.g. newsletter).
Only return posts published on or before this date, format YYYY-MM-DD (e.g. 2024-12-31). Applied within the most recent 'limit' posts scanned.
ignoreSources array
Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
Include public comment threads and their direct replies on each post (e.g. true).
Include the full article body as text, HTML and Markdown. Set false for metadata only, which is faster (e.g. false).
Maximum number of recent posts to return when given a publication URL (1-100, default 25); ignored for a single post URL, which always returns that one post. You are billed per post returned, so a lower limit costs less.
Maximum comments collected per post when 'includeComments' is true (0-500, default 20). Costs nothing extra (e.g. 50).
Only return posts with at least this many comments (e.g. 10).
Only return posts with at least this many reactions (e.g. 100).
Only return posts with at least this many words, which filters out short notes and announcements (e.g. 1000).
Return only free (non-paywalled) posts (e.g. true).
Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
source array
Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
Only return posts published on or after this date, format YYYY-MM-DD (e.g. 2024-01-01). Applied within the most recent 'limit' posts scanned, so raise 'limit' to reach older date ranges.

Sample response

{
  "output": {
    "data": {
      "items": [
        {
          "authorHandle": "priyanakamura",
          "authorName": "Priya Nakamura",
          "comments": [
            {
              "authorHandle": "devonokafor",
              "authorImage": "https://substackcdn.com/image/fetch/clearheaded/devon-avatar.png",
              "authorName": "Devon Okafor",
              "authorUrl": "https://substack.com/@devonokafor",
              "commentId": "c_88213",
              "createdUtc": 1758600000,
              "isAuthor": false,
              "isPinned": true,
              "reactionCount": 44,
              "replies": [
                {
                  "authorHandle": "priyanakamura",
                  "authorImage": "https://substackcdn.com/image/fetch/clearheaded/priya-avatar.png",
                  "authorName": "Priya Nakamura",
                  "authorUrl": "https://www.clearheaded.blog/people/priya-nakamura",
                  "commentId": "c_88240",
                  "createdUtc": 1758603600,
                  "isAuthor": true,
                  "isPinned": false,
                  "reactionCount": 12,
                  "restackCount": 0,
                  "text": "Glad it landed. Curious how your team names the guess out loud."
                }
              ],
              "restackCount": 2,
              "text": "This matches every planning meeting I have sat through for a decade."
            }
          ],
          "contentStatus": "full",
          "createdUtc": 1758585600,
          "postId": "148302911",
          "postType": "newsletter",
          "publication": {
            "customDomain": "www.clearheaded.blog",
            "description": "Notes on building things without lying to yourself.",
            "id": "pub_5521",
            "image": "https://substackcdn.com/image/fetch/clearheaded/logo.png",
            "language": "en",
            "name": "Clearheaded",
            "paymentsEnabled": true,
            "subdomain": "clearheaded",
            "subscriberCount": 38400,
            "url": "https://www.clearheaded.blog"
          },
          "slug": "why-roadmaps-are-guesses",
          "text": "Every roadmap I have shipped was a guess with a deadline attached.",
          "title": "Why roadmaps are guesses",
          "url": "https://www.clearheaded.blog/p/why-roadmaps-are-guesses",
          "wordcount": 2140
        },
        {
          "authorHandle": "priyanakamura",
          "authorName": "Priya Nakamura",
          "authorUrl": "https://www.clearheaded.blog/people/priya-nakamura",
          "commentCount": 29,
          "comments": [],
          "contentStatus": "preview_only",
          "createdUtc": 1757980800,
          "description": "A shorter standup that actually surfaces risk",
          "isPaid": true,
          "language": "en",
          "postId": "148190442",
          "postType": "newsletter",
          "publication": {
            "id": "pub_5521",
            "name": "Clearheaded",
            "subdomain": "clearheaded",
            "url": "https://www.clearheaded.blog"
          },
          "reactionCount": 501,
          "replyCount": 6,
          "restackCount": 18,
          "slug": "the-three-question-standup",
          "subtitle": "",
          "text": "Most standups answer the same three questions badly. Here is a version that takes six minutes and actually works...",
          "title": "The three-question standup",
          "url": "https://www.clearheaded.blog/p/the-three-question-standup",
          "wordcount": 1420
        },
        {
          "authorHandle": "priyanakamura",
          "authorName": "Priya Nakamura",
          "authorUrl": "https://www.clearheaded.blog/people/priya-nakamura",
          "commentCount": 41,
          "comments": [],
          "contentStatus": "metadata_only",
          "createdUtc": 1757376000,
          "description": "Reader questions from last week's thread",
          "isPaid": false,
          "language": "en",
          "postId": "148075310",
          "postType": "thread",
          "publication": {
            "id": "pub_5521",
            "name": "Clearheaded",
            "subdomain": "clearheaded",
            "url": "https://www.clearheaded.blog"
          },
          "reactionCount": 203,
          "replyCount": 9,
          "restackCount": 5,
          "slug": "ask-me-anything-hiring-your-first-pm",
          "subtitle": "Reader questions from last week's thread",
          "title": "Ask me anything: hiring your first PM",
          "url": "https://www.clearheaded.blog/p/ask-me-anything-hiring-your-first-pm",
          "wordcount": 640
        }
      ]
    },
    "found": true
  }
}

Response result

Response structure

Inferred from examples
  • outputobject
    • dataobject
      • itemsobject[]
        • authorHandlestring
        • authorNamestring
        • commentsobject[]
          • authorHandlestring
          • authorImagestring
          • authorNamestring
          • authorUrlstring
          • commentIdstring
          • createdUtcinteger
          • isAuthorboolean
          • isPinnedboolean
          • reactionCountinteger
          • repliesobject[]
            • authorHandlestring
            • authorImagestring
            • authorNamestring
            • authorUrlstring
            • commentIdstring
            • createdUtcinteger
            • isAuthorboolean
            • isPinnedboolean
            • reactionCountinteger
            • restackCountinteger
            • textstring
          • restackCountinteger
          • textstring
        • contentStatusstring
        • createdUtcinteger
        • postIdstring
        • postTypestring
        • publicationobject
          • customDomainstring
          • descriptionstring
          • idstring
          • imagestring
          • languagestring
          • namestring
          • paymentsEnabledboolean
          • subdomainstring
          • subscriberCountinteger
          • urlstring
        • slugstring
        • textstring
        • titlestring
        • urlstring
        • wordcountinteger
        • authorUrlstring
        • commentCountinteger
        • descriptionstring
        • isPaidboolean
        • languagestring
        • reactionCountinteger
        • replyCountinteger
        • restackCountinteger
        • subtitlestring
    • foundboolean

Sellers

SellerPricingRequests · 30dPerformanceAccess
anyapiCurrent
Substack Posts · POST · View API reference
$0.00039 base + $0.00044 / result—
—successP50—
Loading...
Selected pricing · anyapiUSD
Pricing
$0.00039 base + $0.00044 / result

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/anyapi/v1/run/substack.posts
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/anyapi/v1/run/substack.posts' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "limit": 3,
  "url": "https://www.astralcodexten.com"
}'

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
fieldsURL query parametersquerystringNoOptional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost.
max_itemsURL query parametersqueryintegerNoOptional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost.

minimum: 0

summaryURL query parametersquerybooleanNoOptional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.
jqURL query parametersquerystringNoOptional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost.
max_cost_usdURL query parametersquerystringNoOptional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.
Idempotency-KeyRequest headersheadersstringNoOptional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.

minLength: 1 · maxLength: 255

allowFallbacksJSON request bodybodybooleanNoOptional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.
contentTypeJSON request bodybodystringNoRestrict to a single post type, or 'all' (e.g. newsletter).

enum: "all", "newsletter", "podcast", "thread"

endDateJSON request bodybodystringNoOnly return posts published on or before this date, format YYYY-MM-DD (e.g. 2024-12-31). Applied within the most recent 'limit' posts scanned.
ignoreSourcesJSON request bodybodyarrayNoOptional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
Nested fields and variants

body.ignoreSources[] · Array item · string

includeCommentsJSON request bodybodybooleanNoInclude public comment threads and their direct replies on each post (e.g. true).
includeContentJSON request bodybodybooleanNoInclude the full article body as text, HTML and Markdown. Set false for metadata only, which is faster (e.g. false).
limitJSON request bodybodyintegerNoMaximum number of recent posts to return when given a publication URL (1-100, default 25); ignored for a single post URL, which always returns that one post. You are billed per post returned, so a lower limit costs less.

minimum: 1 · maximum: 100

maxCommentsJSON request bodybodyintegerNoMaximum comments collected per post when 'includeComments' is true (0-500, default 20). Costs nothing extra (e.g. 50).

minimum: 0 · maximum: 500

minCommentsJSON request bodybodyintegerNoOnly return posts with at least this many comments (e.g. 10).

minimum: 0

minReactionsJSON request bodybodyintegerNoOnly return posts with at least this many reactions (e.g. 100).

minimum: 0

minWordCountJSON request bodybodyintegerNoOnly return posts with at least this many words, which filters out short notes and announcements (e.g. 1000).

minimum: 0

onlyFreeJSON request bodybodybooleanNoReturn only free (non-paywalled) posts (e.g. true).
preferLatencyUnderMsJSON request bodybodyintegerNoOptional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.

minimum: 1

sourceJSON request bodybodyarrayNoOptional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
Nested fields and variants

body.source[] · Array item · string

startDateJSON request bodybodystringNoOnly return posts published on or after this date, format YYYY-MM-DD (e.g. 2024-01-01). Applied within the most recent 'limit' posts scanned, so raise 'limit' to reach older date ranges.
urlJSON request bodybodystringYesEither a Substack publication URL / custom domain to fetch its recent posts (e.g. https://www.astralcodexten.com), OR a single post URL to fetch just that one article with full content (e.g. https://www.astralcodexten.com/p/your-book-review).

Required markers inside a nested object or variant apply when that object or variant is used.

Sample response

Sample response · Configured HTTP 200; actual status is unverified. Example from the provider's documentation. Field values in your results will differ.

Official example (output fragment; HTTP assumed)
{
  "output": {
    "data": {
      "items": [
        {
          "authorHandle": "priyanakamura",
          "authorName": "Priya Nakamura",
          "comments": [
            {
              "authorHandle": "devonokafor",
              "authorImage": "https://substackcdn.com/image/fetch/clearheaded/devon-avatar.png",
              "authorName": "Devon Okafor",
              "authorUrl": "https://substack.com/@devonokafor",
              "commentId": "c_88213",
              "createdUtc": 1758600000,
              "isAuthor": false,
              "isPinned": true,
              "reactionCount": 44,
              "replies": [
                {
                  "authorHandle": "priyanakamura",
                  "authorImage": "https://substackcdn.com/image/fetch/clearheaded/priya-avatar.png",
                  "authorName": "Priya Nakamura",
                  "authorUrl": "https://www.clearheaded.blog/people/priya-nakamura",
                  "commentId": "c_88240",
                  "createdUtc": 1758603600,
                  "isAuthor": true,
                  "isPinned": false,
                  "reactionCount": 12,
                  "restackCount": 0,
                  "text": "Glad it landed. Curious how your team names the guess out loud."
                }
              ],
              "restackCount": 2,
              "text": "This matches every planning meeting I have sat through for a decade."
            }
          ],
          "contentStatus": "full",
          "createdUtc": 1758585600,
          "postId": "148302911",
          "postType": "newsletter",
          "publication": {
            "customDomain": "www.clearheaded.blog",
            "description": "Notes on building things without lying to yourself.",
            "id": "pub_5521",
            "image": "https://substackcdn.com/image/fetch/clearheaded/logo.png",
            "language": "en",
            "name": "Clearheaded",
            "paymentsEnabled": true,
            "subdomain": "clearheaded",
            "subscriberCount": 38400,
            "url": "https://www.clearheaded.blog"
          },
          "slug": "why-roadmaps-are-guesses",
          "text": "Every roadmap I have shipped was a guess with a deadline attached.",
          "title": "Why roadmaps are guesses",
          "url": "https://www.clearheaded.blog/p/why-roadmaps-are-guesses",
          "wordcount": 2140
        },
        {
          "authorHandle": "priyanakamura",
          "authorName": "Priya Nakamura",
          "authorUrl": "https://www.clearheaded.blog/people/priya-nakamura",
          "commentCount": 29,
          "comments": [],
          "contentStatus": "preview_only",
          "createdUtc": 1757980800,
          "description": "A shorter standup that actually surfaces risk",
          "isPaid": true,
          "language": "en",
          "postId": "148190442",
          "postType": "newsletter",
          "publication": {
            "id": "pub_5521",
            "name": "Clearheaded",
            "subdomain": "clearheaded",
            "url": "https://www.clearheaded.blog"
          },
          "reactionCount": 501,
          "replyCount": 6,
          "restackCount": 18,
          "slug": "the-three-question-standup",
          "subtitle": "",
          "text": "Most standups answer the same three questions badly. Here is a version that takes six minutes and actually works...",
          "title": "The three-question standup",
          "url": "https://www.clearheaded.blog/p/the-three-question-standup",
          "wordcount": 1420
        },
        {
          "authorHandle": "priyanakamura",
          "authorName": "Priya Nakamura",
          "authorUrl": "https://www.clearheaded.blog/people/priya-nakamura",
          "commentCount": 41,
          "comments": [],
          "contentStatus": "metadata_only",
          "createdUtc": 1757376000,
          "description": "Reader questions from last week's thread",
          "isPaid": false,
          "language": "en",
          "postId": "148075310",
          "postType": "thread",
          "publication": {
            "id": "pub_5521",
            "name": "Clearheaded",
            "subdomain": "clearheaded",
            "url": "https://www.clearheaded.blog"
          },
          "reactionCount": 203,
          "replyCount": 9,
          "restackCount": 5,
          "slug": "ask-me-anything-hiring-your-first-pm",
          "subtitle": "Reader questions from last week's thread",
          "title": "Ask me anything: hiring your first PM",
          "url": "https://www.clearheaded.blog/p/ask-me-anything-hiring-your-first-pm",
          "wordcount": 640
        }
      ]
    },
    "found": true
  }
}

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Only requests matching a listed pricing variant are accepted. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Variant · 指定来源且关闭回退时的原厂基础费$0.000390Request conditionsselected_source eq ["anonymous-octopus"] AND allow_fallbacks eq false AND fields exists false AND max_items exists false AND summary exists false AND jq exists false—
官方计费数量$0.000440 / resultResponse · /items · Numeric valueAlways100 result · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.044400.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[
  {
    "default": [
      "anonymous-octopus"
    ],
    "id": "selected_source",
    "location": "body",
    "pointer": "/source",
    "required": false,
    "type": "array"
  },
  {
    "default": false,
    "id": "allow_fallbacks",
    "location": "body",
    "pointer": "/allowFallbacks",
    "required": false,
    "type": "boolean"
  },
  {
    "id": "fields",
    "location": "query",
    "name": "fields",
    "required": false,
    "type": "string"
  },
  {
    "id": "max_items",
    "location": "query",
    "name": "max_items",
    "required": false,
    "type": "integer"
  },
  {
    "id": "summary",
    "location": "query",
    "name": "summary",
    "required": false,
    "type": "boolean"
  },
  {
    "id": "jq",
    "location": "query",
    "name": "jq",
    "required": false,
    "type": "string"
  }
]

Agent integration

Copy the resource contract without sharing an API key.

View API Markdown
API Markdown
# Substack Posts

Pull posts from any Substack publication by its URL, or pass a single post URL (…/p/slug) to fetch just that one article. Returns title, subtitle, publish date, paywall status, word count, engagement (reactions, comments, restacks), author profile, publication details, the full article body as text, HTML and Markdown, and optional comment threads.
Documentation: https://openany.si/apis/c2c90830-eae4-4951-9959-6eaba5ced307
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/anyapi/v1/run/substack.posts
Price: $0.00039 base + $0.00044 / result
Provider: anyapi
Contract revision: 4
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/anyapi/v1/run/substack.posts' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "limit": 3,
  "url": "https://www.astralcodexten.com"
}'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "Substack Posts",
  "endpoint": "https://api.openany.si/v1/agent-apis/anyapi/v1/run/substack.posts",
  "method": "POST",
  "content_type": "application/json",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "Optional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost.",
      "location": "query",
      "name": "fields",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Optional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost.",
      "location": "query",
      "minimum": "0",
      "name": "max_items",
      "nullable": false,
      "required": false,
      "type": "integer"
    },
    {
      "description": "Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.",
      "location": "query",
      "name": "summary",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "Optional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost.",
      "location": "query",
      "name": "jq",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.",
      "location": "query",
      "name": "max_cost_usd",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.",
      "location": "header",
      "max_length": 255,
      "min_length": 1,
      "name": "Idempotency-Key",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.",
      "location": "body",
      "name": "allowFallbacks",
      "nullable": false,
      "pointer": "/allowFallbacks",
      "required": false,
      "type": "boolean"
    },
    {
      "description": "Restrict to a single post type, or 'all' (e.g. newsletter).",
      "enum_values": [
        "all",
        "newsletter",
        "podcast",
        "thread"
      ],
      "location": "body",
      "name": "contentType",
      "nullable": false,
      "pointer": "/contentType",
      "required": false,
      "type": "string"
    },
    {
      "description": "Only return posts published on or before this date, format YYYY-MM-DD (e.g. 2024-12-31). Applied within the most recent 'limit' posts scanned.",
      "location": "body",
      "name": "endDate",
      "nullable": false,
      "pointer": "/endDate",
      "required": false,
      "type": "string"
    },
    {
      "description": "Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.",
      "item_type": "string",
      "location": "body",
      "name": "ignoreSources",
      "nullable": false,
      "pointer": "/ignoreSources",
      "required": false,
      "type": "array"
    },
    {
      "description": "Include public comment threads and their direct replies on each post (e.g. true).",
      "location": "body",
      "name": "includeComments",
      "nullable": false,
      "pointer": "/includeComments",
      "required": false,
      "type": "boolean"
    },
    {
      "description": "Include the full article body as text, HTML and Markdown. Set false for metadata only, which is faster (e.g. false).",
      "location": "body",
      "name": "includeContent",
      "nullable": false,
      "pointer": "/includeContent",
      "required": false,
      "type": "boolean"
    },
    {
      "description": "Maximum number of recent posts to return when given a publication URL (1-100, default 25); ignored for a single post URL, which always returns that one post. You are billed per post returned, so a lower limit costs less.",
      "location": "body",
      "maximum": "100",
      "minimum": "1",
      "name": "limit",
      "nullable": false,
      "pointer": "/limit",
      "required": false,
      "type": "integer"
    },
    {
      "description": "Maximum comments collected per post when 'includeComments' is true (0-500, default 20). Costs nothing extra (e.g. 50).",
      "location": "body",
      "maximum": "500",
      "minimum": "0",
      "name": "maxComments",
      "nullable": false,
      "pointer": "/maxComments",
      "required": false,
      "type": "integer"
    },
    {
      "description": "Only return posts with at least this many comments (e.g. 10).",
      "location": "body",
      "minimum": "0",
      "name": "minComments",
      "nullable": false,
      "pointer": "/minComments",
      "required": false,
      "type": "integer"
    },
    {
      "description": "Only return posts with at least this many reactions (e.g. 100).",
      "location": "body",
      "minimum": "0",
      "name": "minReactions",
      "nullable": false,
      "pointer": "/minReactions",
      "required": false,
      "type": "integer"
    },
    {
      "description": "Only return posts with at least this many words, which filters out short notes and announcements (e.g. 1000).",
      "location": "body",
      "minimum": "0",
      "name": "minWordCount",
      "nullable": false,
      "pointer": "/minWordCount",
      "required": false,
      "type": "integer"
    },
    {
      "description": "Return only free (non-paywalled) posts (e.g. true).",
      "location": "body",
      "name": "onlyFree",
      "nullable": false,
      "pointer": "/onlyFree",
      "required": false,
      "type": "boolean"
    },
    {
      "description": "Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.",
      "location": "body",
      "minimum": "1",
      "name": "preferLatencyUnderMs",
      "nullable": false,
      "pointer": "/preferLatencyUnderMs",
      "required": false,
      "type": "integer"
    },
    {
      "description": "Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.",
      "item_type": "string",
      "location": "body",
      "name": "source",
      "nullable": false,
      "pointer": "/source",
      "required": false,
      "type": "array"
    },
    {
      "description": "Only return posts published on or after this date, format YYYY-MM-DD (e.g. 2024-01-01). Applied within the most recent 'limit' posts scanned, so raise 'limit' to reach older date ranges.",
      "location": "body",
      "name": "startDate",
      "nullable": false,
      "pointer": "/startDate",
      "required": false,
      "type": "string"
    },
    {
      "description": "Either a Substack publication URL / custom domain to fetch its recent posts (e.g. https://www.astralcodexten.com), OR a single post URL to fetch just that one article with full content (e.g. https://www.astralcodexten.com/p/your-book-review).",
      "location": "body",
      "name": "url",
      "nullable": false,
      "pointer": "/url",
      "required": true,
      "type": "string"
    }
  ],
  "billing": {
    "currency": "USD",
    "mode": "rules",
    "parameters": [
      {
        "default": [
          "anonymous-octopus"
        ],
        "id": "selected_source",
        "location": "body",
        "pointer": "/source",
        "required": false,
        "type": "array"
      },
      {
        "default": false,
        "id": "allow_fallbacks",
        "location": "body",
        "pointer": "/allowFallbacks",
        "required": false,
        "type": "boolean"
      },
      {
        "id": "fields",
        "location": "query",
        "name": "fields",
        "required": false,
        "type": "string"
      },
      {
        "id": "max_items",
        "location": "query",
        "name": "max_items",
        "required": false,
        "type": "integer"
      },
      {
        "id": "summary",
        "location": "query",
        "name": "summary",
        "required": false,
        "type": "boolean"
      },
      {
        "id": "jq",
        "location": "query",
        "name": "jq",
        "required": false,
        "type": "string"
      }
    ],
    "policy_version": 2,
    "sale": {
      "addons": [],
      "base_price_micro_usd": "44401",
      "max_cost_micro_usd": "44400",
      "quantities": [
        {
          "id": "units",
          "label": "官方计费数量",
          "max_quantity": "100",
          "measure": "value",
          "pointer": "/items",
          "price_micro_usd": "440",
          "quantity_scale": 0,
          "source": "response",
          "unit": "result",
          "unit_quantity": "1"
        }
      ],
      "rounding": "ceil",
      "variants": [
        {
          "id": "selected_source_only",
          "label": "指定来源且关闭回退时的原厂基础费",
          "price_micro_usd": "390",
          "when": [
            {
              "op": "eq",
              "parameter": "selected_source",
              "value": [
                "anonymous-octopus"
              ]
            },
            {
              "op": "eq",
              "parameter": "allow_fallbacks",
              "value": false
            },
            {
              "op": "exists",
              "parameter": "fields",
              "value": false
            },
            {
              "op": "exists",
              "parameter": "max_items",
              "value": false
            },
            {
              "op": "exists",
              "parameter": "summary",
              "value": false
            },
            {
              "op": "exists",
              "parameter": "jq",
              "value": false
            }
          ]
        }
      ]
    }
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Official example (output fragment; HTTP assumed)",
      "request": {
        "body": {
          "limit": 3,
          "url": "https://www.astralcodexten.com"
        },
        "headers": {},
        "path": {},
        "query": {}
      },
      "response_body": {
        "output": {
          "data": {
            "items": [
              {
                "authorHandle": "priyanakamura",
                "authorName": "Priya Nakamura",
                "comments": [
                  {
                    "authorHandle": "devonokafor",
                    "authorImage": "https://substackcdn.com/image/fetch/clearheaded/devon-avatar.png",
                    "authorName": "Devon Okafor",
                    "authorUrl": "https://substack.com/@devonokafor",
                    "commentId": "c_88213",
                    "createdUtc": 1758600000,
                    "isAuthor": false,
                    "isPinned": true,
                    "reactionCount": 44,
                    "replies": [
                      {
                        "authorHandle": "priyanakamura",
                        "authorImage": "https://substackcdn.com/image/fetch/clearheaded/priya-avatar.png",
                        "authorName": "Priya Nakamura",
                        "authorUrl": "https://www.clearheaded.blog/people/priya-nakamura",
                        "commentId": "c_88240",
                        "createdUtc": 1758603600,
                        "isAuthor": true,
                        "isPinned": false,
                        "reactionCount": 12,
                        "restackCount": 0,
                        "text": "Glad it landed. Curious how your team names the guess out loud."
                      }
                    ],
                    "restackCount": 2,
                    "text": "This matches every planning meeting I have sat through for a decade."
                  }
                ],
                "contentStatus": "full",
                "createdUtc": 1758585600,
                "postId": "148302911",
                "postType": "newsletter",
                "publication": {
                  "customDomain": "www.clearheaded.blog",
                  "description": "Notes on building things without lying to yourself.",
                  "id": "pub_5521",
                  "image": "https://substackcdn.com/image/fetch/clearheaded/logo.png",
                  "language": "en",
                  "name": "Clearheaded",
                  "paymentsEnabled": true,
                  "subdomain": "clearheaded",
                  "subscriberCount": 38400,
                  "url": "https://www.clearheaded.blog"
                },
                "slug": "why-roadmaps-are-guesses",
                "text": "Every roadmap I have shipped was a guess with a deadline attached.",
                "title": "Why roadmaps are guesses",
                "url": "https://www.clearheaded.blog/p/why-roadmaps-are-guesses",
                "wordcount": 2140
              },
              {
                "authorHandle": "priyanakamura",
                "authorName": "Priya Nakamura",
                "authorUrl": "https://www.clearheaded.blog/people/priya-nakamura",
                "commentCount": 29,
                "comments": [],
                "contentStatus": "preview_only",
                "createdUtc": 1757980800,
                "description": "A shorter standup that actually surfaces risk",
                "isPaid": true,
                "language": "en",
                "postId": "148190442",
                "postType": "newsletter",
                "publication": {
                  "id": "pub_5521",
                  "name": "Clearheaded",
                  "subdomain": "clearheaded",
                  "url": "https://www.clearheaded.blog"
                },
                "reactionCount": 501,
                "replyCount": 6,
                "restackCount": 18,
                "slug": "the-three-question-standup",
                "subtitle": "",
                "text": "Most standups answer the same three questions badly. Here is a version that takes six minutes and actually works...",
                "title": "The three-question standup",
                "url": "https://www.clearheaded.blog/p/the-three-question-standup",
                "wordcount": 1420
              },
              {
                "authorHandle": "priyanakamura",
                "authorName": "Priya Nakamura",
                "authorUrl": "https://www.clearheaded.blog/people/priya-nakamura",
                "commentCount": 41,
                "comments": [],
                "contentStatus": "metadata_only",
                "createdUtc": 1757376000,
                "description": "Reader questions from last week's thread",
                "isPaid": false,
                "language": "en",
                "postId": "148075310",
                "postType": "thread",
                "publication": {
                  "id": "pub_5521",
                  "name": "Clearheaded",
                  "subdomain": "clearheaded",
                  "url": "https://www.clearheaded.blog"
                },
                "reactionCount": 203,
                "replyCount": 9,
                "restackCount": 5,
                "slug": "ask-me-anything-hiring-your-first-pm",
                "subtitle": "Reader questions from last week's thread",
                "title": "Ask me anything: hiring your first PM",
                "url": "https://www.clearheaded.blog/p/ask-me-anything-hiring-your-first-pm",
                "wordcount": 640
              }
            ]
          },
          "found": true
        }
      }
    }
  ]
}
```

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example (output fragment; HTTP assumed)

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 22

    Review these request fields before running. Keep the published provider and request method unchanged.

    fields
    Optional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost.
    max_items
    Optional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost.
    summary
    Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.
    jq
    Optional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost.
    max_cost_usd
    Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.
    Idempotency-Key
    Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.
    allowFallbacks
    Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.
    contentType
    Restrict to a single post type, or 'all' (e.g. newsletter).
    endDate
    Only return posts published on or before this date, format YYYY-MM-DD (e.g. 2024-12-31). Applied within the most recent 'limit' posts scanned.
    ignoreSources
    Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
    includeComments
    Include public comment threads and their direct replies on each post (e.g. true).
    includeContent
    Include the full article body as text, HTML and Markdown. Set false for metadata only, which is faster (e.g. false).
    limit
    Maximum number of recent posts to return when given a publication URL (1-100, default 25); ignored for a single post URL, which always returns that one post. You are billed per post returned, so a lower limit costs less.
    maxComments
    Maximum comments collected per post when 'includeComments' is true (0-500, default 20). Costs nothing extra (e.g. 50).
    minComments
    Only return posts with at least this many comments (e.g. 10).
    minReactions
    Only return posts with at least this many reactions (e.g. 100).
    minWordCount
    Only return posts with at least this many words, which filters out short notes and announcements (e.g. 1000).
    onlyFree
    Return only free (non-paywalled) posts (e.g. true).
    preferLatencyUnderMs
    Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
    source
    Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
    startDate
    Only return posts published on or after this date, format YYYY-MM-DD (e.g. 2024-01-01). Applied within the most recent 'limit' posts scanned, so raise 'limit' to reach older date ranges.
    url
    Either a Substack publication URL / custom domain to fetch its recent posts (e.g. https://www.astralcodexten.com), OR a single post URL to fetch just that one article with full content (e.g. https://www.astralcodexten.com/p/your-book-review).
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/anyapi/v1/run/substack.posts' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '{
      "limit": 3,
      "url": "https://www.astralcodexten.com"
    }'
  3. Check the response

    Sample response · Configured HTTP 200; actual status is unverified.

    Sample response
    {
      "output": {
        "data": {
          "items": [
            {
              "authorHandle": "priyanakamura",
              "authorName": "Priya Nakamura",
              "comments": [
                {
                  "authorHandle": "devonokafor",
                  "authorImage": "https://substackcdn.com/image/fetch/clearheaded/devon-avatar.png",
                  "authorName": "Devon Okafor",
                  "authorUrl": "https://substack.com/@devonokafor",
                  "commentId": "c_88213",
                  "createdUtc": 1758600000,
                  "isAuthor": false,
                  "isPinned": true,
                  "reactionCount": 44,
                  "replies": [
                    {
                      "authorHandle": "priyanakamura",
                      "authorImage": "https://substackcdn.com/image/fetch/clearheaded/priya-avatar.png",
                      "authorName": "Priya Nakamura",
                      "authorUrl": "https://www.clearheaded.blog/people/priya-nakamura",
                      "commentId": "c_88240",
                      "createdUtc": 1758603600,
                      "isAuthor": true,
                      "isPinned": false,
                      "reactionCount": 12,
                      "restackCount": 0,
                      "text": "Glad it landed. Curious how your team names the guess out loud."
                    }
                  ],
                  "restackCount": 2,
                  "text": "This matches every planning meeting I have sat through for a decade."
                }
              ],
              "contentStatus": "full",
              "createdUtc": 1758585600,
              "postId": "148302911",
              "postType": "newsletter",
              "publication": {
                "customDomain": "www.clearheaded.blog",
                "description": "Notes on building things without lying to yourself.",
                "id": "pub_5521",
                "image": "https://substackcdn.com/image/fetch/clearheaded/logo.png",
                "language": "en",
                "name": "Clearheaded",
                "paymentsEnabled": true,
                "subdomain": "clearheaded",
                "subscriberCount": 38400,
                "url": "https://www.clearheaded.blog"
              },
              "slug": "why-roadmaps-are-guesses",
              "text": "Every roadmap I have shipped was a guess with a deadline attached.",
              "title": "Why roadmaps are guesses",
              "url": "https://www.clearheaded.blog/p/why-roadmaps-are-guesses",
              "wordcount": 2140
            },
            {
              "authorHandle": "priyanakamura",
              "authorName": "Priya Nakamura",
              "authorUrl": "https://www.clearheaded.blog/people/priya-nakamura",
              "commentCount": 29,
              "comments": [],
              "contentStatus": "preview_only",
              "createdUtc": 1757980800,
              "description": "A shorter standup that actually surfaces risk",
              "isPaid": true,
              "language": "en",
              "postId": "148190442",
              "postType": "newsletter",
              "publication": {
                "id": "pub_5521",
                "name": "Clearheaded",
                "subdomain": "clearheaded",
                "url": "https://www.clearheaded.blog"
              },
              "reactionCount": 501,
              "replyCount": 6,
              "restackCount": 18,
              "slug": "the-three-question-standup",
              "subtitle": "",
              "text": "Most standups answer the same three questions badly. Here is a version that takes six minutes and actually works...",
              "title": "The three-question standup",
              "url": "https://www.clearheaded.blog/p/the-three-question-standup",
              "wordcount": 1420
            },
            {
              "authorHandle": "priyanakamura",
              "authorName": "Priya Nakamura",
              "authorUrl": "https://www.clearheaded.blog/people/priya-nakamura",
              "commentCount": 41,
              "comments": [],
              "contentStatus": "metadata_only",
              "createdUtc": 1757376000,
              "description": "Reader questions from last week's thread",
              "isPaid": false,
              "language": "en",
              "postId": "148075310",
              "postType": "thread",
              "publication": {
                "id": "pub_5521",
                "name": "Clearheaded",
                "subdomain": "clearheaded",
                "url": "https://www.clearheaded.blog"
              },
              "reactionCount": 203,
              "replyCount": 9,
              "restackCount": 5,
              "slug": "ask-me-anything-hiring-your-first-pm",
              "subtitle": "Reader questions from last week's thread",
              "title": "Ask me anything: hiring your first PM",
              "url": "https://www.clearheaded.blog/p/ask-me-anything-hiring-your-first-pm",
              "wordcount": 640
            }
          ]
        },
        "found": true
      }
    }

Loading related APIs…

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Substack Posts with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.