Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Weibo App AI Smart Search

API 文档
https://api.sandbase.ai/v1/api/weibo/app/ai-smart-search

Returns AI smart search channel results and feed metadata from Weibo for a specified keyword query, with optional page-based pagination.

价格
$0.001美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 1 个可选

Playground

输入
Search keyword (required)
Page number, starts from 1 (default 1) 最小值:1。
输出示例
响应outputs · 17.8 KB · 475 行
[
  {
    "data": {
      "channelInfo": {
        "channelConfig": {
          "channelType": "search_result",
          "menu_scheme": "sinaweibo://cardlist?containerid=100103type%3D42%26q%3DOpenAI%26t%3D1&extparam=dfp%3D200%26selected_type%3D200%26selected_containerid%3D100103type%3D200%26q%3DOpenAI%26t%3D1%26vstyle%3D1",
          "selectInfo": [],
          "show_menu": 1,
          "style": {
            "backgroundColor": "#FFFFFF",
            "backgroundDarkColor": "#1E1E1E",
            "height": 42
          }
        },
        "channels": [
          {
            "ai_preload_key": "search_all_flow",
            "apiPath": "searchall",
            "appid": "100103type=1&q=OpenAI&t=1",
            "cleaned": true,
            "containerid": "100103type=1&q=OpenAI&t=1",
            "dot": {
              "request_mark_interval": 999000
            },
            "dynaConfig": {
              "bizArray": [
                "common",
                "search",
                "… 1 more items in the full response"
              ],
              "bizType": "search",
              "enable": true
            },
            "expose": {
              "actionlog": {
                "act_code": 6688,
                "ext": "seqid:781690831|type:200|t:1|pos:1-25-0|q:OpenAI|srid:dba9678cbf04eb5deb9f81ef622b6ed6|search_ssid:dba9678cbf04eb5deb9f81ef622b6ed6|search_vsid:dba9678cbf04eb5deb9f81ef622b6ed6|ext:&qtime=1787218522&|search_layout:default|searchbar_source:discover_searchbar",
                "fid": "100103type=200&q=OpenAI&t=1&vstyle=1",
                "lfid": "102803_ctg1_1780_-_ctg1_1780",
                "luicode": "10000512",
                "uicode": "10000003"
              }
            },
            "flowId": "100103type=1&q=OpenAI&t=1",
            "is_first_level": 1,
            "pageDataType": "flow",
            "params": {
              "dfp": "200",
              "is_container": "1",
              "pic_tab_front": 0,
              "search_mode_info": "1",
              "search_ssid": "dba9678cbf04eb5deb9f81ef622b6ed6",
              "search_time": 1787218522,
              "search_vsid": "dba9678cbf04eb5deb9f81ef622b6ed6",
              "searchbar_source": "discover_searchbar"
            },
            "scheme": "sinaweibo://selectchannel?containerid=100103type%3D1%26q%3DOpenAI%26t%3D1",
            "style": {
              "flowType": "flow",
              "padding": [
                0,
                0,
                "… 2 more items in the full response"
              ]
            },
            "title": "综合",
            "titleInfo": {
              "icon": "",
              "iconDark": "",
              "style": {
                "backgroundDarkIcon": "",
                "backgroundIcon": "",
                "backgroundLottie": "",
                "backgroundLottieDark": "",
                "font": "",
                "fontSize": 15,
                "iconHeight": 42,
                "iconWidth": 58,
                "padding": [
                  0,
                  10,
                  "… 2 more items in the full response"
                ],
                "selectBackgroundDarkIcon": "",
                "selectBackgroundIcon": "",
                "selectFont": "Bold",
                "selectFontSize": 15,
                "selectTextColor": "#333333",
                "selectTextDarkColor": "#D3D3D3",
                "sliderColor": [
                  "#FFA300",
                  "#FF6A00"
                ],
                "sliderDarkColor": [
                  "#FF6A00",
                  "#FF6A00"
                ],
                "textColor": "#939393",
                "textDarkColor": "#999999"
              },
              "subTitle": ""
            }
          },
          {
            "apiPath": "searchall",
            "appid": "100103type=61&q=OpenAI&t=1",
            "cleaned": true,
            "containerid": "100103type=61&q=OpenAI&t=1",
            "dot": {
              "request_mark_interval": -1
            },
            "expose": {
              "actionlog": {
                "act_code": 6688,
                "ext": "seqid:781690831|type:200|t:1|pos:1-25-1|q:OpenAI|srid:dba9678cbf04eb5deb9f81ef622b6ed6|search_ssid:dba9678cbf04eb5deb9f81ef622b6ed6|search_vsid:dba9678cbf04eb5deb9f81ef622b6ed6|ext:&qtime=1787218522&|search_layout:default|searchbar_source:discover_searchbar",
                "fid": "100103type=200&q=OpenAI&t=1&vstyle=1",
                "lfid": "102803_ctg1_1780_-_ctg1_1780",
                "luicode": "10000512",
                "uicode": "10000003"
              }
            },
            "flowId": "100103type=61&q=OpenAI&t=1",
            "is_first_level": 1,
            "pageDataType": "flow",
            "params": {
              "dfp": "200",
              "is_container": "1",
              "pic_tab_front": 0,
              "search_mode_info": "1",
              "search_ssid": "dba9678cbf04eb5deb9f81ef622b6ed6",
              "search_time": 1787218522,
              "search_vsid": "dba9678cbf04eb5deb9f81ef622b6ed6",
              "searchbar_source": "discover_searchbar"
            },
            "scheme": "sinaweibo://selectchannel?containerid=100103type%3D61%26q%3DOpenAI%26t%3D1",
            "scroll_api": "search/realtime",
            "style": {
              "flowType": "flow",
              "padding": [
                0,
                0,
                "… 2 more items in the full response"
              ]
            },
            "title": "实时",
            "titleInfo": {
              "icon": "",
              "iconDark": "",
              "style": {
                "backgroundDarkIcon": "",
                "backgroundIcon": "",
                "backgroundLottie": "",
                "backgroundLottieDark": "",
                "font": "",
                "fontSize": 15,
                "iconHeight": 42,
                "iconWidth": 58,
                "padding": [
                  0,
                  10,
                  "… 2 more items in the full response"
                ],
                "selectBackgroundDarkIcon": "",
                "selectBackgroundIcon": "",
                "selectFont": "Bold",
                "selectFontSize": 15,
                "selectTextColor": "#333333",
                "selectTextDarkColor": "#D3D3D3",
                "sliderColor": [
                  "#FFA300",
                  "#FF6A00"
                ],
                "sliderDarkColor": [
                  "#FF6A00",
                  "#FF6A00"
                ],
                "textColor": "#939393",
                "textDarkColor": "#999999"
              },
              "subTitle": ""
            }
          },
          "… 11 more items in the full response"
        ]
      },
      "config": "{}",
      "footer": {
        "data": {
          "handler_type": 2,
          "has_post_menu": 1,
          "menus": [
            {
              "actionlog": {
                "act_code": 554,
                "ext": "seqid:781690831|type:200|t:1|pos:1-25-0|q:OpenAI|srid:dba9678cbf04eb5deb9f81ef622b6ed6|search_ssid:dba9678cbf04eb5deb9f81ef622b6ed6|search_vsid:dba9678cbf04eb5deb9f81ef622b6ed6|ext:&button=AIChat&scene=search&searchbar_source=&qtime=1787218522&|search_layout:default|searchbar_source:discover_searchb…",
                "fid": "100103type=200&q=OpenAI&t=1&vstyle=1",
                "lfid": "102803_ctg1_1780_-_ctg1_1780",
                "luicode": "10000512",
                "uicode": "10000003"
              },
              "button_style": "search_expand",
              "duration": 3000,
              "is_expand": 1,
              "name": "有问题尽管问我",
              "params": {
                "align": "center",
                "bg_color": "#F4F4F4",
                "bg_color_dark": "#2C2C2C",
                "cleaned": true,
                "disable_count": false,
                "is_interrupt": 0,
                "pic_height": 26,
                "pic_width": 26,
                "scheme": "https://ai.s.weibo.com/api/chat/pm/private_page.json?from=10FC695010&input_query=OpenAI&source=footbar&is_picture=0&t=891&cot=1",
                "title_align": "center",
                "title_bold": false,
                "title_max_lines": 1,
                "title_size": 16
              },
              "pic": "https://simg.s.weibo.com/imgtool/20251127_chat_icon.png",
              "pic_dark": "https://simg.s.weibo.com/imgtool/20251127_chat_icon_dark.png",
              "pop_data": {
                "actionlog": {
                  "act_code": 8315,
                  "ext": "seqid:781690831|type:200|t:1|pos:1-25-0|q:OpenAI|srid:dba9678cbf04eb5deb9f81ef622b6ed6|search_ssid:dba9678cbf04eb5deb9f81ef622b6ed6|search_vsid:dba9678cbf04eb5deb9f81ef622b6ed6|ext:&toast=1&zhisou_from=tab&toast_click=1&qtime=1787218522&|search_layout:default|zhisou_from:tab|toast_click:1|searchbar_…",
                  "fid": "100103type=200&q=OpenAI&t=1&vstyle=1",
                  "lfid": "102803_ctg1_1780_-_ctg1_1780",
                  "luicode": "10000512",
                  "uicode": "10000003"
                },
                "cleaned": true,
                "content": "继续问抽666元红包!",
                "display_time": 5000,
                "expose_actionlog": {
                  "act_code": 8315,
                  "ext": "seqid:781690831|type:200|t:1|pos:1-25-0|q:OpenAI|srid:dba9678cbf04eb5deb9f81ef622b6ed6|search_ssid:dba9678cbf04eb5deb9f81ef622b6ed6|search_vsid:dba9678cbf04eb5deb9f81ef622b6ed6|ext:&toast=1&zhisou_from=tab&toast_expo=1&qtime=1787218522&|search_layout:default|zhisou_from:tab|toast_expo:1|searchbar_so…",
                  "fid": "100103type=200&q=OpenAI&t=1&vstyle=1",
                  "lfid": "102803_ctg1_1780_-_ctg1_1780",
                  "luicode": "10000512",
                  "uicode": "10000003"
                },
                "pop_id": "927ca03588aa67cebdc24a5a52c2a145",
                "post_time": 3000,
                "scheme": "https://ai.s.weibo.com/api/chat/pm/private_page.json?from=10FC695010&input_query=OpenAI&source=footbar&is_picture=0&t=891&cot=1",
                "text_color": "#FF8200",
                "text_color_dark": "#EA8011",
                "text_size": 16
              },
              "skip_format": 1,
              "title_color": "#636363",
              "title_color_dark": "#999999",
              "type": "link"
            },
            {
              "actionlog": {
                "act_code": 554,
                "ext": "seqid:781690831|type:200|t:1|pos:1-25-0|q:OpenAI|srid:dba9678cbf04eb5deb9f81ef622b6ed6|search_ssid:dba9678cbf04eb5deb9f81ef622b6ed6|search_vsid:dba9678cbf04eb5deb9f81ef622b6ed6|ext:&button=share&scene=search&searchbar_source=&qtime=1787218522&|search_layout:default|searchbar_source:discover_searchba…",
                "fid": "100103type=200&q=OpenAI&t=1&vstyle=1",
                "lfid": "102803_ctg1_1780_-_ctg1_1780",
                "luicode": "10000512",
                "uicode": "10000003"
              },
              "button_style": "search_normal",
              "name": "分享",
              "params": {
                "cleaned": true,
                "count": 0,
                "disable_count": true,
                "layout": "vertical",
                "scheme": "wb_search_share",
                "title_max_lines": 1
              },
              "pic": "https://simg.s.weibo.com/imgtool/20251105_share_1105.png",
              "pic_dark": "https://simg.s.weibo.com/imgtool/20251105_share_1105_dark.png",
              "skip_format": 1,
              "title_color": "#333333",
              "title_color_dark": "#D3D3D3",
              "type": "link"
            }
          ],
          "type": 2
        },
        "type": "searchResult"
      },
      "globalChannelConfig": {
        "refreshInfo": {
          "refreshType": "pullArrow"
        }
      },
      "items": [
        {
          "category": "card",
          "data": {
            "backgroundColor": "#EEEEEE",
            "backgroundDarkColor": "#151515",
            "card_type": 197,
            "height": 1,
            "item_style": {
              "background": {

示例

选择一个示例,将其输入和结果加载到 playground 中。

API README

Weibo App AI Smart Search API

Returns the Weibo app AI smart search response for a keyword. The response lists the search channels (such as 综合, 实时, 图片), the card items for the first page, and footer and share metadata. It needs a query and accepts an optional page.

Use cases

  • List the search channels Weibo offers for a keyword, with the containerid of each one.
  • Read the search_time and search session IDs for a keyword query to log when a search ran.
  • Check which card types and anchor IDs the app returns for a keyword, including the ai_answer slot.
  • Build a share link for a keyword search from the custom_share_path value.

Request

curl -X POST "https://api.sandbase.ai/v1/api/weibo/app/ai-smart-search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "OpenAI"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
querystringYesSearch keyword (required)
pageintegerNoPage number, starts from 1 (default 1)

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "channelInfo": {
    "channelConfig": {
      "channelType": "search_result",
      "menu_scheme": "sinaweibo://cardlist?containerid=100103type%3D42%26q%3DOpenAI%26t%3D1&extparam=d…",
      "selectInfo": [],
      "show_menu": 1,
      "style": {
        "backgroundColor": "#FFFFFF",
        "backgroundDarkColor": "#1E1E1E",
        "height": 42
      }
    },
    "channels": [
      {
        "ai_preload_key": "search_all_flow",
        "apiPath": "searchall",
        "appid": "100103type=1&q=OpenAI&t=1",
        "cleaned": true,
        "containerid": "100103type=1&q=OpenAI&t=1",
        "dot": {
          "request_mark_interval": 999000
        },
        "dynaConfig": {
          "bizArray": [
            "common"
          ],
          "bizType": "search",
          "enable": true
        },
        "expose": {
          "actionlog": {
            "act_code": 6688,
            "ext": "seqid:231949943|type:200|t:1|pos:1-24-0|q:OpenAI|srid:12e6bb13aeb29c79454459cebb…",
            "fid": "100103type=200&q=OpenAI&t=1&vstyle=1",
            "lfid": "102803_ctg1_1780_-_ctg1_1780",
            "luicode": "10000512",
            "uicode": "10000003"
          }
        },
        "flowId": "100103type=1&q=OpenAI&t=1",
        "is_first_level": 1,
        "pageDataType": "flow",
        "params": {
          "dfp": "200",
          "is_container": "1",
          "pic_tab_front": 0,
          "search_mode_info": "1",
          "search_ssid": "12e6bb13aeb29c79454459cebb1646e9",
          "search_time": 1793691964,
          "search_vsid": "12e6bb13aeb29c79454459cebb1646e9",
          "searchbar_source": "discover_searchbar"
        }
      }
    ]
  },
  "config": "{}",
  "footer": {
    "data": {
      "handler_type": 2,
      "has_post_menu": 1,
      "menus": [
        {
          "actionlog": {
            "act_code": 554,
            "ext": "seqid:231949943|type:200|t:1|pos:1-24-0|q:OpenAI|srid:12e6bb13aeb29c79454459cebb…",
            "fid": "100103type=200&q=OpenAI&t=1&vstyle=1",
            "lfid": "102803_ctg1_1780_-_ctg1_1780",
            "luicode": "10000512",
            "uicode": "10000003"
          },
          "button_style": "search_expand",
          "duration": 3000,
          "is_expand": 1,
          "name": "有问题尽管问我",
          "params": {
            "align": "center",
            "bg_color": "#F4F4F4",
            "bg_color_dark": "#2C2C2C",
            "cleaned": true,
            "disable_count": false,
            "is_interrupt": 0,
            "pic_height": 26,
            "pic_width": 26
          },
          "pic": "https://simg.s.weibo.com/imgtool/20251127_chat_icon.png",
          "pic_dark": "https://simg.s.weibo.com/imgtool/20251127_chat_icon_dark.png"
        }
      ],
      "type": 2
    },
    "type": "searchResult"
  },
  "globalChannelConfig": {
    "refreshInfo": {
      "refreshType": "pullArrow"
    }
  },
  "items": [
    {
      "category": "card",
      "data": {
        "backgroundColor": "#EEEEEE",
        "backgroundDarkColor": "#151515",
        "card_type": 197,
        "height": 1,
        "item_style": {
          "background": {
            "color": "#FFFFFF",
            "colorKey": "CommonCardBackground",
            "type": "color"
          },
          "margin": [
            0
          ],
          "padding": [
            0
          ]
        },
        "openurl": "",
        "padding": [
          0
        ]
      },
      "itemExt": {
        "anchorId": "1971793691964"
      },
      "style": {
        "background": {
          "color": "#FFFFFF",
          "colorKey": "CommonCardBackground",
          "type": "color"
        },
        "margin": [
          0
        ],
        "padding": [
          0
        ]
      }
    }
  ],
  "loadedInfo": "{}",
  "navInfo": "{}",
  "navigationBar": {
    "data": {
      "title_bar_menus": [
        {
          "pic": "https://h5.sinaimg.cn/upload/1059/799/2022/03/30/share_pic.png",
          "pic_highlight": "https://h5.sinaimg.cn/upload/1059/799/2022/03/30/share_pic_hightlight.png",
          "type": "share"
        }
      ]
    },
    "search_title": [
      {
        "act_log": {
          "act_code": 1985,
          "ext": "seqid:231949943|type:200|t:1|pos:1-24-0|q:OpenAI|srid:12e6bb13aeb29c79454459cebb…",
          "lfid": "102803_ctg1_1780_-_ctg1_1780",
          "luicode": "10000512",
          "uicode": "10000003"
        },
        "name": "share",
        "pic_height": 30,
        "pic_url": "https://simg.s.weibo.com/imgtool/20250324_0324_light_normal.png",
        "pic_url_dark": "https://simg.s.weibo.com/imgtool/20250324_0324_dark_normal.png",
        "pic_url_selected": "https://simg.s.weibo.com/imgtool/20250324_0324_light_hover.png",
        "pic_url_selected_dark": "https://simg.s.weibo.com/imgtool/20250324_0324_selected_hover_dark.png",
        "pic_width": 30,
        "scheme": "",
        "share_data": {
          "containerid": "100103type=200&q=OpenAI&t=1&vstyle=1",
          "custom_share_path": "http://s.weibo.com/weibo?q=OpenAI",
          "desc": "实时资讯,海量讨论",
          "icon": "http://h5.sinaimg.cn/upload/2016/07/29/557/link.png",
          "more_btns": [
            {
              "actionlog": {
                "act_code": 554,
                "ext": "seqid:231949943|type:200|t:1|pos:1-24-1|q:OpenAI|srid:12e6bb13aeb29c79454459cebb…",
                "fid": "100103type=200&q=OpenAI&t=1&vstyle=1",
                "lfid": "102803_ctg1_1780_-_ctg1_1780",
                "luicode": "10000512",
                "uicode": "10000003"
              },
              "image_url": "https://simg.s.weibo.com/imgtool/20250630_%E5%88%86%E4%BA%AB%E6%90%9C%E7%B4%A2.p…",
              "image_url_dark": "https://simg.s.weibo.com/imgtool/20250630_%E5%88%86%E4%BA%AB%E6%90%9C%E7%B4%A2_d…",
              "name": "分享搜索",
              "params": {
                "cleaned": true,
                "scheme": "sinaweibo://sendweibo?show_keyboard=1&extparam=ann_ext%3Asearch%7Ct%3A1%7Cq%3AOp…",
                "title_max_lines": 1
              },
              "skip_format": 1,
              "type": "share_to_weibo",
              "type_description": "sousuo_share_card"
            }
          ],
          "object_id": "",
          "share_containerid": "230958type%3D1%26q%3DOpenAI",
          "share_mini": []
        },
        "type": "share"
      }
    ],
    "type": "search_default"
  },
  "pageData": "{}",
  "refreshInfo": "{}"
}

Response fields

FieldMeaning
channelInfo.channels[].titleDisplay name of the search channel, for example 综合 (all), 实时 (real time) or 图片 (pictures).
channelInfo.channels[].containerid / channelInfo.channels[].flowIdID of the channel's result list. It contains the channel type number, the query q and t.
channelInfo.channels[].apiPathName of the search endpoint that serves the channel. The real-time channel also has scroll_api.
channelInfo.channels[].params.search_timeUnix timestamp in seconds for when the search ran.
channelInfo.channels[].params.search_ssid / channelInfo.channels[].params.search_vsidSearch session IDs. They repeat across the channels of one response.
channelInfo.channels[].style.flowTypeLayout of the channel, flow for a list or staggered for a two column grid.
items[].categoryKind of entry in the result list. In this response all entries are card.
items[].data.card_typeNumeric card type of the entry, for example 197 or 269.
items[].data.itemidID of the card. The value ai_answer marks the AI answer slot.
navigationBar.search_title[].share_data.custom_share_pathWeb search URL for the keyword on s.weibo.com.

Notes

  • Pass the keyword in query. Use page to move through pages, starting at 1.
  • The sample cards carry layout data only. This response does not show post text or user fields.
  • For another way to search by keyword, try Weibo Keyword Search.
  • Call Weibo Post Detail (App) when you have a post ID and need the full post.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相关 APIs

全部 APIs
API价格响应
Weibo$0.001 每次调用JSON
Weibo$0.001 每次调用JSON
Weibo$0.001 每次调用JSON
Weibo$0.001 每次调用JSON
Weibo$0.001 每次调用JSON
Weibo$0.001 每次调用JSON

指南:Best Weibo API in 2026: Pricing Compared

问题

常见问题

如何使用 Weibo App AI Smart Search API?

向 https://api.sandbase.ai/v1/api/weibo/app/ai-smart-search 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Weibo App AI Smart Search API 的价格是多少?

每次调用 $0.001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Weibo App AI Smart Search API 接受哪些参数?

必填:query (string)。 可选:page (integer)。 Parameters 表和本页的 Playground 列出了每个字段。

Weibo App AI Smart Search API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Weibo 开发者账户或 API key 吗?

不需要。Weibo App AI Smart Search 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Weibo API 访问权限。