View as Markdown
News API icon

News API ACTION

Search Everything

Search through millions of articles from over 150,000 large and small news sources and blogs. See the documentation
  • Action
  • Read only
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's News API account once, then configure and run Search Everything from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "news_api-search-everything",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    news_api: { authProvisionId: "apn_xxxxxxx" },
    q: "Query",
    searchin: ["Search In"],
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Search Everything inputs
Property Type Description
q Query string
Keywords or phrases to search for
Required
searchin Search In string[]
The fields to restrict your q search to. Default: all fields are searched
Optional
sourceIds Source IDs string[]
An array of source identifiers (maximum 20) for the news sources or blogs you want headlines from
Optional Dynamic
domains Domains string[]
An array of domains to restrict the search to
Optional
excludeDomains Exclude Domains string[]
An array of domains to remove from the results
Optional
from From string
A date and optional time for the oldest article allowed. This should be in ISO 8601 format (e.g. 2024-11-01 or 2024-11-01T17:27:47)
Optional
to To string
A date and optional time for the newest article allowed. This should be in ISO 8601 format (e.g. 2024-11-01 or 2024-11-01T17:27:47)
Optional
language Language string
The 2-letter ISO-639-1 code of the language you want to get headlines for
Optional
sortBy Sort By string
The order to sort the articles in. Default: publishedAt
Optional
maxResults Max Results integer
The maximum number of results to return. Must be between 1 and 100.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
news_api-search-everything
Version
0.0.2
App
News API
Authentication
API key
Read-only
Yes
Destructive
No
Open world
Yes