# Patreon 关键词搜索 API (patreon.search)

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

Patreon 关键词搜索按 `keyword` 检索创作者主页，例如 watercolor，返回的是创作者，不是帖子：名称 `name`、主页短名 `vanity`、链接 `url`、标语 `tagline`、赞助者总数 `patron_count` 和发布内容总数 `post_count`。付费帖的正文不在检索范围内，想找某个主题的创作者时用它。

结果里还带 `rank`、`category`、`days_running` 和 `published_at`，字段和创作者发现那一页一致。这个接口不要求选分类，不需要事先知道目录里有哪些分类。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | search 的创作者关键词，检索创作者主页，不是搜索付费帖全文。 |
| limit | integer (1–50) | no | 20 | 这次调用最多返回的条数，整数，1–50；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| vanity | 主页短名。 |
| url | 该记录在原平台上的可访问链接。 |
| tagline | 标语。 |
| patron_count | 赞助者总数。 |
| post_count | 发布内容总数。null 表示不公开，不等于 0。 |
| rank | 排行榜名次。 |
| category | 分类名称，取值为原平台的分类体系，未做跨平台归一。 |
| days_running | 运营天数。 |
| published_at | 发布时间。 |
| avatar_url | 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接，可能有时效。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## 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": "patreon",
  "action": "search",
  "params": {
    "keyword": "watercolor"
  }
}'
```

```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": "patreon",
        "action": "search",
        "params": {
            "keyword": "watercolor",
        },
    },
    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 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "patreon",
  "action": "search",
  "results": [
    {
      "name": "Karen Rice Art",
      "vanity": "karenriceart",
      "url": "https://www.patreon.com/karenriceart",
      "tagline": "Step by Step Watercolor / Watercolour Tutorials",
      "avatar_url": "https://c10.patreonusercontent.com/•••",
      "platform": "patreon"
    },
    {
      "name": "Kristin Van Leuven",
      "vanity": "kristinvanleuven",
      "url": "https://www.patreon.com/kristinvanleuven",
      "tagline": "Painting with watercolor together",
      "avatar_url": "https://c10.patreonusercontent.com/•••",
      "platform": "patreon"
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 能搜付费帖里的内容吗？

不能。`keyword` 检索的是创作者主页，不是付费帖全文，不要拿帖子里的句子当关键词，按创作者的题材和风格这类主题词搜。

### 搜索和按分类发现该选哪个？

手里有主题词，用关键词搜索，不需要先知道分类；只想看某个分类下的创作者，用创作者发现那一页，那里 `category` 必填，有综合榜和各个内容分类。两个接口返回的字段相同，区别只在怎么找到创作者。

### 怎么判断搜到的创作者规模？

看 `patron_count`（赞助者总数）和 `post_count`（发布内容总数），再用 `days_running` 看运营了多久，`rank` 是排行榜名次。`post_count` 为 null 是接口没有公开这项数据，不等于 0，不要当成没发过内容。

## Also

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