# Tumblr 用户内容 API (tumblr.user_posts)

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

Tumblr 用户内容按 `username` 列出一个博客发过的帖子。同一博客里文字、图片、视频等各类帖子混排，每条用 `post_type` 标出类型，另带正文 `text`、互动总数 `note_count`、发布时间、`tags` 和作者信息。监测一个博主或品牌博客的内容节奏、看哪类帖子互动高，用这个接口按博客取数。

`username` 填博客短名或 name.tumblr.com 域名，示例填的是 staff，不要在这个字段里放带 https:// 的完整链接。要只看一种帖子，`post_type` 可以在文本、图片、视频、引语、链接、音频里选一种，传 any 则不限。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | 博客短名或 name.tumblr.com 域名，不要在此字段传带 https:// 的完整链接；完整地址应放 url。profile 只整理公开博客资料，不保证粉丝数量。 |
| post_type | not declared | no | not declared | search / tag / user_posts 的单一帖子类型：any 不限、text 文本、photo 图片、video 视频、quote 引语、link 链接、audio 音频；不是数组，profile 不使用此过滤。 |
| limit | integer (1–50) | no | 20 | 这次调用最多返回的条数，整数，1–50；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| post_type | 内容类型（文字/图片/引用/链接/音频/视频）。Tumblr 按类型区分排版，同一博客里混排。 |
| author_username | 作者用户名（@handle），通常可用于拼 URL。 |
| author_name | 作者昵称（显示名）。 |
| author_url | 作者在原平台的主页链接。 |
| note_count | 互动总数。Tumblr 把点赞与转发合并计为 notes，**拆不开**。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| tags | 标签数组。无标签时为空数组，不是 null。 |

## 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": "tumblr",
  "action": "user_posts",
  "params": {
    "username": "staff"
  }
}'
```

```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": "tumblr",
        "action": "user_posts",
        "params": {
            "username": "staff",
        },
    },
    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": "tumblr",
  "action": "user_posts",
  "results": [
    {
      "id": "•••",
      "url": "https://staff.tumblr.com/post/828009069026721792/premium-just-got-better",
      "text": "Premium just got better Your feedback matters. Tumblr Premium now includes a few brand new, top-requested features. Saved Posts & Collections Never lose a post again. Use the bookmark icon to save any post you want to come back to, and sort them into private Collections. This is …",
      "post_type": "regular",
      "author_username": "staff",
      "author_name": "•••",
      "author_url": "https://staff.tumblr.com/•••",
      "note_count": 2600,
      "posted_at": "2026-09-17T13:16:22+00:00",
      "platform": "tumblr",
      "tags": [
        "tumblr premium",
        "new features"
      ]
    },
    {
      "id": "•••",
      "url": "https://staff.tumblr.com/post/822057428507049984/in-case-youre-looking-for-a-blog-thats-gone",
      "text": "changes : Deleted accounts can now be recovered up to 30 days later We’re making a big change to how account deletion works on Tumblr, and we’re really excited about it, because this is something that some of you have been requesting for… well… a literal decade. Before today, whe…",
      "post_type": "regular",
      "author_username": "staff",
      "author_name": "•••",
      "author_url": "https://staff.tumblr.com/•••",
      "note_count": 12368,
      "posted_at": "2026-07-13T20:37:36+00:00",
      "platform": "tumblr",
      "tags": [
        "tumblr"
      ]
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### `username` 能填完整的博客链接吗？

不要填。`username` 只收博客短名或 name.tumblr.com 域名，不要在这个字段里放带 https:// 的完整链接。从标签内容的结果里看到值得跟的博主，结果里的 `author_username` 通常可以拼成 name.tumblr.com，这个域名正好能填进 `username`。

### 怎么只看某一种帖子？

给 `post_type` 传一个类型：text、photo、video、quote、link 或 audio，any 是不限。它不是数组，一次只能指一个类型；想分析一个博客偏爱哪种形式，可以每种各取一次，再对比 `note_count`。

### 用户内容和标签内容该先用哪个？

已经知道要看哪个博客，用用户内容，传 `username`；只有话题、不知道博客，用标签内容，传话题标签。用户内容单次最多 50 条，标签内容最多 200 条，需要铺得广，就先用标签。

## Also

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