# Article Extractor (`properscraper/article-extractor`) Actor

Extract clean articles from news sites and blogs in bulk: headline, author, publication date, section, tags, lead image and the full text as Markdown and plain text, without menus, ads or footers. Fast, with no browser, and it obeys robots.txt.

- **URL**: https://apify.com/properscraper/article-extractor.md
- **Developed by:** [jake mcclure](https://apify.com/properscraper) (community)
- **Categories:** News, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 article extracteds

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

## Article Extractor

Extract clean articles from news sites and blogs in bulk. For each address you get the headline, author, publication and update dates, site name, section, tags, lead image and the full article as Markdown and as plain text, with menus, adverts, sidebars and footers removed.

No browser is used, so hundreds of articles take a minute or two and cost very little.

Use it to:

- build a news or blog dataset for analysis, search or AI training
- feed articles to an AI assistant or a RAG pipeline as clean Markdown
- monitor what competitors or the press publish (pair it with an RSS or sitemap tool to find new article addresses)
- archive articles with who wrote them and when
- summarise or translate articles without the page clutter

### Input

| Field | What it does |
|---|---|
| **Article addresses** | One per line: the web address of each article or blog post. |
| **Keep images in the Markdown** | Include the article's images as Markdown image links. Off by default. |
| **Obey robots.txt** | On by default: an article its website asks crawlers not to read is skipped and not charged for. |

```json
{
    "urls": ["https://blog.apify.com/what-is-web-scraping/", "https://example-news.com/2026/11/council-approves-bridge"]
}
```

### Output

One record per article:

```json
{
    "input": "https://example-news.com/2026/11/council-approves-bridge",
    "url": "https://example-news.com/2026/11/council-approves-bridge",
    "canonicalUrl": "https://example-news.com/2026/11/council-approves-bridge",
    "title": "Council approves new bridge after two-year debate",
    "author": "Ana Example",
    "authors": ["Ana Example", "Ben Sample"],
    "publishedAt": "2026-11-17T08:30:00.000Z",
    "modifiedAt": "2026-11-17T10:05:00.000Z",
    "siteName": "The Daily Example",
    "section": "Local",
    "tags": ["bridge", "planning", "Transport"],
    "description": "The vote passed by nine to two.",
    "language": "en-gb",
    "imageUrl": "https://example-news.com/img/bridge.jpg",
    "paywalled": false,
    "wordCount": 742,
    "readingTimeMinutes": 3,
    "markdown": "# Council approves new bridge after two-year debate\n\nThe council voted on Tuesday…\n\n## What happens next\n\n- Work starts in **March**",
    "text": "Council approves new bridge after two-year debate\n\nThe council voted on Tuesday…",
    "scrapedAt": "2026-11-18T12:00:00.000Z"
}
```

- The details come from what the page publishes for search engines and social networks (its structured data and meta tags), which is the most reliable source for authors and dates. A field the page does not declare is `null`.
- `markdown` keeps headings, lists, links, quotes and tables. `text` is the same content with no markup.
- `paywalled` is `true` only when the page itself says the article is not free to read. For such articles the text is whatever the site shows without a subscription.
- `url` is the address the article was read from, after redirects; `canonicalUrl` is the address the site names as the article's permanent one.

A `SUMMARY` record in the run's key-value store lists any articles that could not be read and why.

### Pricing

Pay per result. You are charged once for each article saved, at the per-result price shown on this page, whatever its length.

Nothing is charged for a page that could not be read, that robots.txt does not allow, or that has no article text on it (a login page, an error page). Lines that are not web addresses and repeated addresses cost nothing. The run stops as soon as it reaches the maximum charge you set for it.

### Limits

- Pages are read without running their JavaScript. Most news sites and blogs send the article in the page itself; a site that loads it afterwards with scripts yields little or no text.
- Articles behind a login or a hard paywall are not read; the Actor does not sign in or work around paywalls.
- The article is found from the page's own structure. On unusual layouts a stray line (a "back to all posts" link, a byline) may be kept, or a pull quote dropped.
- Some sites refuse automated requests. The Actor identifies itself honestly and does not disguise itself or work around a refusal.
- Requests to the same site are spaced half a second apart. At most 5 MB of each page is read.

### Is this allowed, and how may I use the text?

The Actor reads each public page once, identifies itself in its User-Agent, obeys robots.txt by default and paces its requests. Articles are protected by copyright: quoting, analysing and indexing them is one thing, republishing them or training on them is another. Check each publisher's terms for your use.

# Actor input Schema

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

One per line: the web address of each article or blog post.

## `includeImages` (type: `boolean`):

Include the article's images as Markdown image links with their descriptions.

## `respectRobotsTxt` (type: `boolean`):

Skip an article its website's robots.txt asks crawlers not to read. Skipped articles are not charged for.

## Actor input object example

```json
{
  "urls": [
    "https://blog.apify.com/what-is-web-scraping/"
  ],
  "includeImages": false,
  "respectRobotsTxt": true
}
```

# Actor output Schema

## `articles` (type: `string`):

One record per article extracted.

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

Totals for the run and, for each batch of articles, how many results were saved and any 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 = {
    "urls": [
        "https://blog.apify.com/what-is-web-scraping/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("properscraper/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 = { "urls": ["https://blog.apify.com/what-is-web-scraping/"] }

# Run the Actor and wait for it to finish
run = client.actor("properscraper/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 '{
  "urls": [
    "https://blog.apify.com/what-is-web-scraping/"
  ]
}' |
apify call properscraper/article-extractor --silent --output-dataset

```

## MCP server setup

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