Skip to content
Back to skills

Fetch News Api

ASecurity

通过 NewsAPI.org 搜索新闻报道。用于获取行业动态、新闻报道。Free tier 100 requests/天,结果有 24h 延迟。需要 NEWS_API_KEY 环境变量。

  • 98 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
data-aipythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add zhiyuzi/Signex --skill fetch-news-api --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fetch News Api?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fetch News Api
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zhiyuzi-fetch-news-api/badge)](https://www.skillsdirectory.com/skills/zhiyuzi-fetch-news-api)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fetch-news-api
description: 通过 NewsAPI.org 搜索新闻报道。用于获取行业动态、新闻报道。Free tier 100 requests/天,结果有 24h 延迟。需要 NEWS_API_KEY 环境变量。
---

# fetch-news-api

从 stdin 读取 JSON 参数,搜索新闻报道:

```bash
echo '{"queries": ["AI developer tools"], "days": 7, "language": "en", "sort_by": "relevancy"}' | uv run python .claude/skills/fetch-news-api/scripts/search.py
```

参数:
- `queries`: 搜索查询词数组
- `days`: 时间窗口天数(默认 7)
- `language`: 语言代码(默认 "en")
- `sort_by`: 排序方式 relevancy/popularity/publishedAt(默认 "relevancy")

需要环境变量 `NEWS_API_KEY`(从项目 .env 文件加载)。

脚本输出 JSON 到 stdout,包含去重后的新闻结果。按 URL 去重。

Files in this skill

  • SKILL.md827 B
  • scripts/search.py3.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.