# 搜索帖子

按关键词搜索微博帖子。要取某条微博的详情用 weibo_status_detail_v1，要取评论用 weibo_status_comments_v1。

ID: native-http:social.weibo.post.search · Region: cn · Status: available

catalog_version: 5c920c774a55e44d7e8c709143b88a18b8b2afcef91a5d19a8c9ae5d565d9077
updated_at: 2026-10-21T12:06:16.523771+00:00

按关键词搜索微博帖子。要取某条微博的详情用 weibo_status_detail_v1，要取评论用 weibo_status_comments_v1。

历史数据以数据集发布版本定义覆盖周期；实时读取反映请求时资料，不保证覆盖全部记录。

Docs: https://docs.asklear.cn/capabilities/native-http%3Asocial.weibo.post.search

## POST /v1/native/social/weibo/posts/search

native · available · api_key

REST 需要客户 API Key；MCP 需要已开放的服务及现有授权；CLI 需要已发布且包含该命令的客户端。

按关键词搜索微博帖子。要取某条微博的详情用 weibo_status_detail_v1，要取评论用 weibo_status_comments_v1。

按成功请求计费，每次请求计一次；max_credits 限制本次费用上限。

恢复同一次原生请求时复用原 Idempotency-Key。

等待态响应提供结果/状态引用。先读取原结果；超时或结果不明时禁止自动重新提交付费执行。401/403/422 应先修正鉴权、权限或输入。

### Input schema / 输入契约

```json
{
  "$defs": {
    "Schema1": {}
  },
  "additionalProperties": false,
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "content_type": {
          "description": "包含类型/Include type: all(全部), pic(含图片), video(含视频), music(含音乐), link(含短链)",
          "enum": [
            "all",
            "image",
            "video",
            "music",
            "link"
          ],
          "type": "string"
        },
        "page": {
          "description": "页码/Page number",
          "maximum": 50,
          "minimum": 1,
          "type": "integer"
        },
        "query": {
          "description": "搜索关键词/Search keyword",
          "maxLength": 100,
          "minLength": 1,
          "type": "string"
        },
        "search_type": {
          "description": "搜索类型/Search type: all(全部), hot(热门), original(原创), verified(认证用户), media(媒体), viewpoint(观点)",
          "enum": [
            "all",
            "hot",
            "original",
            "verified",
            "media",
            "viewpoint"
          ],
          "type": "string"
        },
        "time_range": {
          "anyOf": [
            {
              "maxLength": 64,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Time scope; custom:YYYY-MM-DD-H:YYYY-MM-DD-H accepts hourly boundaries."
        }
      },
      "required": [
        "query"
      ],
      "type": "object"
    },
    "max_credits": {
      "anyOf": [
        {
          "maximum": 1000000000,
          "minimum": 0,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "task_query": {
      "anyOf": [
        {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional task attribution: when provided, write one concise, self-contained task_query in the user's language and reuse that exact value in every call for the task, including discovery, search, approval retry, results, export, and status checks. For MCP calls, when omitted, Asklear records a generic non-user-specific attribution so compatible clients can still call the tool. REST calls may omit it and remain unattributed. It is a task description, not a task identifier. Do not include hidden reasoning, credentials, or direct personal identifiers such as phone numbers, email addresses, identity numbers, or street addresses.",
          "maxLength": 300
        },
        {
          "type": "null"
        }
      ],
      "default": null
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}
```

### Synthetic request / 合成请求

```json
{
  "input": {
    "query": "example"
  }
}
```

### Response schema / 响应契约

