# Article Extractor – News & Blog Text, Author, Date (`datarelay/article-extractor`) Actor

Extract articles from any news site or blog URL: headline, authors, publish date, publisher, section, tags, image and the clean article text (plain and Markdown), word count and reading time. Bulk lists, no browser. Pay per article.

- **URL**: https://apify.com/datarelay/article-extractor.md
- **Developed by:** [DataRelay](https://apify.com/datarelay) (community)
- **Categories:** News, AI, Developer tools
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.44 / 1,000 articles

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## Article Extractor – News & Blog Text, Author, Date

Turn a list of article links into **clean, structured articles**: headline, authors, publish and update dates,
publisher, section, tags, main image, the article **text** (plain) and **Markdown**, word count and reading time – from
any news site, magazine or blog, in one schema.

- **Metadata** from the page's schema.org data (`NewsArticle`, `BlogPosting`…), Open Graph and meta tags.
- **Text of the article only**: the `<article>` element (else `<main>`), without menus, related stories, footers or
  scripts.
- **Bulk**: up to 10,000 URLs per run, plain HTTP, no browser – fast and cheap. Feed it links from Google News, RSS or
  a sitemap.
- **Monitoring**: with a sync key, articles delivered before are skipped (and free).
- `paywalled: true` marks articles their publisher declares not free to read – the text is what the page shows publicly.

### Input

```json
{
    "articleUrls": [{ "url": "https://blog.python.org/2026/11/python-3160-alpha-2-is-now-available" }],
    "includeMarkdown": true
}
```

| Field                | Default          | Meaning                                                                              |
| -------------------- | ---------------- | ------------------------------------------------------------------------------------ |
| `articleUrls`        | –                | Article URLs (strings or `{ "url": "…" }` objects), up to 10,000 per run.            |
| `includeMarkdown`    | `true`           | Include the article formatted as Markdown alongside plain text.                      |
| `minWords`           | `50`             | Minimum words required (`0` = accept any non-empty article); shorter pages are free. |
| `maxResults`         | `10000`          | Stop the run after this many delivered articles (`0` = no limit).                    |
| `onlyNew`            | `false`          | Deliver only articles not previously delivered under `syncKey`.                      |
| `syncKey`            | –                | Memory name of seen articles (letters, digits, dashes, max 40); turns on monitoring. |
| `syncReset`          | `false`          | Forget articles previously saved under `syncKey` before this run.                    |
| `maxRunSecs`         | `0`              | Stop starting new requests after this many seconds (`0` = platform timeout).         |
| `proxyConfiguration` | Apify datacenter | Proxy settings. Refused pages are retried on another IP.                             |

### Output

```json
{
    "schemaVersion": 1,
    "status": "ok",
    "error": null,
    "scrapedAt": "2026-11-16T09:00:00.000Z",
    "searchInput": "https://www.bbc.com/news/articles/cw62p42p288do",
    "key": "https://www.bbc.com/news/articles/cw62p42p288do",
    "change": null,
    "url": "https://www.bbc.com/news/articles/cw62p42p288do",
    "finalUrl": "https://www.bbc.com/news/articles/cw62p42p288do",
    "canonicalUrl": "https://www.bbc.com/news/articles/cw62p42p288do",
    "language": "en-GB",
    "title": "Investors sue chip giant Intel after 29% stock plunge",
    "description": "Shareholders claim the chipmaker concealed foundry business losses.",
    "authors": ["…"],
    "publishedAt": "2026-11-16T03:04:01.301Z",
    "modifiedAt": "2026-11-16T04:10:00.000Z",
    "publisher": "BBC News",
    "section": "Business",
    "keywords": ["Intel", "Semiconductors"],
    "imageUrl": "https://ichef.bbci.co.uk/…",
    "type": "ReportageNewsArticle",
    "paywalled": false,
    "wordCount": 379,
    "readingMinutes": 2,
    "text": "Shareholders have filed a proposed class action …",
    "markdown": "# Investors sue chip giant Intel …"
}
```

Free rows: `status: no_data` (no readable article text or fewer than `minWords` words), `not_found` (HTTP 404/410 or
non-HTML), `blocked` or `error`.

### Pricing (pay per event)

| Event       | FREE    | BRONZE   | SILVER   | GOLD     |
| ----------- | ------- | -------- | -------- | -------- |
| `run-start` | $0.002  | $0.002   | $0.0015  | $0.001   |
| `article`   | $0.0008 | $0.00068 | $0.00056 | $0.00044 |

- 1,000 articles: **$0.802** on FREE – **$0.80 per 1,000 articles** ($0.68 Bronze, $0.56 Silver, $0.44 Gold), plus
  `run-start` ($0.002 FREE) charged once per run only when at least one paid article is delivered.
- Missing pages, pages without article text, blocked pages and articles already delivered under `syncKey` are free.
- Apify's standard `apify-actor-start` event ($0.00005) applies to every run.

### Notes

- No JavaScript is run: sites that load their articles in the browser give `no_data`. Bot checks are not bypassed.
- Paywalled text is not unlocked: only what the page shows publicly.
- Articles are copyrighted by their publishers, and author names are personal data: use the output under the
  publishers' terms and GDPR (e.g. for analysis, not republication).

### HTTP and MCP access

This Actor also declares a single-tenant server interface, using the same input, source engine and result prices as batch
runs. For large jobs, use batch.

- **Apify MCP:** configure `https://mcp.apify.com/?tools=datarelay/article-extractor` with your Apify bearer token. This
  starts ordinary Actor runs.
- **DataRelay MCP:** copy this Actor's server URL from Apify Console and append `/mcp`; authenticate with the same bearer
  token.
- **HTTP:** POST JSON input to `<SERVER_URL>/v1/run`. `<SERVER_URL>/openapi.json` lists the domain shortcuts.

Each server run belongs to your account. Default idle timeout: 60 seconds. You pay platform usage, including
startup/idle time, plus existing event fees. Discovery and health checks produce no data events, but can start a billed
run. A warm run charges its start event at most once on its first paid result.

Responses include a preview (first 100 rows / 1 MB), `resultCount`, `previewLimited`, `interrupted`, and links to this
request's complete Dataset slice and summary. Use batch for work exceeding the 120-second soft deadline. Check
`outcome`, summaries and result statuses; source limitations remain unchanged. Use the stable Actor-level server URL for
clients. The server becomes available when this build is deployed and its server settings are enabled.

# Actor input Schema

## `articleUrls` (type: `array`):

Links to articles, blog posts or news stories (up to 10,000 per run).

## `includeMarkdown` (type: `boolean`):

Also deliver the article as Markdown (headings, links, lists, images). The plain text is always included.

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

Pages with less text are not articles: they give a free row.

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

Stop the run after this many articles (0 = no limit). Your spending limit is respected too.

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

Deliver (and charge) only articles not delivered under the sync key before. Schedule the run.

## `syncKey` (type: `string`):

Name of the memory of delivered articles (letters, digits, dashes; at most 40). Setting it turns on monitoring.

## `syncReset` (type: `boolean`):

Forget the articles delivered under the sync key before this run.

## `maxRunSecs` (type: `integer`):

Stop starting new requests after this many seconds (0 = until the platform timeout).

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

Apify datacenter proxy by default; a refused page is retried on another IP.

## Actor input object example

```json
{
  "articleUrls": [
    {
      "url": "https://blog.python.org/2026/11/python-3160-alpha-2-is-now-available"
    }
  ],
  "includeMarkdown": true,
  "minWords": 50,
  "maxResults": 10000,
  "onlyNew": false,
  "syncReset": false,
  "maxRunSecs": 0,
  "proxyConfiguration": {
    "useApifyProxy": 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 = {
    "articleUrls": [
        {
            "url": "https://blog.python.org/2026/11/python-3160-alpha-2-is-now-available"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datarelay/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 = { "articleUrls": [{ "url": "https://blog.python.org/2026/11/python-3160-alpha-2-is-now-available" }] }

# Run the Actor and wait for it to finish
run = client.actor("datarelay/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 '{
  "articleUrls": [
    {
      "url": "https://blog.python.org/2026/11/python-3160-alpha-2-is-now-available"
    }
  ]
}' |
apify call datarelay/article-extractor --silent --output-dataset

```

## MCP server setup

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