# News Headlines Scraper - 138 Outlets, 44 Countries, No Key (`martin10291/news-headlines-scraper`) Actor

World news headlines from 193 official publisher RSS feeds: BBC, NYT, NPR, Fox, Al Jazeera, DW, Le Monde, Spiegel, El Pais, Times of India, 138 outlets in 44 countries. No API key, no login, no proxy. Filter by country, topic and keyword, only-new mode. $1 per 1000 headlines.

- **URL**: https://apify.com/martin10291/news-headlines-scraper.md
- **Developed by:** [Martin Petrov](https://apify.com/martin10291) (community)
- **Categories:** News, Agents, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 results

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 Headlines Scraper - World News by Country

**Problem:** you need fresh news headlines for a country, a topic or a keyword (your brand, a stock, a person) as clean JSON. Google News scrapers break and cost $5 per 1000 plus a start fee. News APIs want a key and a monthly plan.

This actor reads **193 official publisher RSS feeds of 138 outlets in 44 countries**: BBC, The New York Times, NPR, Fox News, CBS, ABC, Washington Post, Politico, Al Jazeera, DW, France 24, Euronews, UN News, Sky News, Le Monde, Le Figaro, Der Spiegel, Tagesschau, El País, ANSA, NOS, g1, Folha, Clarín, Times of India, ABC Australia, RNZ, CNA, SCMP, Yonhap and more. **No API key, no login, no proxy.** It returns headline, link, the publisher's summary, publish time, outlet, country, language, topic and image.

**$1 per 1000 headlines, no start fee.** The default run (US + UK, last 24 h, 100 headlines) finishes in about 15 seconds.

### What you get

- **Headlines by country** (44 countries + international outlets) and **by topic**: top, world, business, technology, science, health, sports, entertainment, politics.
- **Keyword filter** (whole word, case-insensitive) on title + summary, plus exclude words. Good for brand, company, ticker or person tracking.
- **Language and outlet filters**: only German outlets, only BBC + NYT, and so on.
- **Dedupe**: the same story in several sections of one outlet is saved once, with all sections in `topics`.
- **Only-new mode** with `monitorId`: schedule it and every run returns only headlines you have not received before.
- **Extra feeds**: add any RSS/Atom URL (trade press, a newsroom, a local paper) to the same run.
- **Feed catalog**: `listSources: true` lists every feed with country, language and topic.

### Input

| Field | Type | Description |
|---|---|---|
| `countries` | array | `us`, `gb`, `de`, `fr`, `in`, `au`, `bg` ... and `int`. Empty = all 44. |
| `topics` | array | `top`, `world`, `business`, `technology`, `science`, `health`, `sports`, `entertainment`, `politics`. Empty = all. |
| `keywords` | array | Keep headlines that contain one of these words or phrases. |
| `excludeKeywords` | array | Drop headlines with these words. |
| `languages` | array | `en`, `de`, `fr`, `es`, `pt`, `it`, `nl` ... |
| `sources` | array | Outlet name or domain parts, e.g. `BBC`, `nytimes`. |
| `extraFeeds` | array | More RSS/Atom URLs. |
| `hoursBack` | integer | Last N hours. Default `24`. |
| `maxItems` | integer | Most headlines saved (newest first) and the most you pay for. Default `100`. |
| `onlyNew` | boolean | Only headlines not returned before (with the same `monitorId`). |
| `monitorId` | string | Separate memory per monitor. Default `default`. |
| `dedupe` | boolean | Remove the same story from several sections. Default `true`. |
| `requireImage` | boolean | Only headlines with an image. |
| `listSources` | boolean | Output the feed catalog instead of headlines. |

#### Example: business and tech news about AI in the US, UK and India

```json
{
  "countries": ["us", "gb", "in"],
  "topics": ["business", "technology"],
  "keywords": ["AI", "OpenAI", "Nvidia"],
  "hoursBack": 48,
  "maxItems": 200
}
```

#### Example: brand mentions in world news, every hour, only new

```json
{
  "countries": [],
  "keywords": ["Tesla", "\"Elon Musk\""],
  "onlyNew": true,
  "monitorId": "tesla-news",
  "maxItems": 500
}
```

### Output example

Real row from a run on 2026-11-08:

```json
{
  "title": "What Nigeria must learn from the US midterms",
  "url": "https://punchng.com/what-nigeria-must-learn-from-the-us-midterms/",
  "summary": "At some point in the story, the narrator would get to the name, Donald J. Trump, the 47th President of the United States...",
  "publishedAt": "2026-11-08T00:11:10Z",
  "ageMinutes": 0,
  "source": "Punch",
  "sourceDomain": "punchng.com",
  "country": "ng",
  "language": "en",
  "topic": "top",
  "topics": ["top"],
  "author": "Punch Newspapers",
  "imageUrl": "https://cdn.punchng.com/wp-content/uploads/2020/08/18131509/punch-logo-500x179-1.png",
  "categories": [],
  "matchedKeywords": ["Trump"],
  "feedUrl": "https://punchng.com/feed/",
  "fetchedAt": "2026-11-08T00:10:57Z"
}
```

Every run also writes `RUN_SUMMARY` to the key-value store: feeds tried / ok / failed (with the error per feed), headlines matched and saved, headlines skipped as seen before, and `lastError`.

### Use it from the API

```bash
curl -X POST "https://api.apify.com/v2/acts/martin10291~news-headlines-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"countries":["us","gb"],"topics":["business"],"hoursBack":12,"maxItems":50}'
```

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("martin10291/news-headlines-scraper").call(run_input={
    "countries": ["de", "fr"], "keywords": ["Bundesbank", "ECB"], "hoursBack": 24})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["publishedAt"], item["source"], item["title"])