```json
{
  "$defs": {
    "Schema1": {},
    "Schema2": {
      "properties": {
        "api_name": {
          "type": "string"
        },
        "credits_charged": {
          "minimum": 0,
          "type": "integer"
        },
        "latency_ms": {
          "minimum": 0,
          "type": "integer"
        },
        "next_input": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "content_type": {
                  "enum": [
                    "all",
                    "image",
                    "video",
                    "music",
                    "link"
                  ],
                  "type": "string"
                },
                "page": {
                  "maximum": 50,
                  "minimum": 1,
                  "type": "integer"
                },
                "query": {
                  "maxLength": 100,
                  "minLength": 1,
                  "type": "string"
                },
                "search_type": {
                  "enum": [
                    "all",
                    "hot",
                    "original",
                    "verified",
                    "media",
                    "viewpoint"
                  ],
                  "type": "string"
                },
                "time_range": {
                  "anyOf": [
                    {
                      "maxLength": 64,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Time scope; custom:YYYY-MM-DD-H:YYYY-MM-DD-H accepts hourly boundaries."
                }
              },
              "required": [
                "query"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "api_name",
        "request_id",
        "latency_ms",
        "credits_charged",
        "next_input"
      ],
      "type": "object"
    }
  },
  "properties": {
    "data": {
      "additionalProperties": true,
      "description": "Known optional fields from sanitized offline fixtures; conditional fields may be null. Additional business fields are retained.",
      "properties": {
        "parsed_data": {
          "additionalProperties": true,
          "properties": {
            "pagination": {
              "additionalProperties": true,
              "properties": {
                "has_next_page": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "next_page_url": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "results": {
              "items": {
                "additionalProperties": true,
                "properties": {
                  "content": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "interaction": {
                    "additionalProperties": true,
                    "properties": {
                      "comment_count": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "like_count": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "repost_count": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      }
                    },
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "publish_time": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "user_nick": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "user_url": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "weibo_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "type": [
                "array",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "meta": {
      "$ref": "#/$defs/Schema2"
    }
  },
  "required": [
    "data",
    "meta"
  ],
  "type": "object"
}
```

### Synthetic response / 合成响应

```json
{
  "data": {
    "parsed_data": {
      "pagination": {
        "has_next_page": true,
        "next_page_url": "https://weibo.com/web/search?page=2"
      },
      "results": [
        {
          "content": "关于<em>扫地机器人</em>的真实体验",
          "interaction": {
            "comment_count": 8,
            "like_count": 64,
            "repost_count": 12
          },
          "publish_time": "Wed Aug 19 15:28:43 +0800 2026",
          "user_nick": "体验记录",
          "user_url": "https://weibo.com/u/3164835813",
          "weibo_id": "5333642196813184"
        }
      ]
    }
  },
  "meta": {
    "api_name": "social.weibo.post.search",
    "credits_charged": 3,
    "latency_ms": 12,
    "next_input": {
      "page": 2,
      "query": "扫地机器人"
    },
    "request_id": "asklear-example"
  }
}
```

- data (object): Known optional fields from sanitized offline fixtures; conditional fields may be null. Additional business fields are retained.
- data.parsed_data (object|null): 暂无字段说明
- data.parsed_data.pagination (object|null): 暂无字段说明
- data.parsed_data.pagination.has_next_page (boolean|null): 暂无字段说明
- data.parsed_data.pagination.next_page_url (string|null): 暂无字段说明
- data.parsed_data.results (array|null): 暂无字段说明
- meta (object): 暂无字段说明
- meta.api_name (string): 暂无字段说明
- meta.request_id (string): 暂无字段说明
- meta.latency_ms (integer): 暂无字段说明
- meta.credits_charged (integer): 暂无字段说明
- meta.next_input (scalar): 暂无字段说明
- data.parsed_data.results[].content (string|null): 帖子正文。
- data.parsed_data.results[].interaction (object|null): 暂无字段说明
- data.parsed_data.results[].interaction.comment_count (integer|null): 评论数。
- data.parsed_data.results[].interaction.like_count (integer|null): 点赞数。
- data.parsed_data.results[].interaction.repost_count (integer|null): 转发数。
- data.parsed_data.results[].publish_time (string|null): 上游提供的原始发布时间文本，例如“6分钟前”。
- data.parsed_data.results[].user_nick (string|null): 作者名称。
- data.parsed_data.results[].user_url (string|null): 暂无字段说明
- data.parsed_data.results[].weibo_id (string|null): 微博帖子 ID。
- meta.next_input.content_type (string): 暂无字段说明
- meta.next_input.page (integer): 暂无字段说明
- meta.next_input.query (string): 暂无字段说明
- meta.next_input.search_type (string): 暂无字段说明
- meta.next_input.time_range (string|null): Time scope; custom:YYYY-MM-DD-H:YYYY-MM-DD-H accepts hourly boundaries.

Follow up: GET /v1/native/results/{query_id}
读取已保存结果，不重复查询数据或收费。

