Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Weibo App AI Smart Search

Tài liệu 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.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 1 tùy chọn

Phòng thử nghiệm

Đầu vào
Search keyword (required)
Page number, starts from 1 (default 1) Tối thiểu: 1.
Đầu raVí dụ
Phản hồioutputs · 17.8 KB · 475 dòng
[
  {
    "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": {

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Weibo$0.001 mỗi lần gọiJSON
Weibo$0.001 mỗi lần gọiJSON
Weibo$0.001 mỗi lần gọiJSON
Weibo$0.001 mỗi lần gọiJSON
Weibo$0.001 mỗi lần gọiJSON
Weibo$0.001 mỗi lần gọiJSON

Hướng dẫn:Best Weibo API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Weibo App AI Smart Search?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/weibo/app/ai-smart-search với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Weibo App AI Smart Search có giá bao nhiêu?

$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Weibo App AI Smart Search chấp nhận những tham số nào?

Bắt buộc: query (string). Tùy chọn: page (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Weibo App AI Smart Search trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Weibo không?

Không. Weibo App AI Smart Search chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Weibo.