# Tumblr 标签内容 API (tumblr.tag)

- Canonical page: [https://everyinfra.com/tumblr-api/tag](https://everyinfra.com/tumblr-api/tag?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "tumblr", "action": "tag", "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 200 per call
- Mode: sync; add "mode": "async" for slow tasks

Tumblr 标签内容按 `tag` 读取公开的标签内容，每条带帖子 `id`、链接、正文 `text`、帖子类型 `post_type`、作者用户名和昵称、互动总数 `note_count`、发布时间和 `tags`。追一个兴趣标签下大家在发什么，或从一个话题里找出值得跟的博主，先从这个接口看。

`tag` 是话题名，可以带 #。`hashtag` 是 `tag` 的兼容写法，两个都传时以 `tag` 为准；`post_type` 每次只能指定一种类型，取 any、text、photo、video、quote、link、audio 之一，不能传数组。默认返回 20 条，单次最多 200 条，比用户内容的 50 条上限深得多。参数示例的 `tag` 填的是 art。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| tag | not declared | yes | not declared | tag 的话题名，可带 #；返回公开标签内容。 |
| hashtag | not declared | no | not declared | tag 的兼容写法，优先级低于 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": "tag",
  "params": {
    "tag": "art"
  }
}'
```

```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": "tag",
        "params": {
            "tag": "art",
        },
    },
    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": "tag",
  "results": [
    {
      "id": "•••",
      "url": "https://blue-voids.tumblr.com/post/132651730803/keliy-anderson-staley",
      "text": "Keliy Anderson-Staley",
      "post_type": "photo",
      "author_username": "•••",
      "author_name": "•••",
      "author_url": "https://blue-voids.tumblr.com/•••",
      "note_count": 5386,
      "posted_at": "2015-11-06T06:53:08+00:00",
      "platform": "tumblr",
      "tags": [
        "art",
        "bw"
      ]
    },
    {
      "id": "•••",
      "url": "https://joquz.tumblr.com/post/132535555014/upriverdownriver",
      "text": "Upriver/Downriver",
      "post_type": "photo",
      "author_username": "•••",
      "author_name": "•••",
      "author_url": "https://joquz.tumblr.com/•••",
      "note_count": 1132,
      "posted_at": "2015-11-04T13:39:01+00:00",
      "platform": "tumblr",
      "tags": [
        "art"
      ]
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### `tag` 和 `hashtag` 同时传，用哪个？

用 `tag`。`hashtag` 只是兼容写法，优先级低于 `tag`，新接入直接用 `tag` 就行。`tag` 可以带 #，返回的是这个话题名下的公开标签内容。

### 能同时拿图片和视频帖吗？

不能用数组同时指定。`post_type` 一次只收一个类型，any 是不限；既要图片又要视频，就用 any 取回来再按 `post_type` 过滤，或者分两次各传一个类型。

### `note_count` 能拆成点赞数和转发数吗？

不能。Tumblr 把点赞与转发合并计为 notes，`note_count` 是这两者的互动总数，拆不开。跨帖子比较热度时，只能比总数。

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