# News Search API - Articles by Keyword (GDELT + Bing News) (`oddnectary/news-search-api`) Actor

Search news articles by keyword: title, URL, publisher, date, summary and image from Bing News RSS, the open GDELT index (65 languages, outlet country) and publisher feeds, merged and de-duplicated. No Google News scraping, no proxies, no API key.

- **URL**: https://apify.com/oddnectary/news-search-api.md
- **Developed by:** [Odd Nectary](https://apify.com/oddnectary) (community)
- **Categories:** News, AI, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 articles

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## News Search API - Articles by Keyword (GDELT + Bing News)

Search **news articles by keyword** and get one clean row per article: **title, URL, publisher, domain, country, language, publication date, summary and image**. The Actor queries three open sources at once - the **Bing News RSS** search, the **GDELT** global news index (65 languages) and any **publisher RSS feeds** you add - then merges the answers, removes duplicates and returns the newest articles first.

| | |
|---|---|
| **Input** | Keywords or phrases, plus optional language, country, time window and domain filters |
| **Output** | One row per article: title, URL, publisher, domain, country, language, date, summary, image, source. JSON, CSV, Excel or API |
| **Price** | from $1.20 per 1,000 articles |
| **Needs** | No proxy, no login, no API key |

It does **not** scrape Google News. Every source is an open API or an RSS output meant for machines, which is why runs are fast, cheap and do not break when a web page is redesigned.

### What you can do with it

- **Brand and competitor monitoring** - schedule a run every hour and receive only the new mentions of a company, product or person in the news.
- **Media intelligence and PR reporting** - coverage by country, language and outlet for a campaign or a crisis.
- **News feeds for AI agents and RAG** - give an LLM fresh, de-duplicated headlines with source and date for any topic.
- **Market and financial research** - track sectors, tickers, commodities or regulations across thousands of outlets.
- **Content curation and newsletters** - collect the week's articles about a niche, limited to the domains you trust.
- **Lead and event triggers** - funding rounds, openings, recalls, lawsuits: one keyword per trigger, pushed to Make, n8n, Zapier or a webhook.

### Sources

| Source | What it adds | Good to know |
|---|---|---|
| GDELT DOC 2.0 | World news in 65 languages, with the country and language of each outlet, up to 250 articles per keyword, last 3 months | Best effort. The API accepts one request every 5 seconds per IP address and, from shared cloud addresses, it is busy most of the time. The Actor queues its calls, retries with a growing pause, caches answers for 15 minutes and, if GDELT stays busy, **continues with the other sources** and says so in the status message |
| Bing News RSS | The dependable base of every run: publisher name, summary and thumbnail; fresh results by date and by relevance | About 20 to 60 articles per keyword |
| Publisher feeds (optional) | Niche outlets that indexes miss: any RSS, Atom or JSON feed, or a site URL whose feed is found automatically | Recent items that contain every word of the keyword |

The `discoveredVia` field tells which source found each article and `alsoFoundVia` lists the others that returned the same one.

### Input

| Field | Type | Description |
|---|---|---|
| `keywords` (required) | array of strings | One search per keyword or phrase. Boolean queries such as `(tesla OR rivian) recall` are accepted. |
| `timeRange` | string | `1h`, `24h`, `7d` (default), `30d` or `any`. |
| `language` | string | Two-letter code (`en`, `es`, `pt`, `de`...). Empty = every language. |
| `country` | string | Two-letter code (`US`, `GB`, `BR`...). GDELT filters by the country of the outlet; Bing News uses it as market. |
| `includeDomains` | array of strings | Only articles from these domains (subdomains included). |
| `excludeDomains` | array of strings | Drop articles from these domains. |
| `feeds` | array of strings | Publisher feed or site URLs to search as an extra source. |
| `useGdelt`, `useBing` | boolean | Switch a source off. Both default to on. |
| `gdeltWaitSecs` | integer | How long to keep retrying GDELT per keyword when it is rate limited (default 25). |
| `maxItemsPerKeyword` | integer | Newest articles kept per keyword (default 50, up to 500). |
| `maxItems` | integer | Hard cap for the whole run. |

#### Example input

```json
{
    "keywords": ["electric vehicles", "(tesla OR rivian) recall"],
    "timeRange": "24h",
    "language": "en",
    "country": "US",
    "excludeDomains": ["msn.com"],
    "feeds": ["https://techcrunch.com/feed/"],
    "maxItemsPerKeyword": 50
}
```

### Output

One item per article:

```json
{
    "keyword": "electric vehicles",
    "title": "Used electric cars are suddenly hot, with sales up 73% in a year",
    "url": "https://finance.yahoo.com/news/used-electric-cars-suddenly-hot-060500123.html",
    "sourceName": "Yahoo Finance",
    "domain": "finance.yahoo.com",
    "country": "US",
    "language": "en",
    "publishedAt": "2026-11-23T06:05:00.000Z",
    "description": "The cheapest way into an electric car just got more crowded. Used EV sales in the United States jumped 73% from a year earlier in October...",
    "imageUrl": "https://www.bing.com/th?id=ONUT.paw0bdJPvE3Gr3oiuIT-5Q&pid=News",
    "discoveredVia": "gdelt",
    "alsoFoundVia": ["bing"],
    "scrapedAt": "2026-11-23T12:00:00.000Z"
}
```

| Field | Notes |
|---|---|
| `publishedAt` | ISO 8601, UTC. For GDELT it is the time the article was first seen by the index; Bing News times are converted from US Pacific time to UTC. |
| `country` | Country of the outlet. Filled by GDELT only; `null` otherwise. |
| `language` | Language of the article when the source states it, or the language you asked for. |
| `sourceName`, `description` | Filled by Bing News and by feeds; `null` for articles found only by GDELT. |
| `imageUrl` | Social image (GDELT), thumbnail (Bing News) or feed image. |

Fields are always present; unknown values are `null`. The `RUN_SUMMARY` record in the key-value store reports, per keyword, how many articles each source returned and whether a source was unavailable.

### Pricing

**Pay per result: from $1.20 to $2.00 per 1,000 articles.** No monthly rental, no platform usage on top.

| Your Apify plan | Price per 1,000 articles |
|---|---|
| Free | $2.00 |
| Starter (Bronze) | $1.80 |
| Scale (Silver) | $1.50 |
| Business (Gold) and above | $1.20 |

Results removed by your filters are free: you only pay for what you receive. Use the max items input to cap spending.

### Limits and good to know

- **GDELT is best effort and often rate limited.** Plan for Bing News volumes (20 to 60 articles per keyword) and treat GDELT rows, with their `country`, as a bonus. When its rate limit is hit the run still succeeds with the other sources; `RUN_SUMMARY.sources.gdelt.status` is then `partial` or `unavailable`. Raise `gdeltWaitSecs` (120 to 300) or schedule the run again when the country and language of each outlet are essential.
- GDELT answers are cached for 15 minutes in a key-value store named `news-search-api-cache` in your account, so repeated runs of the same search do not spend the shared limit.
- GDELT indexes the last 3 months; older articles are out of reach. Bing News favours the last weeks.
- An unquoted phrase is searched as an exact phrase by GDELT and as all words by Bing News. Use GDELT operators such as `(a OR b)` freely; Bing News receives the same text.
- The Actor returns **metadata and links, not the full text** of the articles. Author names are never collected.
- Duplicates are detected by canonical URL (tracking parameters, `www` and trailing slashes ignored). The same story republished by another outlet is a different article.
- Language and country codes outside GDELT's table are still applied to Bing News; the status message tells when GDELT was skipped for that reason.

### FAQ

**Is this legal?** GDELT is an open data project that publishes its index for research and monitoring. Bing News offers an RSS output of its search and its robots.txt allows generic agents to read it. Publisher feeds exist to be read by programs. The Actor collects headlines, links and short summaries - no paywalled text, no personal data.

**Why not Google News?** Its robots.txt disallows the search and RSS paths, so scrapers of it depend on proxies and break often. This Actor uses sources that welcome automated access.

**How do I get only new articles on a schedule?** Use `timeRange` equal to your schedule interval (for example `1h` for an hourly run) and de-duplicate by `url` on your side.

**Can I call it from the API, Make, n8n, Zapier or an AI agent?** Yes. Run it through the Apify API or the `apify-client` packages for JavaScript and Python, use the Apify apps for Make, n8n and Zapier, or expose it to agents through the Apify MCP server.

**How many articles can I get per keyword?** Up to 500 after merging. Broad keywords usually return 20 to 60 from Bing News alone and 100 to 300 when GDELT also answers. For more coverage, split a topic into several narrower keywords or add publisher feeds.

**Something is missing or broken?** Open an issue in the Issues tab.

### Related Actors

- [RSS Feed Reader & Finder](https://apify.com/oddnectary/rss-feed-reader) - every item of any RSS, Atom or JSON feed, with full text.
- [Sitemap URL Extractor](https://apify.com/oddnectary/sitemap-url-extractor) - all URLs of a news site from its XML sitemaps.
- [Domain Age & Expiry Checker](https://apify.com/oddnectary/rdap-domain-lookup) - registration date and registrar of the domains behind the articles.

# Actor input Schema

## `keywords` (type: `array`):

Keywords or phrases to search for, one search per line. A phrase with several words is searched as an exact phrase by GDELT and as all words by Bing News. Boolean queries such as (tesla OR rivian) recall are accepted.

## `timeRange` (type: `string`):

Keep only articles published inside this window.

## `language` (type: `string`):

Two-letter language code of the articles (en, es, pt, de, fr, ja...). Leave empty for every language. GDELT monitors news in 65 languages.

## `country` (type: `string`):

Two-letter country code (US, GB, BR, DE, IN...). GDELT keeps only outlets based in that country; Bing News uses it as the search market. Leave empty for worldwide.

## `includeDomains` (type: `array`):

Return only articles published on these domains (reuters.com, bbc.com). Subdomains are included.

## `excludeDomains` (type: `array`):

Drop articles published on these domains. Subdomains are included.

## `feeds` (type: `array`):

Optional RSS, Atom or JSON feed URLs (or website URLs, the feed is found automatically). Their recent items that mention a keyword are added to the results. Useful for niche outlets that the indexes miss.

## `useGdelt` (type: `boolean`):

GDELT is an open index of world news in 65 languages with country and language of each outlet. Its API allows one request every 5 seconds per IP address; when it is rate limited the run continues with the other sources.

## `useBing` (type: `boolean`):

Bing News RSS search: publisher name, summary and thumbnail for each article.

## `gdeltWaitSecs` (type: `integer`):

How long to keep retrying GDELT for one keyword when it answers with a rate limit. Raise it (120 to 300) when country and language of the outlet matter more than speed.

## `maxItemsPerKeyword` (type: `integer`):

Newest articles kept for each keyword after merging the sources.

## `maxItems` (type: `integer`):

Hard cap for the whole run. Leave empty for no cap besides the per-keyword limit.

## Actor input object example

```json
{
  "keywords": [
    "artificial intelligence"
  ],
  "timeRange": "7d",
  "language": "en",
  "country": "US",
  "includeDomains": [
    "reuters.com"
  ],
  "excludeDomains": [
    "msn.com"
  ],
  "feeds": [
    "https://techcrunch.com/feed/"
  ],
  "useGdelt": true,
  "useBing": true,
  "gdeltWaitSecs": 25,
  "maxItemsPerKeyword": 20
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keywords": [
        "artificial intelligence"
    ],
    "maxItemsPerKeyword": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("oddnectary/news-search-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "keywords": ["artificial intelligence"],
    "maxItemsPerKeyword": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("oddnectary/news-search-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "artificial intelligence"
  ],
  "maxItemsPerKeyword": 20
}' |
apify call oddnectary/news-search-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,oddnectary/news-search-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/JvjtukD4AJots5O1h/builds/Dlal0T12nbUY96nQz/openapi.json
