# Patreon 用户内容 API (patreon.user_posts)

- Canonical page: [https://everyinfra.com/patreon-api/user_posts](https://everyinfra.com/patreon-api/user_posts?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "patreon", "action": "user_posts", "params": {...}}
- Price: $0.001389 per call ($1.39 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

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | profile / user_posts 的创作者短名，可写 @短名，或含 /c/短名 的 Patreon 链接。只读取公开资料、档位与公开帖子信息，不提供付费墙内正文。 |
| limit | integer (1–50) | no | 20 | 这次调用最多返回的条数，整数，1–50；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| url | 该记录在原平台上的可访问链接。 |
| post_type | 内容类型。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| comment_count | 评论数。null 表示不公开，不等于 0。 |
| is_public | 内容是否公开可见。 |
| author_vanity | 作者短名。 |
| thumbnail_url | 缩略图链接，分辨率低于 image_url。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| 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": "user_posts",
  "params": {
    "username": "kurzgesagt"
  }
}'
```

```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": "user_posts",
        "params": {
            "username": "kurzgesagt",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-10-24T18:28:34Z. `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": "user_posts",
  "results": [
    {
      "id": "•••",
      "title": "The Fall of the Last Zulu King - New Nightshift Video",
      "url": "https://www.patreon.com/Kurzgesagt/posts/fall-of-last-new-172232513",
      "post_type": "video_embed",
      "like_count": 49,
      "comment_count": 1,
      "author_vanity": "Kurzgesagt",
      "posted_at": "2026-10-23T14:29:30+00:00",
      "platform": "patreon"
    },
    {
      "id": "•••",
      "title": "The Real Story of the Mongolian Singing Dunes - New Nightshift Video",
      "url": "https://www.patreon.com/Kurzgesagt/posts/real-story-of-172335229",
      "post_type": "video_embed",
      "like_count": 73,
      "comment_count": 1,
      "author_vanity": "Kurzgesagt",
      "posted_at": "2026-10-15T14:00:13+00:00",
      "platform": "patreon"
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## 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
