# Article & News Extractor - Clean Text, Author, Date (`pshivam/article-extractor-scraper`) Actor

Turn any news article, blog post or web page into clean text: title, author, publish date, site, language, description, image, tags, plain text and optional Markdown, with word count and reading time. Paste URLs in bulk. No selectors needed. Export to Excel, CSV or API.

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

## Pricing

from $1.40 / 1,000 articles

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

## Article & News Extractor - Clean Text, Author, Date

**Turn any news article, blog post or web page into clean data: title, author, publish date, site name, language, main image, tags and the article text without menus, ads or comments.** Paste links in bulk, no selectors or site rules to write. Optional Markdown output. Export to Excel, CSV, JSON or the API.

**Actively maintained.** Last update: 2026-11-19. Every release passes 90+ automated tests on real saved news pages (The Guardian, BBC, NPR, The Verge and blogs).

### What can you use it for?

- **Monitor news and PR coverage.** Paste the links of articles that mention your brand and get their text, author, date and site in a table.
- **Build a text dataset.** Collect clean article text from thousands of links for research, topic analysis, summaries or search indexes.
- **Feed your tools.** Markdown or plain text of any page for notes, knowledge bases, newsletters and no-code automations.
- **Research and journalism.** Save the text, author and date of the sources of a story before pages change.
- **Content audits.** Word count, reading time, language and publish date of every article on a list of links.
- **Link enrichment.** Add title, description, image and site name to a column of links in a spreadsheet.

### What data can you get?

Give a list of page links. Every row is one article. The Actor finds the main text by itself: the same input works for any site.

| You give | You get |
|---|---|
| `urls`: article or page links | One row per page that holds an article |
| `includeMarkdown` | The article as Markdown as well as plain text |

#### Fields

A field that the page does not give is `null`.

##### The page

| Field | What it is |
|---|---|
| `url` | The address you gave. |
| `finalUrl` | The address the page was read from after redirects. |
| `canonicalUrl` | The address the page says is its own (link rel=canonical). Empty when it names none. |
| `httpStatus` | The HTTP status of the page: 200. |
| `fetchedAt` | When the page was read (UTC). |

##### The article

| Field | What it is |
|---|---|
| `title` | The article title. |
| `author` | The author, when the page names one. |
| `publishedDate` | The publish date as YYYY-MM-DD, when the page says it. |
| `siteName` | The name of the website, for example The Guardian. |
| `language` | The language the page declares, for example en or pt-br. |
| `description` | The short description the page gives for search results and sharing. |
| `imageUrl` | The main picture of the article (the sharing image). |
| `categories` | The sections or categories the page names. |
| `tags` | The tags or keywords the page names. |

##### The text

| Field | What it is |
|---|---|
| `text` | The article as plain text: paragraphs separated by blank lines, without menus, ads or comments. |
| `markdown` | The article as Markdown. Only when Also return Markdown is on. |
| `wordCount` | How many words the text has. |
| `readingMinutes` | The reading time in minutes at 230 words a minute. |

#### Example results

```json
{"url": "https://www.theguardian.com/football/2026/nov/18/manchester-united-infamous-1974...", "finalUrl": "https://www.theguardian.com/football/2026/nov/18/manchester-united-infamous-1974...", "canonicalUrl": "https://www.theguardian.com/football/2026/nov/18/manchester-united-infamous-1974...", "httpStatus": 200, "title": "Manchester United’s infamous 1974 relegation is a warning from history", "author": "Sam Cunningham", "publishedDate": "2026-11-18", "siteName": "The Guardian", "language": "en", "description": "It may have been a different era, but the 1970s contain salutary lessons for a c...", "imageUrl": "https://i.guim.co.uk/img/media/e972d5919ff64a850d1ffe239a15b17f2d35a20f/247_0_34...", "categories": ["Football"], "tags": ["Manchester United", "Football", "Sport"], "text": "In many ways, there are striking parallels between the Manchester United relegated in 1974 and the Manchester United sitting in the relegation zone at this stag ...", "wordCount": 937, "readingMinutes": 5, "fetchedAt": "2026-11-19T10:00:06Z"}
```

```json
{"url": "https://www.theverge.com/2024/10/1/24259369/microsoft-hololens-2-discontinuation...", "finalUrl": "https://www.theverge.com/2024/10/1/24259369/microsoft-hololens-2-discontinuation...", "canonicalUrl": "https://www.theverge.com/2024/10/1/24259369/microsoft-hololens-2-discontinuation...", "httpStatus": 200, "title": "Microsoft is discontinuing its HoloLens headsets", "author": "Tom Warren", "publishedDate": "2024-10-01", "siteName": "The Verge", "language": "en-us", "description": "Microsoft will still continue its HoloLens work with the US Army.", "imageUrl": "https://platform.theverge.com/wp-content/uploads/sites/2/chorus/uploads/chorus_a...", "categories": ["Microsoft"], "tags": ["theverge", "pagetype:story", "augmented-reality"], "text": "Microsoft has ended production of its HoloLens 2 headset, with no sign of a replacement ahead. In an email sent to The Verge, Microsoft cloud communications gen ...", "wordCount": 518, "readingMinutes": 3, "fetchedAt": "2026-11-19T10:00:06Z"}
```

### Input

| Input | What it does |
|---|---|
| `urls` | The page links to read, one per line |
| `includeMarkdown` | Also return the article as Markdown |
| `respectRobotsTxt` | Skip pages a site's robots.txt does not allow (on by default) |
| `onlyNew` | Skip links that earlier runs of the same input returned |
| `maxItems` | Stop after this many articles |
| `maxConcurrency`, `requestTimeoutSeconds`, `secondsBetweenRequestsToOneSite`, `proxyConfiguration` | Speed, patience and how the Actor deals with refusals |

