Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

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.

Precio
$0.028571USD / llamada
Método
POST
Respuesta
JSON
Parámetros
0 obligatorios · 5 opcionales

Entorno de pruebas

Entrada
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.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
China Social Media$0.028571 por llamadaJSON

Preguntas

FAQ

¿Cómo uso la API de China Social Media Search?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/cn-social/search con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de China Social Media Search?

$0.028571 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de China Social Media Search?

No se requieren parámetros. Opcionales: keyword (string), source (una de ALL, NEWS, WEIBO, WEIXIN, ZHIHU, DOUYIN, XIAOHONGSHU, BILIBILI, KUAISHOU), start (string), end (string) y nextCursor (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de China Social Media Search?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de China Social Media?

No. China Social Media Search funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de China Social Media por separado.