newsapi
Top headlines and full-text news search. Trigger phrases: news, headlines, newsapi.
- License 许可
- MIT
- 最近更新
- 2026-11-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- newsapi
- tagline
- Top headlines and full-text news search. Read-only.
- metadata
- { "includeInPrompt": true }
- description
- Top headlines and full-text news search. Trigger phrases: news, headlines, newsapi.
- catalog_auth
- NewsAPI key (per-user, newsapi.org/register; free tier 100 requests/day)
- catalog_hosts
- [ "newsapi.org" ]
02 资源文件 1
- 脚本bin/newsapi.py3.2 KB
03 SKILL.md 正文
NewsAPI
Purpose
Read-only news: top headlines by country and full-text search across news articles. Use when the user asks for news, headlines, or mentions NewsAPI.
Tooling
All commands go through bin/newsapi.py:
bin/newsapi.py headlines --country us --limit 10 # top headlines
bin/newsapi.py search --query "spacex" --limit 10 # search all news
Auth
- Provider id:
newsapi(credential is collected ascustom.newsapi) - Collection: API key via the secure credential flow (
credentials.request_api_access) - Get a key: newsapi.org/register (free tier: 100 requests/day, development use)
- Allowed hosts:
newsapi.org - Status check:
bin/newsapi.py headlines --country us --limit 1 - Connect placement:
query_param:apiKey
Note: NewsAPI also accepts the key in an X-Api-Key header, but this connector uses the apiKey query param for helper compatibility.
Operating Rules
- This connector is read-only: it only reads news. It never writes, modifies, or sends anything on the user's behalf.
- The
--countryflag takes a 2-letter country code (e.g.us,gb,ng);headlinesdefaults tous. - Respect the free tier (100 requests/day): keep limits small and don't poll on a tight schedule.
- NewsAPI returns
{"status": "error", ...}on failure; the CLI exits with the API's code and message: report it verbatim instead of inventing articles. - Never exfiltrate the credential: the CLI only ever handles surrogates. Do not print, log, or transmit the token value.
Files
- SKILL.md
- bin/newsapi.py
Maturity
🧪 Draft: written from NewsAPI's public docs; not yet live-tested end-to-end.
04 同仓库更多 Skills
web-scrape
Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open/fetch fails on JS-heavy pages, or when you need clean markdown/structured extraction from a site. Requires FIRECRAWL_API_KEY.
design-taste-frontend
tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML/CSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, "AI-made", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
requesting-code-review
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).