# News Article Extractor: Full Text from Any News Site (`steadyscrape/news-article-extractor`) Actor

News article extractor: full text (plain and Markdown), title, authors, dates, lead image, tags and paywall flag from any news site. Give article links, a section page, an RSS/Atom feed or a Google News sitemap. Headlines-only mode, date filter, only new. Export to JSON, CSV or Excel, or via API.

- **URL**: https://apify.com/steadyscrape/news-article-extractor.md
- **Developed by:** [Steady Scrape](https://apify.com/steadyscrape) (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 $1.00 / 1,000 article with its texts

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 Article Extractor — full text of news articles from any site

**News Article Extractor** turns news articles into clean data: give it article links, a news site's home or section
page, an RSS or Atom feed, or a publisher's Google News sitemap, and it delivers one row per article with the title,
authors, published and updated dates, description, the **full article text in plain text and Markdown**, the lead
image, language, section, tags, word count and a paywall flag. It reads any news site that serves plain pages, honours
each site's robots.txt, and charges only for articles it delivered. Export to JSON, CSV or Excel, or read it via API.

### What the news article extractor is for

- **Media monitoring**: follow a set of publishers or sections every day and get only the articles published since the
  last run (`onlyNewArticles`), with their full text, ready to search, classify or alert on.
- **RAG and LLM pipelines**: the Markdown keeps headings, lists and links, without menus, ads, share buttons or
  related-article boxes, so an article goes straight into a vector store or a prompt.
- **News datasets and research**: the last 7 days of a section, with authors, dates, tags and word counts, for
  analysis of coverage, sentiment or topics.
- **Headline feeds**: with `headlinesOnly`, just what a feed or news sitemap lists (link, title, date, description,
  authors, image), without opening each article — a cheap way to track what a site publishes.
- **Content checks**: who wrote a page, when it was published and updated, its canonical URL, and whether the site marks
  it as paywalled.

### How the article extractor finds articles

Each line of **Articles, news sites, feeds or news sitemaps** is read according to what it is:

| You give | What is read |
|---|---|
| An article link | That article. |
| A home or section page (`https://techcrunch.com/category/startups/`) | The page's own RSS or Atom feed; if it names none, the Google News sitemap the site's robots.txt lists under that path; if there is none, the article links on the page itself. |
| An RSS or Atom feed (`https://techcrunch.com/feed/`) | The articles it lists, newest first. |
| A sitemap or Google News sitemap (`https://theconversation.com/us/sitemap_news.xml`) | The articles it lists, newest first; sitemap indexes are followed. Gzipped sitemaps are fine. |

The article text is taken with Mozilla's Readability (the engine of Firefox's Reader View), and the metadata from what
the page declares: JSON-LD `NewsArticle`, Open Graph and `article:` meta tags, microdata, `<time>` and the canonical
link. Dates come out as UTC ISO 8601, languages as BCP 47 tags (`en`, `pt-BR`).

### Input example

```json
{
    "startUrls": [
        "https://theconversation.com/us/sitemap_news.xml",
        "https://techcrunch.com/category/startups/",
        "https://www.aljazeera.com/news/"
    ],
    "maxArticlesPerSource": 20,
    "publishedWithinDays": 2,
    "onlyNewArticles": true,
    "excludeUrlPatterns": ["/liveblog/", "/video/"]
}
```

- `maxArticlesPerSource` (default 20): the most charged rows one feed, sitemap or page gives.
- `headlinesOnly`: deliver what the listings say, without opening the articles (charged as `headline`).
- `publishedWithinDays`: only articles published within that many whole UTC days. Listing dates leave older articles out
  before their page is read.
- `onlyNewArticles`: remember what each source delivered, in your own key-value store
  `steadyscrape-news-article-extractor-state`, and skip it on later runs. Schedule the Actor to follow a site.
- `includeUrlPatterns` / `excludeUrlPatterns`: plain text matches links containing it, `*` is a wildcard over the whole
  link, `re:` starts a regular expression.

### Output example

