# 微博 用户文章 API (weibo.user_articles)

- Canonical page: [https://everyinfra.com/weibo-api/user_articles](https://everyinfra.com/weibo-api/user_articles?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "weibo", "action": "user_articles", "params": {...}}
- Price: $0.000792 per call ($0.79 per 1,000 requests); failed calls and empty results are not charged
- Returns: list
- 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=weibo&action=user_articles

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| user_id | not declared | yes | not declared | 微博数字 UID，也可传含 /u/数字UID 的主页链接；不收昵称（先用 user_search 按昵称找到 user_id），在扣费前拒绝（422）。返回这个用户主页「微博」栏里筛「文章」看到的微博，一次返回最新的一页（约 10 条），不翻页，不收 page_token 和 limit。 |
| limit | integer (1–) | no | not declared | 这次调用最多返回的条数，整数，至少为 1；不传按默认值，实际返回可能少于这个数。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| type | 记录类型，取值随能力而定（如 video / image / text）。 |
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| mblogid | 微博的 mblogid（user_articles、profile_feed）。 |
| url | 该记录在原平台上的可访问链接。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| edited_at | 微博的编辑时间（user_articles、profile_feed），ISO 8601、UTC。 |
| edit_count | 微博的编辑次数（user_articles、profile_feed）。 |
| device | 发布设备（如「iPhone客户端」）。 |
| ip_location | 发布时的 IP 属地（comment_replies、user_articles、profile_feed），如「来自 广东」；微博没显示时没有。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| like_count_label | 点赞数的原文（user_articles、profile_feed）：微博页面上写的，如「100万+」「2379.8万」。 |
| comment_count | 评论数。null 表示不公开，不等于 0。 |
| comment_count_label | 评论数的原文（user_articles、profile_feed）：微博页面上写的，如「100万+」「2379.8万」。 |
| repost_count | 转发数（区别于引用转发）。null 表示不公开。 |
| repost_count_label | 转发数的原文（user_articles、profile_feed）：微博页面上写的，如「100万+」「2379.8万」。 |
| view_count | 阅读数（post_detail、user_articles、profile_feed）：微博显示的这条微博被阅读的次数；多数微博不显示阅读数，这时没有这个字段；user_posts 的列表回包里没有。 |
| author_id | 作者在原平台的唯一 ID。 |
| author_username | 作者用户名（@handle），通常可用于拼 URL。 |
| author_name | 作者昵称（显示名）。 |
| author_avatar_url | 作者头像。search 部分请求不返回。 |
| author_verified | 作者是否加 V。search 部分请求不返回。 |
| author_verified_type | 作者的认证类型（user_articles、profile_feed）。 |
| author_verified_reason | 认证说明（如「XX公司CEO」），判断大V身份靠它；没认证时没有。search、user_posts 部分请求不返回。 |
| author_bio | 作者简介；作者没填时没有。search、user_posts 部分请求不返回。 |
| author_follower_count | 作者粉丝数。search、user_posts 部分请求不返回。video 只在按视频链接或视频编号查时有，是约数。 |
| author_follower_count_label | 作者粉丝数的原文（user_articles、profile_feed）：微博页面上写的，如「100万+」「2379.8万」。 |
| author_following_count | 作者关注数。search、user_posts 部分请求不返回。 |
| author_following_count_label | 作者关注数的原文（user_articles、profile_feed）：微博页面上写的，如「100万+」「2379.8万」。 |
| image_urls | 图片列表；不带图的微博没有。 |
| image_count | 微博里的图片张数（user_articles、profile_feed）。 |
| video_id | 视频编号（video、collection_videos、video_feed）。 |
| video_url | 视频链接；不是视频微博时没有。 |
| duration_sec | 视频时长（秒；post_detail、user_posts、video、collection_videos、video_feed、user_articles、profile_feed 的视频微博）。 |
| duration_seconds | 时长，单位秒。非视频/音频内容为 null。 |
| cover_image_url | 封面图。 |
| play_count | 视频播放数（video、collection_videos、video_feed、user_articles、profile_feed）。collection_videos 和按微博链接或微博 ID 查的 video 是准确数；video 按视频链接或视频编号查时、video_feed 里是约数（微博显示「13.8万」这类，换成了数字）。不是 view_count（微博阅读数）。 |
| play_count_label | 视频播放数的原文（user_articles、profile_feed）：微博页面上写的，如「100万+」「2379.8万」。 |
| hashtags | 正文里的话题标签数组，按出现顺序；没有时不出现这个字段。 |
| mentions | 微博里 @ 提到的账号（user_articles、profile_feed）。 |
| links | 个人主页上的链接（user_about），数组；user_articles、profile_feed 里是微博里的链接。 |
| links_detail | 微博里每个链接的详情（user_articles、profile_feed）：[{url, short_url, title}]。 |
| is_long_text | 是不是长微博（post_detail / user_posts / user_articles / profile_feed）。user_posts 上长微博的 text 只有开头一段（约 140 字）。 |
| is_truncated | `text` 是不是被截断的（user_articles、profile_feed）：是 true 时，全文用 `id` 调 post_detail 取。 |
| is_pinned | 是不是置顶微博（user_articles、profile_feed）。 |
| is_repost | 是否为转发。 |
| is_paid | 是不是付费微博（user_articles、profile_feed）。 |
| is_ad | 是不是广告微博（user_articles、profile_feed）。 |
| original_post_id | 转发微博时，被转发的原微博 ID（post_detail / user_posts / user_articles / profile_feed）；可作为 post_detail 的 url 传入读原微博。不是转发时没有这个键。 |
| reposted_post | 被转发的那条微博（user_articles、profile_feed）：形状和一行相同，里面不再套被转发的微博。 |
| article_title | 文章标题（user_articles）。 |
| article_url | 文章地址（user_articles）；文章正文不在这里，要正文请打开这个地址。 |
| article_cover_url | 文章封面图地址（user_articles）。 |
| article_author | 文章署名（user_articles）；不一定是发这条微博的人。 |
| 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": "weibo",
  "action": "user_articles",
  "params": {
    "user_id": "1642634100"
  }
}'
```

```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": "weibo",
        "action": "user_articles",
        "params": {
            "user_id": "1642634100",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "weibo",
  "action": "user_articles",
  "results": [
    {
      "type": …,
      "id": …,
      "mblogid": …,
      "url": …,
      "text": …,
      "posted_at": …,
      "edited_at": …,
      "edit_count": …,
      "device": …,
      "ip_location": …,
      "like_count": …,
      "like_count_label": …,
      "comment_count": …,
      "comment_count_label": …,
      "repost_count": …,
      "repost_count_label": …,
      "view_count": …,
      "author_id": …,
      "author_username": …,
      "author_name": …,
      "author_avatar_url": …,
      "author_verified": …,
      "author_verified_type": …,
      "author_verified_reason": …,
      "author_bio": …,
      "author_follower_count": …,
      "author_follower_count_label": …,
      "author_following_count": …,
      "author_following_count_label": …,
      "image_urls": …,
      "image_count": …,
      "video_id": …,
      "video_url": …,
      "duration_sec": …,
      "duration_seconds": …,
      "cover_image_url": …,
      "play_count": …,
      "play_count_label": …,
      "hashtags": …,
      "mentions": …,
      "links": …,
      "links_detail": …,
      "is_long_text": …,
      "is_truncated": …,
      "is_pinned": …,
      "is_repost": …,
      "is_paid": …,
      "is_ad": …,
      "original_post_id": …,
      "reposted_post": …,
      "article_title": …,
      "article_url": …,
      "article_cover_url": …,
      "article_author": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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