Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

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.

Prezzo
$0.028571USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
0 obbligatori · 5 opzionali

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.
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

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.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
China Social Media$0.028571 per chiamataJSON

Domande

FAQ

Come uso l'API China Social Media Search?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/cn-social/search con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API China Social Media Search?

$0.028571 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API China Social Media Search?

Nessun parametro richiesto. Facoltativi: keyword (string), source (uno tra ALL, NEWS, WEIBO, WEIXIN, ZHIHU, DOUYIN, XIAOHONGSHU, BILIBILI, KUAISHOU), start (string), end (string) e nextCursor (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API China Social Media Search?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API China Social Media?

No. China Social Media Search funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API China Social Media.