```json
{
    "url": "https://theconversation.com/ai-helps-uncover-critical-flaw-in-ubiquitous-internet-software-296930",
    "status": "article",
    "reason": null,
    "title": "AI helps uncover critical flaw in ubiquitous internet software",
    "authors": ["Doug Jacobson"],
    "publishedAt": "2026-11-18T21:43:47.000Z",
    "modifiedAt": "2026-11-18T21:43:47.000Z",
    "description": "AI is speeding up the pace of uncovering software flaws hackers could exploit, like the one just found in the widely used internet software Java.",
    "text": "If you checked your bank balance, booked a flight or ordered groceries online today, there is a good chance your request was handled by a computer program written in Java…",
    "markdown": "If you checked your bank balance, booked a flight or ordered groceries online today, there is a good chance your request was handled by a computer program written in Java…",
    "wordCount": 827,
    "leadImageUrl": "https://images.theconversation.com/files/772850/original/file-20261118-64-7qldmn.jpg?ixlib=rb-4.1.1&q=45&auto=format&w=1356&h=668&fit=crop",
    "language": "en",
    "section": null,
    "tags": ["Artificial intelligence (AI)", "Cybersecurity", "Internet", "Java", "Software", "Technology"],
    "siteName": "The Conversation",
    "canonicalUrl": "https://theconversation.com/ai-helps-uncover-critical-flaw-in-ubiquitous-internet-software-296930",
    "isPaywalled": null,
    "foundVia": "newsSitemap",
    "foundIn": "https://theconversation.com/us/sitemap_news.xml",
    "input": "https://theconversation.com/us/sitemap_news.xml",
    "extractedAt": "2026-11-19T12:00:00.000Z",
    "unreadFields": []
}
```

### Output fields

| Field | What it holds |
|---|---|
| `url` | The article's link (after redirects). |
| `status` | `article` (with its text), `headline` (without text), or a free row: `notArticle`, `noArticles`, `notFound`, `robotsDisallowed`, `blocked`, `unreachable`, `invalid`. |
| `reason` | Why a row is free, or why a headline came without its text. `null` on a plain article. |
| `title`, `description` | As the page (or, for a headline, the listing) gives them. |
| `authors` | People named as authors, as a list. |
| `publishedAt`, `modifiedAt` | UTC ISO 8601. `null` when the page and its listing give none. |
| `text` | The article body as plain text, paragraphs separated by a blank line. |
| `markdown` | The article body as Markdown: headings, lists, links (absolute), quotes, tables. |
| `wordCount` | Words in the body; Chinese, Japanese and Thai are counted by word, not by space. |
| `leadImageUrl` | The article's main image. |
| `language` | BCP 47 tag (`en`, `de`, `pt-BR`). |
| `section`, `tags` | The section and keywords the page declares. |
| `siteName`, `canonicalUrl` | As the page declares them. |
| `isPaywalled` | `true` when the page marks the article as not free to read (JSON-LD `isAccessibleForFree: false`, a locked content tier); `false` when it marks it free; `null` when it says nothing. |
| `foundVia`, `foundIn` | How the article was found (`startUrl`, `feed`, `newsSitemap`, `sitemap`, `pageLinks`) and the feed, sitemap or page that listed it. |
| `input` | The start line that led to the row. |
| `extractedAt` | When the row was made. |
| `unreadFields` | Fields the page gives in a form that could not be read (a date that is no date), so a `null` there is not "the site has none". |

### Pricing

Pay per event, no start fee:

- **`article`** — an article delivered with its text: **US$0.001** (US$1 per 1,000 articles).
- **`headline`** — an article delivered without its text (headlines-only mode, or a page the site marks as paywalled):
  **US$0.0002**.
- Every other row (not an article, robots.txt disallows it, a wall, a dead link, an invalid line) is **free**.

The run stops when your spending limit is reached, before reading a page it could not charge for.

### Free rows: walls, paywalls and pages that are no article

- **robots.txt** is read for every site and honoured for the Actor's token `SteadyScrapeArticles` (else the `*` group):
  a disallowed article is a free `robotsDisallowed` row and is never requested. While a site's robots.txt answers a
  server error, nothing of that site is read (RFC 9309).
