NewsAPI

NewsAPI

Search worldwide news headlines, sources and articles from newsapi.org via any AI agent. 3 tools, API-key auth.

7 天免费 · 无需信用卡 · EU 托管

问 NewsAPI 任何事

通过 AnythingMCP 对 NewsAPI 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。

在 Cloud 上安装 NewsAPI
NewsAPI · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

2 分钟设置

  1. 1在 cloud.anythingmcp.com 开始免费试用。
  2. 2在连接器商店点击 NewsAPI。提示时粘贴凭据。
  3. 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
立即安装 NewsAPI

NewsAPI 指南

面向主流 AI 客户端的逐步设置。

配置 NewsAPI

直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。

This connector wraps the NewsAPI v2 REST API (newsapi.org).

Setup:

  1. Register at https://newsapi.org/register for a free Developer key.
  2. Set NEWSAPI_API_KEY.

Authentication: NewsAPI accepts the key as either the X-Api-Key header (used by this adapter) OR an apiKey query string. We use the header so it doesn't appear in URL logs.

Plan limits — IMPORTANT:

  • Developer (free): 100 requests / day, articles delayed by 24h, no commercial use, results capped at 100 per query.
  • Paid plans: live articles, no daily cap, full historical archive.

Three endpoints:

  • everything — full archive search, the most powerful. Filter by q, sources, domains, from/to date, language, sortBy.
  • top-headlines — breaking news, filtered by country, category, sources, or q. You CANNOT mix country/category with sources in the same call.
  • top-headlines/sources — list all sources, optional filters by category, language, country.

Query syntax: q supports AND, OR, NOT, exact-phrase double quotes, and grouping with parentheses. Example: q=(apple AND iphone) NOT macbook.

Languages: ISO-639-1 codes — en, it, de, es, fr, ... See docs for full list.

Out of scope here: NewsAPI does NOT expose article full text — only title, description, content (truncated to ~200 chars). For full text you must fetch the url separately.

你的 AI 距离 NewsAPI 仅两次点击。

安装连接器、粘贴凭据、向 AI 提问。7 天免费,无需信用卡。