News API
Search articles by keyword, get top headlines by country or category, and list publishers.
news-apivcatalog-v13 个 Tools
认证方式
| 方式 | 底层类型 | 状态 | 说明 |
|---|---|---|---|
| API Key | api_key | available | Authenticate 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 AccountTags
newssearcharticles
List news sourcesNEWS_API_SOURCESLists the news publishers available through News API.需要连接
Lists the news publishers available through News API.
认证
需要 Connected AccountTags
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 AccountTags
newsheadlines