# Substack Search API (substack.search)

- Canonical page: [https://everyinfra.com/en/substack-api/search](https://everyinfra.com/en/substack-api/search?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "substack", "action": "search", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 10, max 30 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=substack&action=search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | Specifies the discovery query string for locating Substack newsletters and publications. It does not perform full-text searches across post bodies. |
| limit | integer (1–30) | no | 10 | The most rows to return in this call, an integer from 1 to 30. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| handle | platform-native meaning |
| name | Name of the object itself, for account, product and business capabilities. |
| url | Link to the record on the platform. |
| custom_domain | platform-native meaning |
| bio | Profile bio written by the account; may contain line breaks and emoji. |
| language | Content language code (for example zh, en) as judged by the platform; it can be wrong. |
| subscriber_count | platform-native meaning |
| payments_enabled | platform-native meaning |
| avatar_url | Avatar image link. Some platforms return sized CDN links that can expire. |
| cover_url | platform-native meaning |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
| author_name | Author's display name. |
| author_username | Author's username (@handle), usually usable in URLs. |
| top_posts | platform-native meaning |

## Example

```bash
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": "search",
  "params": {
    "keyword": "climate"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "substack",
        "action": "search",
        "params": {
            "keyword": "climate",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 10. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "substack",
  "action": "search",
  "results": [
    {
      "id": "1577253",
      "handle": "•••",
      "name": "Climate Drift",
      "url": "https://climatedrift.substack.com",
      "custom_domain": "www.climatedrift.com",
      "bio": "Your cheat-sheet to climate: Breaking down real solutions, hard numbers, and career moves for operators, founders, and investors who want impact.",
      "language": "en",
      "payments_enabled": true,
      "avatar_url": "https://substackcdn.com/•••",
      "cover_url": "https://substack-post-media.s3.amazonaws.com/public/images/1e57b0db-25cb-435f-b067-4bd437423c48_1280x1280.png",
      "platform": "substack",
      "author_name": "•••",
      "author_username": "•••"
    },
    {
      "id": "2693993",
      "handle": "•••",
      "name": "Your Daily Dose of Climate Hope",
      "url": "https://climateactapp.substack.com",
      "bio": "Action is the antidote to despair. Subscribe now to get one easy action to take every weekday, along with stories about the trends, innovations, and people creating a better world! Enjoy our Weekly Quiz on Saturdays and Good News Roundup on Sundays!",
      "language": "en",
      "payments_enabled": true,
      "avatar_url": "https://substackcdn.com/•••",
      "cover_url": "https://substack-post-media.s3.amazonaws.com/public/images/e88a5e06-81ff-4c12-be5a-55ecc6cfb03f_1280x372.png",
      "platform": "substack",
      "author_name": "•••",
      "author_username": "•••"
    }
  ],
  "count": 10,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=substack
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
