News API
News API is a simple, easy-to-use REST API that returns JSON search results for current and historic news articles published by over 150,000 worldwide sources.
news-apivcatalog-v13 个 Tools
认证方式
| 方式 | 底层类型 | 状态 | 说明 |
|---|---|---|---|
| API Key | api_key | available | — |
调用示例
import { createClient } from "@open-connector/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