Tumblr 用户内容 API
接口健康状态
- 24h 健康值
- 正常
- 健康 / 正常
- 可用
- 少量可用
- 基本不可用
24 小时趋势
30 天趋势
用户内容:返回列表,默认 20 条、单次最多 50 条;主要字段 id、url、text、post_type、author_username、author_name。
请求发到 POST https://api.everyinfra.com/api/v1/social,platform 填 tumblr,action 填 user_posts。 单价 $12.79 / 千次(每次 $0.01279),失败和空结果都不收费。 同步返回;慢任务可在请求体加 "mode": "async",先拿 job_id 再轮询。
Tumblr 用户内容按 username 列出一个博客发过的帖子。同一博客里文字、图片、视频等各类帖子混排,每条用 post_type 标出类型,另带正文 text、互动总数 note_count、发布时间、tags 和作者信息。监测一个博主或品牌博客的内容节奏、看哪类帖子互动高,用这个接口按博客取数。
username 填博客短名或 name.tumblr.com 域名,示例填的是 staff,不要在这个字段里放带 https:// 的完整链接。要只看一种帖子,post_type 可以在文本、图片、视频、引语、链接、音频里选一种,传 any 则不限。
AI 提示词
#请帮我用 EveryInfra 的「Tumblr 用户内容」接口(tumblr/user_posts)写一个数据采集脚本。
接口约定:
- 请求:POST https://api.everyinfra.com/api/v1/social,请求头 Authorization: Bearer <API Key>;Key 从环境变量 EVERYINFRA_API_KEY 读取,不要写进代码。
- 请求体里 platform 填 tumblr,action 填 user_posts,参数放在 params 里。
- 必填参数:
- username:博客短名或 name.tumblr.com 域名,不要在此字段传带 https:// 的完整链接;完整地址应放 url。profile 只整理公开博客资料,不保证粉丝数量。
- 可选参数:
- post_type:search / tag / user_posts 的单一帖子类型:any 不限、text 文本、photo 图片、video 视频、quote 引语、link 链接、audio 音频。
- limit:这次调用最多返回的条数,整数,1–50;不传按默认值,实际返回可能少于这个数。超过上限会在扣费前返回 422。(默认 20)
- 返回一组记录,每条记录的主要字段:id、url、text、post_type(内容类型(文字/图片/引用/链接/…)、author_username、author_name、author_url、note_count(互动总数)、posted_at、tags。
- 示例请求体:
{
"platform": "tumblr",
"action": "user_posts",
"params": {
"username": "staff"
}
}
- 计费:$12.79 / 千次;失败和空结果不扣费。
- 一次要采几十上百个时,在请求体加 "mode": "async":先拿到 job_id,再轮询 GET https://api.everyinfra.com/api/v1/jobs/{job_id} 取结果。
- 返回 422 时,按错误信息里的候选参数和允许值修正;返回 429 或 503 时,按 Retry-After 等待后重试。
写代码前,先问清楚我要采哪些对象、一共多少个、需要哪些字段、结果存成什么格式,再把方案和大概花费讲给我确认。请求参数
#| 参数名 | 位置 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
Authorization | header | string | 是 | - | Bearer 加你的 API Key。在控制台创建;不要放进网址或代码仓库。 |
platform | body | string | 是 | tumblr | 平台标识,固定值。 |
action | body | string | 是 | user_posts | 能力标识,固定值。 |
username | body.params | string | 是 | - | 博客短名或 name.tumblr.com 域名,不要在此字段传带 https:// 的完整链接;完整地址应放 url。profile 只整理公开博客资料,不保证粉丝数量。 |
post_type | body.params | string | 否 | - | search / tag / user_posts 的单一帖子类型:any 不限、text 文本、photo 图片、video 视频、quote 引语、link 链接、audio 音频;不是数组,profile 不使用此过滤。 |
limit | body.params | integer (1–50) | 否 | 20 | 这次调用最多返回的条数,整数,1–50;不传按默认值,实际返回可能少于这个数。超过上限会在扣费前返回 422。 |
代码示例
#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"
}
}'OpenAPI 定义 (JSON)示例从环境变量 EVERYINFRA_API_KEY 读取 Key,复制出去的代码不含你的 Key。
响应示例
#{ "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": { … }}
返回字段
#业务数据在 results 里;下表是每条记录可能包含的字段,平台没有提供的值不会被编造。
| 字段 | 含义 |
|---|---|
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。 |
常见问题
#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 条,需要铺得广,就先用标签。
错误与计费
#- 401
- 缺少 Key 或 Key 无效。
- 402
- 余额不足,先充值。
- 422
- 参数名或取值不对,按错误信息给的候选改;不扣费。
- 429
- 超过每分钟请求上限,按 Retry-After 等待后再试。
- 503
- 暂时无法完成,预扣的费用退回;结果未知时先核对,不要直接重发。
- 200 空结果
- 没有数据,不扣费。