Open Connector
← 所有 Tools

News API logoNews API

Search articles by keyword, get top headlines by country or category, and list publishers.

news-apivcatalog-v13 个 Tools

认证方式

方式底层类型状态说明
API Keyapi_keyavailableAuthenticate News API with API Key. Provide the value expected by the provider; request access follows the provider's authentication rules.

调用示例

import { createClient } from "@open-connector/commercial-sdk";const oc = createClient({  baseUrl: "https://api.openconnector.dev",  apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({  slug: "NEWS_API_EVERYTHING",  connectedAccountId: "conn_...",  arguments: { /* match this tool's input schema */ },});
import Composio from "@composio/client";const composio = new Composio({  baseURL: "https://api.openconnector.dev/composio",  apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("NEWS_API_EVERYTHING", {  connected_account_id: "conn_...",  arguments: { /* match this tool's input schema */ },});
oc tools execute NEWS_API_EVERYTHING --data '{ }'

Tool 目录

可用 Tools

3 个可调用操作

Search all news articlesNEWS_API_EVERYTHINGSearches News API's indexed articles by keyword, source, domain, language, date, and sorting criteria.

Searches News API's indexed articles by keyword, source, domain, language, date, and sorting criteria.

认证

需要 Connected Account

Tags

newssearcharticles
List news sourcesNEWS_API_SOURCESLists the news publishers available through News API.

Lists the news publishers available through News API.

认证

需要 Connected Account

Tags

newssources
Get top headlinesNEWS_API_TOP_HEADLINESReturns breaking headlines filtered by country, category, source, or keyword.

Returns breaking headlines filtered by country, category, source, or keyword.

认证

需要 Connected Account

Tags

newsheadlines

Provider 资源