bestblogs-fetcher
Skill0 starsChanged 9 months agoMITView on GitHub
Fetch and browse content from BestBlogs.dev OpenAPI - articles, podcasts, videos, tweets, and newsletters. Use when user wants to: (1) get latest articles or trending content, (2) search BestBlogs for specific topics or keywords, (3) fetch today's or recent high-quality content, (4) browse newsletters/issues, (5) get article details or full content, (6) explore podcast transcripts, (7) list content sources. Triggered by phrases like '拉取 BestBlogs 内容', '获取最新文章', '今天有什么好文章', 'fetch bestblogs', 'get latest posts', '查看精选', '拉取推文', '获取播客', '查看期刊', or any mention of BestBlogs content retrieval.
- Reads credentials
- Sends data out
In this repository24 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- article-illustratorSkill
- bestblogs-article-recommenderSkill
- bestblogs-daily-digestSkill
- bestblogs-process-videosSkill
- bestblogs-transcribe-youtubeSkill
- bestblogs-weekly-bloggerSkill
- bestblogs-weekly-curatorSkill
- cover-imageSkill
- daily-digestSkill
- deep-readingSkill
- image-genSkill
- post-to-wechatSkill
- post-to-xSkill
- x-actionsSkill
- xgo-digest-tweetsSkill
- xgo-fetch-tweetsSkill
- xgo-manage-bookmarksSkill
- xgo-manage-followsSkill
- xgo-manage-listsSkill
- xgo-organize-followsSkill
- xgo-search-tweetsSkill
- xgo-track-kolSkill
- xgo-view-profileSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
All requests require header X-API-KEY.
- Very specific: line 20
If BESTBLOGS_API_KEY is not set, prompt the user to configure it.
- Distinctive: line 24
When user does not specify filters, use these defaults:
- Distinctive: line 29
Default output count: 20 items (adjustable per user request)
- Distinctive: line 67
Run all 5 requests in parallel.
- Very specific: line 129
Score filter: Keep items with score >= 85 (or user-specified threshold)
- Very specific: line 139
Use readUrl (BestBlogs 站内链接) for all links.
- Very specific: line 192
If mainPoints or keyQuotes is empty, omit that section
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
BestBlogs Fetcher
Fetch content from BestBlogs.dev OpenAPI. Supports articles, podcasts, videos, tweets, newsletters, and source management.
For full API parameter details, read references/api_reference.md.
Auth
All requests require header X-API-KEY. Read the key from environment variable BESTBLOGS_API_KEY:
-H "X-API-KEY: $BESTBLOGS_API_KEY"If BESTBLOGS_API_KEY is not set, prompt the user to configure it.
Default Fetch Strategy
When user does not specify filters, use these defaults:
timeFilter:3d(近 3 天)sortType:score_desc(按评分倒序)userLanguage:zh_CN- Client-side filter: score >= 85
- Default output count: 20 items (adjustable per user request)
Fetch Plan (5 parallel requests, max ~500 items)
# 1. AI articles (100 items)
curl -s -X POST https://api.bestblogs.dev/openapi/v1/resource/list \
-H "Content-Type: application/json" \
-H "X-API-KEY: $BESTBLOGS_API_KEY" \
-d '{"timeFilter":"3d","sortType":"score_desc","userLanguage":"zh_CN","pageSize":100,"type":"ARTICLE","category":"Artificial_Intelligence"}'
# 2. Non-AI articles: Programming + Business + Product (100 items)
curl -s -X POST https://api.bestblogs.dev/openapi/v1/resource/list \
-H "Content-Type: application/json" \
-H "X-API-KEY: $BESTBLOGS_API_KEY" \
-d '{"timeFilter":"3d","sortType":"score_desc","userLanguage":"zh_CN","pageSize":100,"type":"ARTICLE","category":"Programming_Technology"}'
# Note: also fetch Business_Tech and Product_Development if needed, or omit category to get all non-AI articles
# 3. Videos (50 items)
curl -s -X POST https://api.bestblogs.dev/openapi/v1/resource/list \
-H "Content-Type: application/json" \
-H "X-API-KEY: $BESTBLOGS_API_KEY" \
-d '{"timeFilter":"3d","sortType":"score_desc","userLanguage":"zh_CN","pageSize":50,"type":"VIDEO"}'
# 4. Podcasts (50 items)
curl -s -X POST https://api.bestblogs.dev/openapi/v1/resource/list \
-H "Content-Type: application/json" \
-H "X-API-KEY: $BESTBLOGS_API_KEY" \
-d '{"timeFilter":"3d","sortType":"score_desc","userLanguage":"zh_CN","pageSize":50,"type":"PODCAST"}'
# 5. Tweets (200 items, use tweet endpoint)
curl -s -X POST https://api.bestblogs.dev/openapi/v1/tweet/list \
-H "Content-Type: application/json" \
-H "X-API-KEY: $BESTBLOGS_API_KEY" \
-d '{"timeFilter":"3d","language":"all","sortType":"score_desc","userLanguage":"zh_CN","pageSize":100}'
# Fetch page 2 for tweets if needed (to reach 200)Run all 5 requests in parallel. After fetching, client-side filter score >= 85, then deduplicate and merge.
Adjusting Parameters
Adjust based on user input:
- "今天的文章" →
timeFilter: "1d" - "本周 AI 文章" →
timeFilter: "1w", only fetch AI category - "精选文章" → add
qualifiedFilter: "true" - "评分 90 以上" → client-side filter score >= 90
- "给我 50 条" → output 50 items instead of default 20
- "只看播客" → only fetch PODCAST type
Other Operations
Get Article Markdown Content
curl -s "https://api.bestblogs.dev/openapi/v1/resource/markdown?id={RESOURCE_ID}" \
-H "X-API-KEY: $BESTBLOGS_API_KEY"Returns the article body as Markdown text (in data field). Returns null if content doesn't exist.
Get Latest Newsletter
curl -s -X POST https://api.bestblogs.dev/openapi/v1/newsletter/list \
-H "Content-Type: application/json" \
-H "X-API-KEY: $BESTBLOGS_API_KEY" \
-d '{"pageSize":1,"userLanguage":"zh_CN"}'Then get details:
curl -s "https://api.bestblogs.dev/openapi/v1/newsletter/get?id={NEWSLETTER_ID}&language=zh_CN" \
-H "X-API-KEY: $BESTBLOGS_API_KEY"Available Endpoints
| Endpoint | Method | Use Case |
/openapi/v1/resource/list | POST | 查询文章/播客/视频列表 (最常用) |
/openapi/v1/resource/meta | GET | 获取单个资源的完整元数据 |
/openapi/v1/resource/markdown | GET | 获取文章的 Markdown 正文内容 |
/openapi/v1/resource/podcast/content | GET | 获取播客转录、章节、问答 |
/openapi/v1/tweet/list | POST | 查询推文列表 (含互动数据) |
/openapi/v1/newsletter/list | POST | 查询期刊列表 |
/openapi/v1/newsletter/get | GET | 获取期刊详情 (含文章列表) |
/openapi/v1/source/list | POST | 查询订阅源列表 |
For complete request/response field details, see references/api_reference.md.
Core Workflow
Step 1: Fetch All Pages
Make parallel requests per the Default Fetch Strategy. Check totalCount / pageCount and continue paginating until all data is retrieved.
Step 2: Client-side Filter & Deduplicate
- Score filter: Keep items with
score >= 85(or user-specified threshold) - Deduplicate: Match by
titlesimilarity or sameurl— keep the highest-scored version - Sort: By score descending, then by publish time descending
Step 3: Output Full Details
Output all API detail fields for each item. Do NOT summarize or compress — downstream skills need full data for quality assessment.
Output Format
Use readUrl (BestBlogs 站内链接) for all links. Use url only as fallback when readUrl is absent.
Articles / Podcasts / Videos
## BestBlogs 内容列表 (YYYY-MM-DD, 近 X 天,共 N 篇)
---
### 1. [文章标题](readUrl)
- **来源**: 来源名称 | **作者**: 作者 1, 作者 2 | **评分**: 96 | **字数**: 6835 | **阅读时间**: 28 分钟
- **分类**: 人工智能 > AI 模型
- **一句话摘要**: oneSentenceSummary 内容
- **详细摘要**: summary 完整内容(不截断)
- **主要观点**:
1. **观点标题**: 详细解释说明
2. **观点标题**: 详细解释说明
3. **观点标题**: 详细解释说明
- **文章金句**:
- "金句原文 1"
- "金句原文 2"
- "金句原文 3"
- **标签**: 标签 1, 标签 2, 标签 3
- **发布时间**: publishDateTimeStr
---
### 2. [文章标题](readUrl)
...Tweets
### 1. [推文标题](readUrl)
- **作者**: @username | **评分**: 91 | **影响力**: 90
- **互动**: 👍 446 🔁 134 💬 36 💾 28 👁 45K
- **一句话摘要**: oneSentenceSummary
- **详细摘要**: summary 完整内容
- **主要观点**:
1. **观点标题**: 详细解释
- **金句**:
- "金句原文"
- **标签**: 标签 1, 标签 2
- **发布时间**: publishDateTimeStrOutput Completeness Rules
summary: Output in full, never truncatemainPoints: Output ALL points with bothpointandexplanationkeyQuotes: Output ALL quotestags: Output ALL tags- If
mainPointsorkeyQuotesis empty, omit that section - For tweets with
translateContent, include it after the summary
Error Handling
401: Check ifBESTBLOGS_API_KEYis set and valid400: Verify parameter values match allowed enums404: Resource ID may be invalid500: Retry once, then report to user
Common Filters Quick Reference
| Filter | Values |
| timeFilter | 1d, 3d, 1w, 1m, 3m, 1y |
| qualifiedFilter | true (精选), false, ALL |
| sortType | default, time_desc, score_desc, read_desc |
| category | Artificial_Intelligence, Business_Tech, Programming_Technology, Product_Development |
| type | ARTICLE, PODCAST, VIDEO, TWITTER |
| language | zh_CN, en_US |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

