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

China Social Media Search

https://api.sandbase.ai/v1/api/cn-social/search

Search recent posts and articles across Chinese news sites, Weibo, WeChat, Zhihu, Douyin, Xiaohongshu, Bilibili and Kuaishou by keyword, with source and time-range filters. Results come from a cached index, so rare keywords can return few items.

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

Playground

输入
Search query string. Supports these five syntax forms: - AND (&&): A && B matches content containing both A and B. - OR (||): A || B matches content containing A or B. - Exclusion (-): -A matches content that does not contain A. - Parentheses (): (A && B) || C matches content containing C, or both A and B. - English double quotes (""): "A" disables tokenization and requires an exact match for A.
Target social media platform for search filtering.
Start time of the search period (yyyy-MM-dd HH:mm:ss). Required for initial request.
End time of the search period (yyyy-MM-dd HH:mm:ss). Required for initial request.
Pagination cursor provided by the 'nextCursor' field in the previous response.
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

China Social Media Search API

Returns a list of recent posts and articles that match a keyword across Chinese news sites and social platforms such as Weibo, WeChat, Zhihu, Douyin, Xiaohongshu, Bilibili and Kuaishou. It needs a keyword and a time range set by start and end. You can limit results to one platform with source.

Use cases

  • Track how often a topic such as 人工智能 appears in Chinese news and social posts over a two-week window.
  • Collect WeChat official account articles that mention a brand or product name.
  • Build a news feed for one keyword by combining title, url and sourceName.
  • Exclude noisy terms with the - syntax to monitor a narrow topic.

Request

curl -X POST "https://api.sandbase.ai/v1/api/cn-social/search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "人工智能", "source": "ALL", "start": "2026-10-19 00:00:00", "end": "2026-11-02 00:00:00"}'

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

Parameters

NameTypeRequiredDescription
endstringNoEnd time of the search period (yyyy-MM-dd HH:mm:ss). Required for initial request.
keywordstringNoSearch query string. Supports these five syntax forms: - AND (&&): A && B matches content containing both A and B. - OR (//): A // B matches content containing A or B. - Exclusion (-): -A matches content that does not co
nextCursorstringNoPagination cursor provided by the 'nextCursor' field in the previous response.
sourcestringNoTarget social media platform for search filtering.
startstringNoStart time of the search period (yyyy-MM-dd HH:mm:ss). Required for initial request.

Example response

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

{
  "list": [
    {
      "author": {
        "avatar": "http://wx.qlogo.cn/mmhead/0nn3FBrD9a32s1WibMMeS0gAAyXicFNonzp9kicxpmfqYF5q7ODcrp…",
        "id": "gh_e3feebbd6659",
        "nickname": "阳城文学编辑部",
        "username": "gh_e3feebbd6659"
      },
      "content": "<img src=\"https://mmbiz.qpic.cn/mmbiz_png/QrAzOGRiaZD7AT8ubbRkChwq3s0LhQGZaRRNib…",
      "createTime": 1792339200001,
      "image": [
        "https://mmbiz.qpic.cn/mmbiz_png/QrAzOGRiaZD7AT8ubbRkChwq3s0LhQGZaRRNibPFf5BoZe11…"
      ],
      "sourceName": "微信公众号",
      "title": "张红胜/“中国好人”郝三铁",
      "url": "https://mp.weixin.qq.com/s?__biz=MzU4NDkzMTc0Mg==&amp;mid=2247515237&amp;idx=1&a…",
      "video": []
    }
  ],
  "nextCursor": "AgsnJl5KTvicfhdQZ00Z7nCYyNiKXocL",
  "totalNumber": 447606
}

Response fields

FieldMeaning
list[]One matching post or article. Each item has the author, content, media and link.
list[].titleTitle of the article or post.
list[].urlLink to the original page. In the WeChat items the link contains &amp; in place of &.
list[].sourceNameName of the site or platform the item came from, for example 微信公众号 or 壹点.
list[].createTimeCreation time as a number. The values look like Unix time in milliseconds.
list[].contentBody of the item as an HTML string. It can include <p> and <img> tags, and long bodies may be cut.
list[].image[] / list[].video[]Lists of image and video URLs attached to the item. An item without media can return an empty list, or a list holding one empty string.
list[].author.nickname / list[].author.usernameDisplay name and account name of the author. Both are empty strings for some news items.
list[].author.id / list[].author.avatarAuthor account ID and avatar image URL. Both can be empty strings.
nextCursorCursor string for the next page of results.
totalNumberTotal number of items that match the query.

Notes

  • To get the next page, send the nextCursor value from the response as the nextCursor parameter, with the same keyword, source, start and end.
  • Write start and end as yyyy-MM-dd HH:mm:ss. They are required on the first request.
  • source accepts ALL, NEWS, WEIBO, WEIXIN, ZHIHU, DOUYIN, XIAOHONGSHU, BILIBILI and KUAISHOU. The default is ALL.
  • keyword supports && for AND, || for OR, - for exclusion, parentheses for grouping, and English double quotes for an exact match.

Pricing

$0.028571 per successful call. Failed calls are not charged.

探索更多

相关 APIs

全部 APIs
API价格响应
China Social Media$0.028571 每次调用JSON

问题

常见问题

如何使用 China Social Media Search API?

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

China Social Media Search API 的价格是多少?

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

China Social Media Search API 接受哪些参数?

无需参数。 可选:keyword (string), source(ALL, NEWS, WEIBO, WEIXIN, ZHIHU, DOUYIN, XIAOHONGSHU, BILIBILI, KUAISHOU 之一), start (string), end (string) 和 nextCursor (string)。 Parameters 表和本页的 Playground 列出了每个字段。

China Social Media Search API 返回什么?

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

我需要 China Social Media 开发者账户或 API key 吗?

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