### How much does it cost?

You pay per article returned. There is no start fee. Pages that cannot be read, are not web pages, hold no article text or are not allowed by robots.txt are not returned and not charged.

| Plan | Price per 1,000 articles |
|---|---|
| Free | $2.00 |
| Bronze | $1.80 |
| Silver | $1.60 |
| Gold | $1.40 |

- 5,000 articles cost about $10 on the Free plan.
- Use `maxItems` to cap the cost of a run, and `onlyNew` to pay only for new links on scheduled runs.

### Use it via API, on a schedule, or with your tools

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("pshivam/article-extractor-scraper").call(run_input={
    "urls": ["https://www.theguardian.com/technology", "https://www.bbc.com/news/technology"],
    "includeMarkdown": True,
})
for article in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(article["title"], article["author"], article["publishedDate"], article["wordCount"])
```

#### Use it in Clay, n8n, Make or Zapier

Use the Actor ID `pshivam/article-extractor-scraper` and an input like this:

```json
{"urls": ["https://example.com/news/article-1", "https://example.org/blog/post-2"], "includeMarkdown": false, "onlyNew": true}
```

### Good to know

- **It reads the links you give.** It does not search the web, follow links or crawl a site. For the links of a site's articles, use a list page, a sitemap or a search tool, then give the links to this Actor.
- **One article per page.** A page with a list of articles (a home page, a category) gives its visible text as one record when it has enough words. Give the links of the articles to get one record each.
- **Pages without an article are free.** A page that has less than 40 words of main text, or that is not HTML (a PDF, an image), is not returned and not charged. The run's status message lists the first few and why.
- **robots.txt is obeyed.** Each site's robots.txt is read once and the pages it does not allow are skipped, so you do not pay for them. You can turn this off for pages you own.
- **Polite to every site.** A single site never gets more than 2 requests at a time, with a pause between them.
- **Pages that need JavaScript or a login.** The Actor reads the page as the site sends it, without running scripts or logging in. Pages that build their text with JavaScript, sit behind a login or a paywall give little or no text.
- **Dates, authors and tags** come from the page's own markup. When a page gives none, the field is empty.
- **Speed.** A test run of 3 articles took half a second. A page of a news site takes about a quarter of a second; a very large page such as a long Wikipedia article takes a few seconds.
- **Independent tool.** The Actor reads public pages and returns their text. Copyright stays with the publishers: check the terms of the sites and the law before you republish what you collect.

### FAQ

#### How do I extract the text of a news article?

Put the article link in `urls` and run. The row has the title, author, date and the clean text.

#### Do I need to write selectors or rules per site?

No. The Actor finds the main text on its own, so one input works for different news sites and blogs.

#### Can I get Markdown?

Yes. Turn on `includeMarkdown` and each row also has the article as Markdown.

#### Does it work on any website?

It works on pages that send their text in the HTML, which is nearly every news site and blog. Pages that build their text with JavaScript or hide it behind a login or a paywall give little or no text.

#### What happens to pages that fail?

They are not returned and not charged. The run's status message lists the first few links and the reason: not found, refused, not a web page, no article text, or not allowed by robots.txt.

#### Is it legal to scrape articles?

The Actor reads public pages and respects robots.txt by default. You are responsible for how you use the text: copyright stays with the publishers.

# Actor input Schema

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

The article or page links to read, one per line. Any news site, blog or web page works: the Actor finds the main text by itself. Leave empty to read three example pages.

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

Add the article as Markdown (headings, lists, links and tables kept) next to the plain text. Useful for notes, search indexes and text tools. Takes a little longer.

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

Read each site's robots.txt once and skip the pages it does not allow for automated reading. Leave this on unless the pages are yours or you have the site's permission.

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

Skip links that earlier runs of this same input already returned, so you get and pay for new ones only. The first run works as usual and remembers what it returned, in your key-value store 'article-extractor-scraper-only-new'.

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

Stop after this many articles. You are charged per article returned.

## `maxConcurrency` (type: `integer`):

How many pages are read at the same time. A single site never gets more than 2 requests at a time.

## `requestTimeoutSeconds` (type: `number`):

Give up on a page that has not answered after this many seconds (it is tried up to 3 times).

## `secondsBetweenRequestsToOneSite` (type: `number`):

The pause between two requests to the same website. Different websites are read side by side.

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

The Actor reads with its own address. Turn the proxy on to ask a page again through Apify Proxy when it refuses the address (HTTP 403 or 429).

## Actor input object example

```json
{
  "urls": [
    "https://www.python.org/downloads/release/python-3130/",
    "https://paulgraham.com/greatwork.html"
  ],
  "includeMarkdown": false,
  "respectRobotsTxt": true,
  "onlyNew": false,
  "maxItems": 50,
  "maxConcurrency": 6,
  "requestTimeoutSeconds": 30,
  "secondsBetweenRequestsToOneSite": 0.5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Articles as a table.

## `texts` (type: `string`):

Texts as a table.

## `runStats` (type: `string`):

Requests made, time spent and number of records for this run (RUN_STATS record).

# 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://www.python.org/downloads/release/python-3130/",
        "https://paulgraham.com/greatwork.html"
    ],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("pshivam/article-extractor-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 = {
    "urls": [
        "https://www.python.org/downloads/release/python-3130/",
        "https://paulgraham.com/greatwork.html",
    ],
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("pshivam/article-extractor-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 '{
  "urls": [
    "https://www.python.org/downloads/release/python-3130/",
    "https://paulgraham.com/greatwork.html"
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call pshivam/article-extractor-scraper --silent --output-dataset

```

## MCP server setup

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