Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

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.

Harga
$0.028571USD / panggilan
Metode
POST
Respons
JSON
Parameter
0 wajib · 5 opsional

Playground

Input
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.
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README API

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
China Social Media$0.028571 per panggilanJSON

Pertanyaan

FAQ

Bagaimana cara menggunakan API China Social Media Search?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/cn-social/search dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API China Social Media Search?

$0.028571 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API China Social Media Search?

Tidak ada parameter yang wajib. Opsional: keyword (string), source (salah satu dari ALL, NEWS, WEIBO, WEIXIN, ZHIHU, DOUYIN, XIAOHONGSHU, BILIBILI, KUAISHOU), start (string), end (string) dan nextCursor (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API China Social Media Search?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API China Social Media?

Tidak. China Social Media Search berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API China Social Media secara terpisah.