Weibo Keyword Search
Searches Weibo posts by keyword within a required day-and-hour time range, with page-based pagination, hot or time sorting, and filters for pictures, video, music, or links. Use it to find time-bounded posts for topic research or monitoring.
/v1/weibo/search_all_v2
$0.02
- Price
- $0.02 per successful call, Failed calls are free
- Endpoint ID
weibo.search_all_v2
Parameters
-
qstring RequiredSearch Keywords.
Example
咖啡 -
start_daystring RequiredStart Day (yyyy-MM-dd).
Example
2026-11-17 -
start_hourinteger RequiredStart Hour (0-23).
Example
0 -
end_daystring RequiredEnd Day (yyyy-MM-dd).
Example
2026-11-23 -
end_hourinteger RequiredEnd Hour (0-23).
Example
23 -
hot_sortboolean OptionalHot sort, true for hot sort, false for time sort. Default is false.
Example
False -
containsstring OptionalContains filter for the result set.
Available Values:
ALL: AllPICTURE: Has PictureVIDEO: Has VideoMUSIC: Has MusicLINK: Has Link
Example
ALL -
pageinteger OptionalPage number, starting with 1.
Example
1
Code samples
curl -G "https://api.mofa-ai.com/v1/weibo/search_all_v2" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'q=咖啡' \
--data-urlencode 'start_day=2026-11-17' \
--data-urlencode 'start_hour=0' \
--data-urlencode 'end_day=2026-11-23' \
--data-urlencode 'end_hour=23' \
--data-urlencode 'hot_sort=False' \
--data-urlencode 'contains=ALL' \
--data-urlencode 'page=1'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/weibo/search_all_v2",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"q": "咖啡",
"start_day": "2026-11-17",
"start_hour": "0",
"end_day": "2026-11-23",
"end_hour": "23",
"hot_sort": "False",
"contains": "ALL",
"page": "1",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/weibo/search_all_v2");
url.search = new URLSearchParams({
q: "咖啡",
start_day: "2026-11-17",
start_hour: "0",
end_day: "2026-11-23",
end_hour: "23",
hot_sort: "False",
contains: "ALL",
page: "1",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
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.
More Weibo endpoints
-
Post Details
$0.02Retrieves details for a Weibo post identified by its post ID. Use it to look up a known post for content review, archiving, or related engagement analysis.
/v1/weibo/get_weibo_detail_v1
-
User Profile
$0.02Retrieves a Weibo user profile identified by UID. Use it to look up a known account for creator research, profile review, or subsequent retrieval of that use…
/v1/weibo/get_user_detail_v3
-
User Fans
$0.02Retrieves a page of fan accounts that follow a Weibo user identified by UID. Use it to browse the account's follower audience or continue through its fan list.
/v1/weibo/get_fans_v1
-
User Followers
$0.02Retrieves a page of accounts followed by a Weibo user identified by UID. Use it to examine the account's outgoing follow network or continue through its foll…
/v1/weibo/get_followers_v1
-
User Published Posts
$0.02Retrieves posts published by a Weibo user identified by UID, using page numbers and a required sinceId cursor after the first page. Use it to browse an accou…
/v1/weibo/get_user_post_v1
-
User Video List
$0.02Retrieves a Weibo user's video waterfall feed by UID, with an optional cursor from a prior response. Use it to browse videos published by a known account or…
/v1/weibo/get_user_video_list_v1
-
TV Video Details
$0.02Retrieves Weibo TV video details for a colon-delimited object ID (OID). Use it to look up a known TV video for content review, cataloging, or downstream proc…
/v1/weibo/tv_component_v1
-
Hot Search
$0.02Retrieves the current Weibo hot-search ranking. Use it to identify trending topics for newsroom monitoring, content planning, or timely topic discovery.
/v1/weibo/hot_search_v1
-
Post Comments
$0.02Retrieves comments for a Weibo post identified by MID, with optional maxId cursor pagination and time or hot sorting. Use it to review audience discussion, c…
/v1/weibo/get_post_comments_v1
-
Search User Published Posts
$0.02Searches posts published by a specific Weibo user, using a keyword, optional date range, and page-based pagination. Use it to find historical posts from a kn…
/v1/weibo/search_profile_v1