# News & Trend Monitor (Worldwide News + Hacker News) (`datasetworks/news-trend-monitor`) Actor

Track any company, product or topic across worldwide online news (100+ languages) and Hacker News, with a coverage trend per term. Clean, deduplicated articles for monitoring, research and AI agents.

- **URL**: https://apify.com/datasetworks/news-trend-monitor.md
- **Developed by:** [Dataset Works](https://apify.com/datasetworks) (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

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 & Trend Monitor (Worldwide News + Hacker News)

**Track any company, product or topic across worldwide online news and Hacker News, and see whether coverage is rising or falling.**

Give it search terms. It returns every matching article in your time window as one clean, deduplicated table, plus a coverage trend for each term. News covers outlets in 100+ languages and most countries, so it works for emerging markets as well as the US and Europe.

### Sample output

| query | source | publishedAt | title | domain | sourceCountry | points |
| --- | --- | --- | --- | --- | --- | --- |
| Flipkart | news | 2026-11-12 | Festive GMV up 17%, But Phone Demand Low | economictimes.indiatimes.com | India | |
| Nvidia | news | 2026-11-12 | Military-linked Chinese university bought Nvidia H200 chips despite US blacklist | thehindu.com | India | |
| Nvidia | hackernews | 2026-11-12 | AMD EPYC 9006 Venice vs. Nvidia Vera Benchmarks for HPC | phoronix.com | | 2 |

Each row also has `url`, `language`, `comments` and `discussionUrl` (Hacker News) and `fetchedAt`.

The `SUMMARY` record in the key-value store gives, per term: article counts, a news-volume timeline, and `changePercent`, the change in coverage between the first and second half of the window (e.g. "Nvidia: +144% over 7 days").

### How to use

1. Add **Search terms**: company names, products, topics. Multi-word terms match as a phrase.
2. Pick a **Time window** (last hour to last 90 days).
3. Optional: limit news to a **language** (e.g. `hindi`) or **source country** (e.g. `india`, `nigeria`, `brazil`).
4. Run, or schedule it daily on Apify to get a fresh feed and trend each morning.

### Use cases

- Competitor and brand monitoring.
- Market and investment research, including emerging markets.
- Trend spotting: which topics are gaining coverage.
- A news feed for AI agents and dashboards.

### Pricing

**$0.01 per search term** (not charged if the news source is unreachable for that term) plus **$1 per 1,000 articles** returned. Example: 5 terms with 50 articles each costs $0.30. Platform usage is included.

Note: the worldwide news source limits how fast requests can be made, so runs take about a minute per search term. This is deliberate: we stay within the source's published limits.

### For AI agents

Call it through the Apify API or the Apify MCP server with `{"queries": ["Stripe"], "timespan": "7d", "maxArticlesPerQuery": 20}`. Every row has the same fields, and the SUMMARY record gives a one-number trend per term.

### Data and responsibility

News articles come from the GDELT Project's free public API (gdeltproject.org), which indexes online news worldwide; Hacker News stories come from its official public search API. We return headlines, links and metadata, not full article text, and no author or user data. We follow each source's rate limits.

### Support

Found a bug or need a source added? Open an issue on this page and we'll reply within one working day.

Built and maintained by **Dataset Works**.

# Actor input Schema

## `queries` (type: `array`):

Companies, products or topics to monitor, e.g. 'OpenAI', 'solid-state battery'. Multi-word terms are matched as a phrase. Advanced GDELT syntax (OR, quotes, brackets) also works.

## `timespan` (type: `string`):

How far back to look.

## `sources` (type: `array`):

Worldwide online news (via the GDELT Project, 100+ languages) and Hacker News stories.

## `maxArticlesPerQuery` (type: `integer`):

Up to 250 for news, 100 for Hacker News.

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

Only news in this language, e.g. 'english', 'spanish', 'hindi'. Leave empty for all.

## `sourceCountry` (type: `string`):

Only news from outlets in this country, e.g. 'india', 'nigeria', 'brazil', 'uk'. Leave empty for all.

## `includeTrend` (type: `boolean`):

Adds a news-volume timeline per term and a % change between the first and second half of the window, in the SUMMARY record.

## Actor input object example

```json
{
  "queries": [
    "Nvidia",
    "solid-state battery"
  ],
  "timespan": "24h",
  "sources": [
    "news",
    "hackernews"
  ],
  "maxArticlesPerQuery": 50,
  "includeTrend": true
}
```

# 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 = {
    "queries": [
        "Nvidia",
        "solid-state battery"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datasetworks/news-trend-monitor").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 = { "queries": [
        "Nvidia",
        "solid-state battery",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("datasetworks/news-trend-monitor").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 '{
  "queries": [
    "Nvidia",
    "solid-state battery"
  ]
}' |
apify call datasetworks/news-trend-monitor --silent --output-dataset

```

## MCP server setup

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

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/SHoFKGCtWwcXxLFL3/builds/1zxrdjZHDM6d9ExTH/openapi.json
