# Weibo Popular posts API (weibo.popular_posts)

- Canonical page: [https://everyinfra.com/en/weibo-api/popular_posts](https://everyinfra.com/en/weibo-api/popular_posts?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "weibo", "action": "popular_posts", "params": {...}}
- Price: $0.000792 per call ($0.79 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of up to 20 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- 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=popular_posts

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| page_token | not declared | no | not declared | Page token. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. About 20 posts per page; each page is one call and `limit` has no effect. Tokens last 24 hours, and the last page has no `next_page_token`. |
| ranking | enum: day_before / female / hour / male / week / yesterday | no | not declared | Which ranking: `hour` (default), `yesterday`, `day_before`, `week`, `male` or `female`. An unknown value returns 422 and is not charged; start again from the first page after changing it. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| video_id | Video ID (video, collection_videos). |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
| play_count | Number of plays of a video (video, collection_videos). Exact on `collection_videos`, and on `video` when you look the post up by post link or ID; approximate on `video` when you use a video link or `1034:` ID, because Weibo shows a rounded figure. Not the same as `view_count`, the read count of a post. |
| like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
| comment_count | Comments. null means not disclosed, not 0. |
| repost_count | Reposts (as distinct from quote posts). null means not disclosed. |
| duration_sec | Video length in seconds (video posts on post_detail / user_posts, and video / collection_videos). |
| duration_seconds | Duration in seconds. null for content that is not video or audio. |
| video_url | Video link of the post. |
| cover_image_url | platform-native meaning |
| hashtags | Hashtags in the text, in order of appearance; absent when there are none. |
| author_id | Author's unique ID on the platform. |
| author_name | Author's display name. |
| author_verified | Whether the author carries Weibo verification (the V badge). Not returned on some requests (search). |
| author_avatar_url | Author avatar URL. Not returned on some requests (search). |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
| image_urls | Array of image links in the platform's display order; absent when there are no images. |
| device | Client the post was published from (such as an iPhone client). |
| ip_location | IP region shown with the reply (comment_replies), such as Guangdong; absent when Weibo shows none. |
| view_count | Read count Weibo shows for the post (post_detail); user_posts list rows do not carry it. |
| is_long_text | Whether the post is a long post (post_detail / user_posts). On user_posts, a long post's text holds only its opening (about 140 characters). |
| is_repost | Whether the post is a repost. |
| original_post_id | For a repost, the ID of the original post (post_detail / user_posts); pass it as `url` to post_detail to read the original. Absent when the post is not a repost. |
| author_follower_count | Number of followers the author has. Not returned on some requests (search, user_posts). On `video` it comes only when `url` is a video link or `1034:` ID, and is approximate. |

## 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": "popular_posts",
  "params": {}
}'
```

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

## Response example

Real response to the example request above, captured 2026-11-21T07:23:43Z. `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": "weibo",
  "action": "popular_posts",
  "results": [
    {
      "id": "•••",
      "url": "https://m.weibo.cn/detail/5367694816969115",
      "text": "#现在就出发# 校服体验卡限时生效中 📷#现在就出发4#",
      "posted_at": "2026-11-21T06:13:54+00:00",
      "like_count": 132170,
      "comment_count": 10978,
      "repost_count": 33354,
      "hashtags": [
        "现在就出发",
        "现在就出发4"
      ],
      "author_id": "•••",
      "author_name": "-•••-",
      "author_verified": true,
      "author_avatar_url": "https://tvax4.sinaimg.cn/•••",
      "platform": "weibo",
      "image_urls": [
        "https://wx4.sinaimg.cn/large/e436fd4aly1ij9s7nzobyj22yd1ype81.jpg",
        "https://wx4.sinaimg.cn/large/e436fd4aly1ij9s7tt6v0j22402v6x6q.jpg",
        "https://wx1.sinaimg.cn/large/e436fd4aly1ij9s79hqw1j22cu4p6x6q.jpg"
      ],
      "ip_location": "•••",
      "is_long_text": true
    },
    {
      "id": "•••",
      "url": "https://m.weibo.cn/detail/5367698806539314",
      "video_id": "2321325367698640207989",
      "text": "http://t.cn/AXTMj3et",
      "posted_at": "2026-11-21T06:29:45+00:00",
      "like_count": 3128,
      "comment_count": 39712,
      "repost_count": 362,
      "video_url": "https://wblive-out.api.weibo.com/2/wblive/room/play?id=1022:2321325367698640207989",
      "cover_image_url": "https://wx3.sinaimg.cn/large/69c9e913gy1ij9ssqjr9bj20u0140wp0.jpg",
      "author_id": "•••",
      "author_name": "种•••昊",
      "author_verified": true,
      "author_avatar_url": "https://tvax2.sinaimg.cn/•••",
      "platform": "weibo",
      "device": "微博直播平台",
      "ip_location": "•••"
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": 20,
  "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
