# Weibo Search API (weibo.search)

- Canonical page: https://everyinfra.com/en/weibo-api/search
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "weibo", "action": "search", "params": {...}}
- Price: $0.000806 per call ($0.81 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 50 per call
- Mode: sync; add "mode": "async" for slow tasks

Weibo Search finds public posts by `keyword` and returns each post's text, publish time, posting device, repost, comment and like counts, and whether it is a repost, plus the author's nickname, bio, follower count, verification status and verification note, with image and video links. Use it to see who is talking about a topic on Weibo, what they say and how far it spreads: public opinion monitoring, brand mention counts and finding key opinion leaders.

Tell verified big accounts apart by `author_verified_reason`, which states what the verification is for, and gauge reach with `author_follower_count`. Drop reposts with `is_repost` when you count original mentions. The trending list needs no keyword; read it with the Weibo Trending capability.

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | Specifies the search term for public posts in the search action. The trending action does not use a keyword parameter and returns current hot search topics rather than user posts. |
| limit | integer (1–50) | no | 20 | The most rows to return in this call, an integer from 1 to 50. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |

## 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. |
| 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. |
| device | Client the post was published from (such as an iPhone client). |
| repost_count | Reposts (as distinct from quote posts). null means not disclosed. |
| comment_count | Comments. null means not disclosed, not 0. |
| like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
| is_repost | Whether the post is a repost. |
| author_id | Author's unique ID on the platform. |
| author_name | Author's display name. |
| author_bio | Author bio. |
| author_follower_count | Author's follower count. null means not disclosed. |
| author_following_count | Number of accounts the author follows. |
| author_verified | Whether the author carries Weibo verification (the V badge). |
| author_verified_reason | Verification description (such as a company role); use it to tell what a verified account represents. |
| author_avatar_url | Author avatar URL. |
| image_urls | Array of image links in the platform's display order; absent when there are no images. |
| video_url | Video link of the post. |
| platform | Source platform identifier, the same as platform in the request (for example 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": "search",
  "params": {
    "keyword": "城市骑行"
  }
}'
```

```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": "search",
        "params": {
            "keyword": "城市骑行",
        },
    },
    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": "weibo",
  "action": "search",
  "results": [
    {
      "id": "•••",
      "url": "https://weibo.com/2590508284/5347470118748545",
      "text": "【层林逐风  赛道如画｜2026环北京·门头沟国际公路自行车赛第二日激战正酣】9月26日，为期三天的2026环北京·门头沟国际公路自行车赛进入第二个比赛日。本届赛事为国际自行车联盟（UCI）认证的2.2级亚洲巡回赛事，共吸引来自11个国家和地区的21支队伍的百余名职业车手及约3000名自行车爱好者参与，职业组总赛程超过340公里。赛事历时三日，设斋堂耐力、京西山地、城市绕圈三大特色赛段；当日举行的第二赛段——京西山地赛段，是爬坡难度最高、参与人群覆盖面最广的赛段，设职业组、大众骑游39公里组与大众骑游9公里组三个组别。本届赛事是2026京西国际山地户外季…",
      "posted_at": "Sat Sep 26 18:48:09 +0800 2026",
      "device": "HUAWEI Mate 60 Pro",
      "repost_count": 0,
      "comment_count": 0,
      "like_count": 1,
      "is_repost": false,
      "author_id": "•••",
      "author_name": "•••",
      "author_verified": true,
      "author_avatar_url": "https://tvax3.sinaimg.cn/•••",
      "image_urls": [
        "https://wx2.sinaimg.cn/orj1080/9a6804fcly1ihh9kjk3d5j20zk0npk68.jpg",
        "https://wx2.sinaimg.cn/orj1080/9a6804fcly1ihh9kjj04hj20nl0fq7b6.jpg",
        "https://wx3.sinaimg.cn/orj1080/9a6804fcly1ihh9kjp5dwj20tw13wqis.jpg"
      ],
      "platform": "weibo"
    },
    {
      "id": "•••",
      "url": "https://weibo.com/3075210951/5347460012838223",
      "text": "#九九骑行节# #九号城市主理人#",
      "posted_at": "Sat Sep 26 18:08:01 +0800 2026",
      "device": "iPhone客户端",
      "repost_count": 0,
      "comment_count": 0,
      "like_count": 0,
      "is_repost": true,
      "author_id": "•••",
      "author_name": "•••",
      "author_verified": false,
      "author_avatar_url": "https://tvax1.sinaimg.cn/•••",
      "video_url": "http://f.video.weibocdn.com/o0/gFJZA5WElx08AYxj2Opi01041201pS5N0E010.mp4?label=mp4_720p&template=1280x720.25.0&ori=0&ps=1CwnkDw1GXwCQx&Expires=1790423648&ssig=S036CI1rO4&KID=unistore,video",
      "platform": "weibo"
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### How do I count only original posts?

Filter on `is_repost`: true means the row is a repost, so drop those when counting original mentions. `repost_count` is how many times a post was reposted, a measure of how far it spread.

### How do I tell whether a poster is a big account?

Check `author_verified`, then read `author_verified_reason`, which states what the verification covers, such as a company role. Combine it with `author_follower_count` to judge how far that account's posts can reach.

### Can I get the trending list?

Search returns posts that contain your keyword. The trending list needs no keyword: read it with the Weibo Trending capability, which returns trending entries rather than posts.

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