# Article Extractor: News Article Text, Author and Date (`talcoe/article-text-extractor`) Actor

Extract clean article text, title, author, publish date, lead image and language from any news or blog URL, RSS feed or sitemap, with keyword and minimum word filters, priced per result.

- **URL**: https://apify.com/talcoe/article-text-extractor.md
- **Developed by:** [M Usama](https://apify.com/talcoe) (community)
- **Categories:** News, AI, 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 $3.00 / 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.

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

### What does News Article Text Extractor do?

It turns news and blog URLs into clean records: article text, title, author, publish and update dates, lead image, language, site name, section, keywords and word count. Give it article links, or give it RSS, Atom or sitemap URLs and it pulls the newest articles from each. Ads, menus, comment threads and related-story boxes are left out. Filters by keyword and minimum word count keep each run small. Pricing is per result.

### Data source

The Actor reads public article pages and public RSS, Atom and sitemap files over plain HTTP. It combines the page's JSON-LD and meta tags (for author, dates, image) with Mozilla Readability (for the body text). Records are as fresh as the page at the moment of the run.

### Why use it?

- Feed clean text into an LLM, a search index or a vector store without writing a scraper for each publisher.
- Monitor a list of outlets or blogs: schedule the Actor against their feeds and send new articles to Slack, Google Sheets or a webhook.
- Collect a research corpus on one topic: set the keyword filter and let the feeds do the finding.
- Replace a brittle per site parser with one input that works across thousands of sites.

### How to use it

1. Open the Actor and paste article URLs, feed URLs, or both.
2. Click Start. Download results as JSON, CSV or Excel, or read them through the API.
3. Add a Schedule and an Integration (Slack, Google Sheets, webhook) to get new records automatically.

### Input

| Field | Description |
|---|---|
| `urls` | Direct links to articles or blog posts. One record per URL. |
| `feedUrls` | RSS, Atom or XML sitemap URLs. The newest links from each are extracted. Default: BBC News, NPR and The Guardian feeds. |
| `maxArticlesPerFeed` | How many links to take from each feed or sitemap. Default 10. |
| `minWords` | Skip pages with less text than this, such as video pages and link hubs. Default 100. Skipped pages are not billed. |
| `includeKeywords` | Keep only articles that mention at least one of these words in the title, description or text. |
| `maxResults` | Hard stop for the run. You are billed per result, so this caps the cost. |
| `proxyConfiguration` | Apify proxy is recommended for larger runs. |

Example input:

```json
{
  "feedUrls": ["https://www.npr.org/rss/rss.php?id=1001"],
  "urls": ["https://www.theguardian.com/world/rss"],
  "maxArticlesPerFeed": 10,
  "minWords": 100,
  "includeKeywords": ["election", "inflation"],
  "maxResults": 30
}
```

### Output

Every record has the same shape. This one is from a real run, with the text shortened:

```json
{
  "id": "https://www.npr.org/2026/11/21/g-s1-154914/nations-at-un-talks-on-ai-killer-robots-agree-to-more-talks-but-no-firm-commitment-to-rein-them-in",
  "url": "https://www.npr.org/2026/11/21/g-s1-154914/nations-at-un-talks-on-ai-killer-robots-agree-to-more-talks-but-no-firm-commitment-to-rein-them-in",
  "canonicalUrl": "https://www.npr.org/2026/11/21/g-s1-154914/nations-at-un-talks-on-ai-killer-robots-agree-to-more-talks-but-no-firm-commitment-to-rein-them-in",
  "title": "Nations at UN talks on AI killer robots agree to more talks but no firm commitment to rein them in",
  "author": "The Associated Press",
  "publishedAt": "2026-11-21T08:08:01.000Z",
  "modifiedAt": "2026-11-21T08:08:01.000Z",
  "siteName": "NPR",
  "language": "en",
  "description": "Efforts to establish rules for AI-powered killer robots and drones have run aground.",
  "leadImage": "https://npr.brightspotcdn.com/.../gettyimages-2273123489.jpg",
  "text": "Efforts to set firm rules for AI-powered killer robots ...",
  "wordCount": 479,
  "readingMinutes": 2,
  "keywords": [],
  "section": null,
  "scrapedAt": "2026-11-21T09:33:19.362Z"
}
```

| Field | Meaning |
|---|---|
| `id` | Canonical URL of the article, safe for deduplication between runs |
| `url` | The address that was fetched |
| `title`, `author`, `siteName` | Headline, byline and publisher name |
| `publishedAt`, `modifiedAt` | ISO 8601 timestamps, when the page publishes them |
| `language` | Language code from the page, such as `en` |
| `leadImage` | Main image URL |
| `text` | Clean body text, paragraphs separated by blank lines |
| `wordCount`, `readingMinutes` | Length of `text` and a reading time estimate |
| `keywords`, `section` | Tags and section when the page publishes them |

### Pricing

Pay per event: a small fee when a run starts, then a fixed price per result returned. You only pay for records that pass your filters. Set `maxResults` to cap any run.

### Limitations

- Pages that show text only after JavaScript runs (some single page apps) may return little or no text.
- Paywalled articles return the part of the text the site serves to any visitor.
- Fields such as author or section come back empty when the page does not publish them.

### FAQ

**How fast is it?** The default run reads 30 articles from three feeds in about 10 seconds.

**Does it work on any site?** It works on most news and blog pages. A site that sends back a challenge page or needs a login is skipped.

**Is this legal?** The Actor reads pages the site publishes for any visitor without a login. You are responsible for how you use the data and for the publisher's terms.

**Something is missing or broken?** Open an issue in the Issues tab; response time is usually under a day.

# Actor input Schema

## `urls` (type: `array`):

Direct links to news articles or blog posts. Each URL returns one record.

## `feedUrls` (type: `array`):

Feeds or XML sitemaps. The Actor reads the newest article links from each one and extracts them.

## `maxArticlesPerFeed` (type: `integer`):

How many of the newest links to take from each feed or sitemap.

## `minWords` (type: `integer`):

Skip pages with less article text than this (video pages, live blogs, link hubs). Skipped pages are not billed.

## `includeKeywords` (type: `array`):

Keep only articles whose title, description or text contains at least one of these words. Leave empty to keep everything.

## `maxResults` (type: `integer`):

Hard stop for the run. You are billed per result, so this caps the cost.

## `proxyConfiguration` (type: `object`):

Apify proxy is recommended for larger runs.

## Actor input object example

```json
{
  "urls": [],
  "feedUrls": [
    "https://feeds.bbci.co.uk/news/rss.xml",
    "https://www.npr.org/rss/rss.php?id=1001",
    "https://www.theguardian.com/world/rss"
  ],
  "maxArticlesPerFeed": 10,
  "minWords": 100,
  "includeKeywords": [],
  "maxResults": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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 = {
    "feedUrls": [
        "https://feeds.bbci.co.uk/news/rss.xml",
        "https://www.npr.org/rss/rss.php?id=1001",
        "https://www.theguardian.com/world/rss"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("talcoe/article-text-extractor").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 = {
    "feedUrls": [
        "https://feeds.bbci.co.uk/news/rss.xml",
        "https://www.npr.org/rss/rss.php?id=1001",
        "https://www.theguardian.com/world/rss",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("talcoe/article-text-extractor").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 '{
  "feedUrls": [
    "https://feeds.bbci.co.uk/news/rss.xml",
    "https://www.npr.org/rss/rss.php?id=1001",
    "https://www.theguardian.com/world/rss"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call talcoe/article-text-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,talcoe/article-text-extractor"
        }
    }
}
```

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/QgfXyb1mnIHwYGo3r/builds/vP5VUvqssewDwHE3i/openapi.json
