公众号文章列表
列出QQ互选公众号创作者在所需日期范围内的文章,可选标题关键词,并可在所有文章和互选订单文章之间选择。用于审查发布者的内容,以进行广告策划。
参数
| 参数 | 必填 | 类型 | 说明 | 示例 | 可选值 |
|---|---|---|---|---|---|
app_id |
必填 | string | 公众号达人 app ID。 | sphkaUSb7kcv6Nu |
— |
start_date |
必填 | string | 开始日期,格式为 yyyyMMdd。 | 20261117 |
— |
end_date |
必填 | string | 结束日期,格式为 yyyyMMdd。 | 20261123 |
— |
keyword |
可选 | string | 文章标题关键词。留空则返回所有匹配文章。 | 咖啡 |
— |
article_type |
可选 | string | 腾讯互选文章类型筛选。 可选值: - `ALL`:所有文章 - `ORDER`:QQ互选订单文章 | ALL |
ALLORDER |
page |
可选 | integer | 页码。第一页为 1。 | 1 |
— |
代码示例
curl -G "https://api.mofa-ai.com/v1/qq_huxuan/cgi_bin_advertiser_mp_publisher_get_user_articles_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'app_id=sphkaUSb7kcv6Nu' \
--data-urlencode 'start_date=20261117' \
--data-urlencode 'end_date=20261123' \
--data-urlencode 'keyword=咖啡' \
--data-urlencode 'article_type=ALL' \
--data-urlencode 'page=1'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/qq_huxuan/cgi_bin_advertiser_mp_publisher_get_user_articles_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"app_id": "sphkaUSb7kcv6Nu",
"start_date": "20261117",
"end_date": "20261123",
"keyword": "咖啡",
"article_type": "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/qq_huxuan/cgi_bin_advertiser_mp_publisher_get_user_articles_v1");
url.search = new URLSearchParams({
app_id: "sphkaUSb7kcv6Nu",
start_date: "20261117",
end_date: "20261123",
keyword: "咖啡",
article_type: "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);
在线试用
登录后可以在这里直接调用此接口,按价格从余额扣费,失败不收费。新账户赠送 $0.50 试用额度。
响应示例
采集于 2026-11-07,耗时 496 ms · 请求参数 {"page": "1", "app_id": "sphkaUSb7kcv6Nu", "keyword": "咖啡", "end_date": "20261106", "start_date": "20261031", "article_type": "ALL"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "qq_huxuan.cgi_bin_advertiser_mp_publisher_get_user_articles_v1",
"cost_usd": 0.1,
"data": {
"code": 0,
"data": {
"msg": "",
"ret": 0,
"page": 1,
"items": [],
"total": 0,
"total_end_date": "",
"total_start_date": ""
},
"message": null,
"requestId": "9d814616d9a84856ad3b465737e87ecc",
"recordTime": "2026-11-08T07:59:27.061920891",
"requestParams": {
"body": null,
"query": {
"page": "1",
"appId": "sphkaUSb7kcv6Nu",
"endDate": "20261106",
"keyword": "咖啡",
"startDate": "20261031",
"articleType": "ALL"
}
}
}
}