Cross-platform search Cross-Platform Search

Searches recent content across news, Weibo, WeChat, Zhihu, Douyin, Xiaohongshu, Bilibili, and Kuaishou with source and time filters. Use it to monitor a topic across multiple platforms.

GET /v1/search/search_v1 $0.04
Price
$0.04 per successful call, Failed calls are free
Endpoint ID
search.search_v1

Parameters

  • keyword string Optional

    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.

    Example咖啡

  • source string Optional

    Target social media platform for search filtering.

    Available Values:

    • ALL: All platforms
    • NEWS: News
    • WEIBO: Sina Weibo
    • WEIXIN: Weixin (WeChat)
    • ZHIHU: Zhihu
    • DOUYIN: Douyin (TikTok China)
    • XIAOHONGSHU: Xiaohongshu (Little Red Book)
    • BILIBILI: Bilibili
    • KUAISHOU: Kuaishou

    ExampleALL

  • start string Optional

    Start time of the search period (yyyy-MM-dd HH:mm:ss). Required for initial request.

  • end string Optional

    End time of the search period (yyyy-MM-dd HH:mm:ss). Required for initial request.

  • next_cursor string Optional

    Pagination cursor provided by the 'nextCursor' field in the previous response.

Code samples

curl -G "https://api.mofa-ai.com/v1/search/search_v1" \
  -H "Authorization: Bearer $MOFA_API_KEY" \
  --data-urlencode 'keyword=咖啡' \
  --data-urlencode 'source=ALL'

Example response

There is no example response for this endpoint yet.

Try it

Sign in to call this endpoint from this page. Successful calls are billed to your balance, failed calls are free, and new accounts get $0.50 of trial credit.

Sign in to try

↑↓ to move, Enter to open, Esc to close