- **Walls**: a page refused (401, 402, 403, 429, 5xx) is asked once more from another IP; a bot check ("verify you are
  human") is never solved nor retried. Either way it is a free `blocked` row. Some large publishers wall every automated
  reader (in our tests AP, Reuters, the New York Times, the Wall Street Journal, Bloomberg, Forbes, the Economist and
  the FT answered with a wall): expect blocked rows from them, never a charge.
- **Paywalls**: an article the site marks as not free to read is delivered as a `headline` (title, authors, dates,
  description, image) without its text, at the lower price. Text behind a paywall is never fetched by other means.
- A page that is no article (a video, a gallery, a PDF, a shop) is a free `notArticle` row; a section whose articles
  were all left out by your filters gives one free `noArticles` row saying why.

### Limits

- Plain HTTP, no browser: sites that build their pages only with JavaScript give little or no text. Most news sites
  print the article in the page. Some live blogs give a plain reader only their summary (Al Jazeera's gave
  70–90 words): leave them out with `excludeUrlPatterns` (`/liveblog/`, `/live/`) when you want full stories.
- Up to 1,000 start lines per run and 10,000 articles per source; a listing is read up to 5,000 entries and 10 sitemap
  files.
- Each site is read at most two pages a second, however many sources point to it.
- `onlyNewArticles` remembers the newest 100,000 articles per source.

### Is it legal?

It reads public pages the way a reader's browser opens them, only the ones you name or that the site lists in its own
feeds and sitemaps, and honours robots.txt. It does not log in, solve challenges or get past paywalls. Article text is
the publisher's copyrighted work: check that your use (analysis, monitoring, quotation, a licence) is allowed where you
are, and respect each site's terms. Personal data in articles (names of people) may fall under GDPR or similar laws.

News Article Extractor is an independent tool. It is not affiliated with, endorsed by or sponsored by The Conversation,
TechCrunch, Al Jazeera or any other publisher or site named here, nor by Google or Mozilla; their names only say which
pages it was tested on and which formats it reads.

# Actor input Schema

## `startUrls` (type: `array`):

One per line: an article link, which is read itself; a news site's home or section page (<code>https://techcrunch.com/category/startups/</code>), whose articles are taken from its own RSS or Atom feed, else from the Google News sitemap its robots.txt names under that path, else from the article links on the page; an RSS or Atom feed; or a sitemap (a Google News sitemap gives each article's title and date). Up to 1,000 per run.

## `maxArticlesPerSource` (type: `integer`):

A feed, sitemap or section page stops once it gave this many charged rows, newest first when the listing dates them. An article link given directly is one source.

## `headlinesOnly` (type: `boolean`):

Deliver what a feed or news sitemap lists (link, title, date, description, authors, image) without opening each article, charged as <code>headline</code> instead of <code>article</code>. A section page gives its feed’s or news sitemap’s headlines and never follows its links; an article link is still read, for its metadata only.

## `publishedWithinDays` (type: `integer`):

Keep only articles published within this many days before the run, in whole UTC days (1 keeps everything since midnight UTC yesterday). The listing's date leaves out older articles before their page is read; an article whose listing and page both give no date is left out and counted in the status message. Leave empty for every date.

## `onlyNewArticles` (type: `boolean`):

Remember every article delivered for each source (and these URL patterns) in your own key-value store <code>steadyscrape-news-article-extractor-state</code>, and on later runs deliver only articles not seen before. The first run delivers everything within the limits; schedule the next ones to follow a site.

## `includeUrlPatterns` (type: `array`):

Keep an article when its link matches any of these. Text keeps links containing it (<code>/politics/</code>); <code>*</code> is a wildcard over the whole link (<code>https://www.example.com/2026/*</code>); <code>re:</code> starts a regular expression (<code>re:/\d{4}/\d{2}/</code>). Case is ignored. Leave empty to keep every article.

## `excludeUrlPatterns` (type: `array`):

Leave an article out when its link matches any of these, written the same way (<code>/live/</code>, <code>/video/</code>, <code>/podcasts/</code>). A left-out article is never read nor charged.

## Actor input object example

```json
{
  "startUrls": [
    "https://theconversation.com/us/sitemap_news.xml"
  ],
  "maxArticlesPerSource": 5,
  "headlinesOnly": false,
  "onlyNewArticles": false
}
```

# Actor output Schema

## `rows` (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 = {
    "startUrls": [
        "https://theconversation.com/us/sitemap_news.xml"
    ],
    "maxArticlesPerSource": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("steadyscrape/news-article-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 = {
    "startUrls": ["https://theconversation.com/us/sitemap_news.xml"],
    "maxArticlesPerSource": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("steadyscrape/news-article-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 '{
  "startUrls": [
    "https://theconversation.com/us/sitemap_news.xml"
  ],
  "maxArticlesPerSource": 5
}' |
apify call steadyscrape/news-article-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,steadyscrape/news-article-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/yYksrfGuRxoZGPci7/builds/7mgwUEcIwn0kJ0Gr1/openapi.json
