GET
/api/v1/search搜索公众号和文章GET
/api/v1/accounts/{idOrGhId}获取公众号资料和最近文章GET
/api/v1/feedJSON 文章流,或 RSS / Atom / JSON FeedGET
/api/v1/openapi.jsonOpenAPI 描述文件(无需鉴权)鉴权
Key 在 账户设置 中创建或重置。以下两种请求头任选其一。
Authorization: Bearer wer_xxxxxxxx
X-API-Key: wer_xxxxxxxxKey 缺失、错误、已重置或账户不可用时返回 401。 服务端配置的 ARTICLES_API_TOKEN 仍可作为系统 Key 使用。
示例
curl -H "Authorization: Bearer wer_xxxxxxxx" \
"https://rss.tdzero.com/api/v1/search?q=少数派"
curl -H "X-API-Key: wer_xxxxxxxx" \
"https://rss.tdzero.com/api/v1/feed?format=rss&gh_id=gh_xxx"format 可选 json、rss、atom、jsonfeed, 默认 json。
Reference
交互式文档
阅读器订阅请使用 /dashboard/feeds 生成的 /f/<token>.xml 链接;/api/v1/feed 面向需要携带 API key 的服务端程序。
旧接口 /api/wechat/get-articles-by-gh_id/ 仍然可用,供 Apify Actor 使用;新接入建议使用 /api/v1。