文章详情
通过URL获取微信公众号文章的轻量信息。用于在深入获取内容、指标或评论前进行快速文章查找。
参数
| 参数 | 必填 | 类型 | 说明 | 示例 | 可选值 |
|---|---|---|---|---|---|
article_url |
必填 | string | 用于获取轻量级文章元数据和状态信息的微信公众号文章URL。 | — | — |
代码示例
curl "https://api.mofa-ai.com/v1/weixin/get_article_detail_v5" \
-H "Authorization: Bearer $MOFA_API_KEY"
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/weixin/get_article_detail_v5",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
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/weixin/get_article_detail_v5");
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 试用额度。
响应示例
这个接口暂无响应示例。