daily-news-60s
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese每天60秒读懂世界 - Daily News Skill
每天60秒读懂世界 - Daily News Skill
This skill helps AI agents fetch and present daily curated news from the 60s API, which provides 15 selected news items plus a daily quote, updated every 30 minutes.
本技能可帮助AI Agent从60s API获取并展示每日精选新闻,该API提供15条精选新闻及每日微语,每30分钟更新一次。
When to Use This Skill
何时使用本技能
Use this skill when users:
- Ask for today's news or current events
- Want a quick daily briefing
- Request news summaries in Chinese
- Need historical news from a specific date
- Want news in different formats (text, markdown, image)
当用户有以下需求时使用本技能:
- 询问今日新闻或时事资讯
- 需要快速的每日简报
- 请求中文新闻摘要
- 需要特定日期的历史新闻
- 需要不同格式的新闻(文本、Markdown、图片)
API Endpoint
API 端点
Base URL:
https://60s.viki.moe/v2/60sMethod: GET
基础URL:
https://60s.viki.moe/v2/60s请求方法: GET
Parameters
参数
-
(optional): Date in YYYY-MM-DD format (e.g., "2024-01-15")
date- If not provided, returns the latest available news
-
(optional): Output format
encoding- (default): Structured JSON data
json - : Plain text format
text - : Formatted markdown
markdown - : Redirect to image URL
image - : Returns image binary data
image-proxy
-
(可选):日期格式为YYYY-MM-DD(例如:"2024-01-15")
date- 若未提供,返回最新可用新闻
-
(可选):输出格式
encoding- (默认):结构化JSON数据
json - :纯文本格式
text - :格式化Markdown
markdown - :重定向至图片URL
image - :返回图片二进制数据
image-proxy
How to Use
使用方法
Basic Usage - Get Latest News
基础用法 - 获取最新新闻
bash
curl "https://60s.viki.moe/v2/60s"python
import requests
response = requests.get('https://60s.viki.moe/v2/60s')
news = response.json()
print(f"📰 {news['date']} 新闻简报")
print(f"农历:{news['lunar_date']} {news['day_of_week']}\n")
for i, item in enumerate(news['news'], 1):
print(f"{i}. {item['title']}")
print(f"\n💭 微语:{news['tip']}")bash
curl "https://60s.viki.moe/v2/60s"python
import requests
response = requests.get('https://60s.viki.moe/v2/60s')
news = response.json()
print(f"📰 {news['date']} 新闻简报")
print(f"农历:{news['lunar_date']} {news['day_of_week']}\n")
for i, item in enumerate(news['news'], 1):
print(f"{i}. {item['title']}")
print(f"\n💭 微语:{news['tip']}")Get News for Specific Date
获取特定日期的新闻
python
response = requests.get('https://60s.viki.moe/v2/60s', params={'date': '2024-01-15'})python
response = requests.get('https://60s.viki.moe/v2/60s', params={'date': '2024-01-15'})Get News as Markdown
获取Markdown格式的新闻
python
response = requests.get('https://60s.viki.moe/v2/60s', params={'encoding': 'markdown'})
markdown_content = response.textpython
response = requests.get('https://60s.viki.moe/v2/60s', params={'encoding': 'markdown'})
markdown_content = response.textGet News as Plain Text
获取纯文本格式的新闻
python
response = requests.get('https://60s.viki.moe/v2/60s', params={'encoding': 'text'})
text_content = response.textpython
response = requests.get('https://60s.viki.moe/v2/60s', params={'encoding': 'text'})
text_content = response.textResponse Format (JSON)
响应格式(JSON)
json
{
"date": "2024-01-15",
"day_of_week": "星期一",
"lunar_date": "腊月初五",
"news": [
{
"title": "新闻标题1",
"link": "https://example.com/news1"
},
...
],
"tip": "每日微语内容",
"image": "https://..../image.png",
"updated": "2024-01-15 09:00:00",
"updated_at": 1705280400000,
"api_updated": "2024-01-15 09:00:00",
"api_updated_at": 1705280400000
}json
{
"date": "2024-01-15",
"day_of_week": "星期一",
"lunar_date": "腊月初五",
"news": [
{
"title": "新闻标题1",
"link": "https://example.com/news1"
},
...
],
"tip": "每日微语内容",
"image": "https://..../image.png",
"updated": "2024-01-15 09:00:00",
"updated_at": 1705280400000,
"api_updated": "2024-01-15 09:00:00",
"api_updated_at": 1705280400000
}Example Interactions
交互示例
User Request: "今天有什么新闻?"
用户请求:"今天有什么新闻?"
Agent Response:
📰 2024年1月15日 星期一 农历腊月初五
【今日要闻】
1. 新闻标题1
2. 新闻标题2
3. 新闻标题3
...
💭 微语:[每日微语内容]Agent 响应:
📰 2024年1月15日 星期一 农历腊月初五
【今日要闻】
1. 新闻标题1
2. 新闻标题2
3. 新闻标题3
...
💭 微语:[每日微语内容]User Request: "Get yesterday's news"
用户请求:"Get yesterday's news"
python
from datetime import datetime, timedelta
yesterday = (datetime.now() - timedelta(days=1)).strftime('%Y-%m-%d')
response = requests.get('https://60s.viki.moe/v2/60s', params={'date': yesterday})python
from datetime import datetime, timedelta
yesterday = (datetime.now() - timedelta(days=1)).strftime('%Y-%m-%d')
response = requests.get('https://60s.viki.moe/v2/60s', params={'date': yesterday})Best Practices
最佳实践
- Caching: The API has built-in caching, responses are very fast
- Update Frequency: News updates every 30 minutes, typically by 10 AM
- Error Handling: Always check response status and handle errors gracefully
- Format Selection: Use JSON for structured data, markdown for formatted output, text for simple presentation
- Date Validation: When requesting specific dates, ensure the date format is YYYY-MM-DD
- 缓存机制:API内置缓存,响应速度极快
- 更新频率:新闻每30分钟更新一次,通常在上午10点前完成更新
- 错误处理:始终检查响应状态并优雅处理错误
- 格式选择:使用JSON获取结构化数据,Markdown用于格式化输出,纯文本用于简单展示
- 日期验证:请求特定日期时,确保日期格式为YYYY-MM-DD
Common Use Cases
常见使用场景
1. Daily News Bot
1. 每日新闻机器人
python
def send_morning_news():
news = requests.get('https://60s.viki.moe/v2/60s').json()
message = f"早安!今天是 {news['date']} {news['day_of_week']}\n\n"
message += "\n".join([f"{i}. {item['title']}" for i, item in enumerate(news['news'][:5], 1)])
message += f"\n\n{news['tip']}"
return messagepython
def send_morning_news():
news = requests.get('https://60s.viki.moe/v2/60s').json()
message = f"早安!今天是 {news['date']} {news['day_of_week']}\n\n"
message += "\n".join([f"{i}. {item['title']}" for i, item in enumerate(news['news'][:5], 1)])
message += f"\n\n{news['tip']}"
return message2. News Summary for Chatbots
2. 聊天机器人新闻摘要
python
def get_news_summary(count=5):
news = requests.get('https://60s.viki.moe/v2/60s').json()
return {
'date': news['date'],
'headlines': [item['title'] for item in news['news'][:count]],
'quote': news['tip']
}python
def get_news_summary(count=5):
news = requests.get('https://60s.viki.moe/v2/60s').json()
return {
'date': news['date'],
'headlines': [item['title'] for item in news['news'][:count]],
'quote': news['tip']
}3. Historical News Lookup
3. 历史新闻查询
python
def get_historical_news(date_str):
response = requests.get('https://60s.viki.moe/v2/60s', params={'date': date_str})
if response.ok:
return response.json()
return Nonepython
def get_historical_news(date_str):
response = requests.get('https://60s.viki.moe/v2/60s', params={'date': date_str})
if response.ok:
return response.json()
return NoneTroubleshooting
故障排除
Issue: No data returned
问题:无数据返回
- Solution: Try requesting previous dates (yesterday or the day before)
- The service tries latest 3 days automatically
- 解决方案:尝试请求前几日的日期(昨天或前天)
- 服务会自动尝试获取最近3天的数据
Issue: Image not loading
问题:图片无法加载
- Solution: Use instead of
encoding=image-proxyencoding=image - The proxy endpoint directly returns image binary data
- 解决方案:使用替代
encoding=image-proxyencoding=image - 代理端点会直接返回图片二进制数据
Issue: Old date requested
问题:请求日期过旧
- Solution: Data is only available for recent dates
- Check the response status code
- 解决方案:仅提供近期日期的数据
- 检查响应状态码
API Characteristics
API 特性
- ✅ Free: No authentication required
- ✅ Fast: Millisecond-level cached responses
- ✅ Reliable: Global CDN acceleration
- ✅ Updated: Every 30 minutes
- ✅ Quality: 15 curated news items from authoritative sources
- ✅ 免费:无需认证
- ✅ 快速:毫秒级缓存响应
- ✅ 可靠:全球CDN加速
- ✅ 实时更新:每30分钟更新一次
- ✅ 高质量:15条来自权威来源的精选新闻