```

### Schedule it: a clean news feed

1. Save your input as a task, with `onlyNew: true` and a `monitorId`.
2. Add a schedule: **hourly** for brand or market alerts, **every morning** for a daily briefing.
3. Connect the dataset to Slack, email, Google Sheets, Make, Zapier or n8n with an Apify integration. Each run sends only the new headlines.

### Use from AI agents (MCP)

AI agents can call this actor as a tool through the Apify MCP server (`https://mcp.apify.com`, add `martin10291/news-headlines-scraper`). Ask things like "latest business headlines from Germany about the ECB" and the agent gets structured rows with links to the publisher.

### FAQ

**How fresh is the data?** Each run reads the feeds live. Most outlets update their feeds every few minutes. Feeds usually hold the last 1-3 days, so `hoursBack` above 72 rarely adds more.

**Do I get the full article text?** No. You get the headline, link and the summary the publisher puts in its own feed. Open `url` for the full article, or chain our URL to Markdown actor for text.

**Why are some countries thin?** Only official feeds that answer an honest request are in the catalog (tested 2026-11-08). Some outlets block automated readers, and we don't work around that. Add any other feed in `extraFeeds`.

**A feed failed. Do I pay for it?** No. You pay only for saved headlines. Failed feeds are listed in `RUN_SUMMARY.failedFeeds`, and the run still succeeds with the rest.

**Is this legal?** RSS feeds are published by the outlets for syndication. The actor keeps their headline, summary and link back to the article, and copies no paywalled or full text.

# Actor input Schema

## `countries` (type: `array`):

Two-letter country codes of the outlets (us, gb, ca, au, in, de, fr, es, it, nl, br, jp, bg, ... and 'int' for international outlets like Al Jazeera, DW, France 24, UN News). 'uk' and 'usa' also work. Empty = all 44 countries. Run with listSources=true to see every feed.

## `topics` (type: `array`):

Feed sections: top, world, business, technology, science, health, sports, entertainment, politics. Empty = all topics. Many countries only have 'top' (main headlines) feeds.

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

Keep only headlines whose title or summary contains at least one of these words or phrases (whole-word, case-insensitive), e.g. a brand, person, ticker or topic. Empty = all headlines.

## `excludeKeywords` (type: `array`):

Drop headlines that contain any of these words or phrases.

## `languages` (type: `array`):

Two-letter language codes (en, de, fr, es, it, pt, nl, pl, sv, bg, ja, ...). Empty = all languages.

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

Only these outlets: part of the name or domain, e.g. 'BBC', 'nytimes', 'Al Jazeera'. Empty = all outlets that match the other filters.

## `extraFeeds` (type: `array`):

Any other RSS or Atom feed URLs to read in the same run (your trade press, a company newsroom, a local paper). They get topic 'custom'.

## `hoursBack` (type: `integer`):

Only headlines published in the last N hours. Feeds usually hold the last 1-3 days. Default 24.

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

Most headlines saved (newest first) and the most you pay for. Default 100.

## `onlyNew` (type: `boolean`):

Monitoring mode: return only headlines not returned by earlier runs with the same monitorId. Schedule it hourly to get a clean news feed.

## `monitorId` (type: `string`):

Name of the only-new memory. Use a different ID for each separate feed or schedule.

## `dedupe` (type: `boolean`):

The same story in several feeds of one outlet (top + world + politics) is saved once; its sections are listed in 'topics'.

## `requireImage` (type: `boolean`):

Keep only headlines that come with an image URL.

## `listSources` (type: `boolean`):

Instead of headlines, output the feed catalog (country, language, topic, outlet, feed URL) for the filters above. Free of headlines, one row per feed.

## Actor input object example

```json
{
  "countries": [
    "us",
    "gb"
  ],
  "topics": [],
  "hoursBack": 24,
  "maxItems": 100,
  "onlyNew": false,
  "monitorId": "default",
  "dedupe": true,
  "requireImage": false,
  "listSources": false
}
```

# Actor output Schema

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

One row per headline, newest first.

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

Feeds tried/ok/failed, counts, skipped seen headlines and the last error.

# 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 = {
    "countries": [
        "us",
        "gb"
    ],
    "topics": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("martin10291/news-headlines-scraper").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 = {
    "countries": [
        "us",
        "gb",
    ],
    "topics": [],
}

# Run the Actor and wait for it to finish
run = client.actor("martin10291/news-headlines-scraper").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 '{
  "countries": [
    "us",
    "gb"
  ],
  "topics": []
}' |
apify call martin10291/news-headlines-scraper --silent --output-dataset

```

## MCP server setup

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

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/abjuvuR0eWjF2Kj4P/builds/nOJkQbYZNe2lso9E8/openapi.json
