# Tumblr 关键词搜索 API (tumblr.search)

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

Tumblr 关键词搜索按 `keyword` 检索公开帖子，每条带正文全文、链接、帖子类型、标签、互动总数和发布时间，以及博客的用户名、名称和主页链接。它回答「这个话题、作品或风格在 Tumblr 上怎么被讨论」，适合粉丝社群研究、品牌团队观察讨论，以及为内容或情感分析收集帖子、找出常写这个主题的博客。

`keyword` 是检索词，不是标签名。`post_type` 每次只传一个值，可选 any 不限、text 文字、photo 图片、video 视频、quote 引语、link 链接、audio 音频。`note_count` 是点赞和转发的合计，拆不开；没有标签时 `tags` 是空数组，不是 null；`posted_at` 为 UTC 时间。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | search 的公开帖子检索词；不是 tag 话题名。 |
| post_type | not declared | no | not declared | search / tag / user_posts 的单一帖子类型：any 不限、text 文本、photo 图片、video 视频、quote 引语、link 链接、audio 音频；不是数组，profile 不使用此过滤。 |
| limit | integer (1–200) | no | 20 | 这次调用最多返回的条数，整数，1–200；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 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": "search",
  "params": {
    "keyword": "film photography"
  }
}'
```

```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": "search",
        "params": {
            "keyword": "film photography",
        },
    },
    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": "search",
  "results": [
    {
      "id": "•••",
      "url": "https://www.tumblr.com/blog/view/heyscola/828814013050798080",
      "text": "Hudson Yards, 2026",
      "post_type": "text",
      "author_username": "•••",
      "author_name": "•••",
      "author_url": "https://www.tumblr.com/•••",
      "note_count": 0,
      "posted_at": "2026-09-26T10:30:37+00:00",
      "platform": "tumblr",
      "tags": [
        "black and white",
        "manhattan",
        "35mm"
      ]
    },
    {
      "id": "•••",
      "url": "https://capturedbykat.tumblr.com/post/828810369369882624/above-the-rio-grande-ii-orilla-verde",
      "text": "// Above the Rio Grande II // Orilla Verde Recreation Area, NM Olympus Infinity Stylus, Seattle Film Works expired film, August 2026",
      "post_type": "text",
      "author_username": "•••",
      "author_name": "•••",
      "author_url": "https://capturedbykat.tumblr.com/•••",
      "note_count": 0,
      "posted_at": "2026-09-26T09:32:42+00:00",
      "platform": "tumblr",
      "tags": [
        "rio grande",
        "orilla verde",
        "film photography"
      ]
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### `keyword` 和按标签搜索一样吗？

不一样。`keyword` 是在公开帖子里匹配的检索词，不是标签名。要读某个标签下的帖子，用 Tumblr 标签内容，传标签名即可，开头带不带 # 都行；它同样支持 `post_type` 过滤。

### `note_count` 怎么读？

`note_count` 是 Tumblr 的互动总数：点赞和转发被合并计为 notes，无法拆开。数值高说明点赞多、转发多或两者都多，所以只适合和其他帖子的 `note_count` 相比，不要直接拿去和别的平台的点赞数或分享数比较。

### 找到一个博客后怎么读它的更多帖子？

把这一行的 `author_username`（博客名）传给 Tumblr 用户内容，就能列出这个博客的公开帖子，也可以用 `post_type` 只看某一类；`author_url` 是博客本身的链接，可以在浏览器里打开。

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