# 微博 API

按关键词分别搜索微博与账号，按数字 UID 读取账号资料与账号发布的微博，按链接读取单条微博详情与评论，并读取热搜词条。

- Domain: social · 11 data actions
- Canonical page: https://everyinfra.com/weibo-api
- Failures and empty results never form a final charge.

## Actions

### search — 关键词搜索
- Mode: sync · Price: 58 credits ($0.81 / 千次)
- Required: keyword

- Returns fields: id, url, text, posted_at, device, repost_count, comment_count, like_count, is_repost, author_id, author_name, author_bio, author_follower_count, author_following_count, author_verified, author_verified_reason, author_avatar_url, image_urls, video_url, platform

### profile — 主页或对象详情
- Mode: sync · Price: 40 credits ($0.56 / 千次)
- Required: user_id

- Returns fields: user_id, display_name, url, bio, gender, follower_count, following_count, post_count, is_verified, verified_reason, avatar_url, cover_image_url, company, created_at, platform

### comments — 评论
- Mode: sync · Price: 40 credits ($0.56 / 千次)
- Required: url

- Returns fields: id, text, like_count, author_id, author_name, author_avatar_url, post_id, post_url, posted_at, platform

### trending — 热榜
- Mode: sync · Price: 40 credits ($0.56 / 千次)
- Required: —

- Returns fields: rank, title, category, hot_value, label, is_hot, is_new, url, platform

### post_detail — 内容详情
- Mode: sync · Price: 58 credits ($0.81 / 千次)
- Required: url

- Returns fields: id, url, text, posted_at, device, repost_count, comment_count, like_count, view_count, is_repost, original_post_id, is_long_text, author_id, author_name, author_bio, author_follower_count, author_following_count, author_verified, author_verified_reason, author_avatar_url, image_urls, video_url, duration_sec, duration_seconds, platform, next_page_token

### user_posts — 用户内容
- Mode: sync · Price: 58 credits ($0.81 / 千次)
- Required: user_id

- Optional: page_token, post_type
- Allowed values: post_type (all/image/original/video)

- Returns fields: id, url, text, posted_at, device, repost_count, comment_count, like_count, view_count, is_repost, original_post_id, is_long_text, author_id, author_name, author_bio, author_follower_count, author_following_count, author_verified, author_verified_reason, author_avatar_url, image_urls, video_url, duration_sec, duration_seconds, platform, next_page_token

### user_search — 账号搜索
- Mode: sync · Price: 58 credits ($0.81 / 千次)
- Required: keyword

- Optional: page_token

- Returns fields: user_id, display_name, url, bio, follower_count, following_count, is_verified, verified_reason, avatar_url, next_page_token, platform

### reposts — 转发列表
- Mode: sync · Price: 58 credits ($0.81 / 千次)
- Required: url

- Returns fields: id, url, text, posted_at, device, repost_count, comment_count, like_count, is_repost, original_post_id, author_id, author_name, author_bio, author_follower_count, author_following_count, author_verified, author_verified_reason, author_avatar_url, platform

### comment_replies — 评论回复
- Mode: sync · Price: 58 credits ($0.81 / 千次)
- Required: comment_id

- Returns fields: id, text, like_count, posted_at, root_comment_id, reply_to_comment_id, ip_location, author_id, author_name, author_avatar_url, platform

### topic_search — 话题搜索
- Mode: sync · Price: 58 credits ($0.81 / 千次)
- Required: keyword

- Optional: page_token

- Returns fields: title, url, text, cover_image_url, discuss_count, read_count, next_page_token, platform

### user_post_search — 在用户微博里搜索
- Mode: sync · Price: 58 credits ($0.81 / 千次)
- Required: user_id, keyword

- Optional: page_token

- Returns fields: id, url, text, posted_at, device, repost_count, comment_count, like_count, is_repost, is_long_text, author_id, author_name, author_verified, author_avatar_url, image_urls, video_url, duration_sec, duration_seconds, platform, next_page_token

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog
- Agents guide: https://everyinfra.com/agents.md
