Search User Published Posts
Searches 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 known account for topic research or campaign review.
Parameters
| Name | Required | Type | Description | Example | Allowed values |
|---|---|---|---|---|---|
uid |
Required | string | Weibo User ID (UID). | 2803301701 |
— |
q |
Required | string | Search Keywords. | 咖啡 |
— |
start_day |
Optional | string | Start Day (yyyy-MM-dd). | 2026-11-17 |
— |
end_day |
Optional | string | End Day (yyyy-MM-dd). | 2026-11-23 |
— |
page |
Optional | integer | Page number, starting with 1. | 1 |
— |
Code samples
curl -G "https://api.mofa-ai.com/v1/weibo/search_profile_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'uid=2803301701' \
--data-urlencode 'q=咖啡' \
--data-urlencode 'start_day=2026-11-17' \
--data-urlencode 'end_day=2026-11-23' \
--data-urlencode 'page=1'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/weibo/search_profile_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"uid": "2803301701",
"q": "咖啡",
"start_day": "2026-11-17",
"end_day": "2026-11-23",
"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_profile_v1");
url.search = new URLSearchParams({
uid: "2803301701",
q: "咖啡",
start_day: "2026-11-17",
end_day: "2026-11-23",
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);
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.
Example response
Captured 2026-11-07, took 1338 ms · Request parameters {"q": "咖啡", "uid": "2803301701", "page": "1", "end_day": "2026-11-06", "start_day": "2026-10-31"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "weibo.search_profile_v1",
"cost_usd": 0.02,
"data": {
"code": 0,
"data": {
"ok": 1,
"data": {
"list": [],
"total": 0
}
},
"message": null,
"requestId": "ad96a6d804994a84a06e1f29d9468cba",
"recordTime": "2026-11-08T07:58:01.215812856",
"requestParams": {
"body": null,
"query": {
"q": "咖啡",
"uid": "2803301701",
"page": "1",
"endDay": "2026-11-06",
"startDay": "2026-10-31"
}
}
}
}