# Article Extractor: Whole Site Archive, Date Range & Keywords (`pikoulas/article-extractor`) Actor

Every article a news site, blog or publication put out, from its sitemaps back to its first, in the dates you choose and naming your keywords: full text, title, authors, date, image and tags. Or its newest, with only new ones on a schedule. Paywalls respected. $0.50 per 1,000 articles.

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

## Pricing

from $0.50 / 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 Extractor: Whole Site Archive, Date Range & Keywords

Give it news sites, blogs or publications, and get their articles as clean data, in JSON, CSV or Excel:

- **A site's whole archive:** every article it lists in its sitemaps, back to its first, or those of a
  section (`/blog/`, `/politics/`), between the dates you give: a publication's March 2024, a competitor's
  blog since January, a newsroom's coverage of an election.
- **Only what names your keywords:** articles whose title or text names a company, a product or a topic,
  each with the keywords it names.
- **Each article in full:** its text without menus, ads or comments, as plain text or Markdown, with its
  title, authors, published and modified dates, site name, language, description, lead image, tags,
  canonical URL and word count.
- **The newest, on a schedule:** without the archive, a site's newest articles from its feeds, news
  sitemaps and links; with **Only new articles**, each run gives only what was published since the last.
- **Article URLs** read as they are, any number.

It costs **$0.50 per 1,000 articles** on Apify's paid plans and $1 on the free plan, plus $0.10 per 1,000
pages, feeds and sitemaps read to find them. A paywalled article, or a page that isn't one or can't be
read, costs nothing.

### What people use it for

- **Media monitoring and PR:** what the papers and trade press you follow wrote about you, your clients
  or your competitors, over any period.
- **Research and datasets:** a publication's articles over months or years, with authors and dates, for
  media analysis, NLP or a model's training and evaluation.
- **AI and RAG:** clean article text, dated and sourced, for a vector database.
- **Content teams and SEO:** everything a competitor's blog published, with tags and length.

### How to extract a site's articles

1. Click **Try for free**; Apify's free plan covers a first run.
2. Paste **Sites** (a home or section page), **Article URLs**, or both.
3. For an archive, turn on **Whole archive** and set **Published from** and **Published to**. Add
   **Keywords** or **URL contains** to narrow it.
4. Set **Max articles per site**, which also limits what the run can cost, and click **Start**.
5. To follow sites instead, leave the archive off, turn on **Only new articles** and add a **Schedule**.

TechCrunch's March 2024 articles naming OpenAI:

```json
{
  "sites": ["https://techcrunch.com/"],
  "archive": true,
  "publishedFrom": "2024-03-01",
  "publishedTo": "2024-03-31",
  "keywords": ["OpenAI"],
  "maxArticlesPerSite": 100
}
```

Two blogs' new articles each day, as Markdown:

```json
{
  "sites": ["https://github.blog/", "https://techcrunch.com/"],
  "maxArticlesPerSite": 20,
  "maxAgeDays": 7,
  "format": "markdown",
  "onlyNew": true,
  "memory": "tech-blogs"
}
```

### Output

```json
{
  "url": "https://github.blog/engineering/architecture-optimization/inside-githubs-new-git-storage-architecture/",
  "finalUrl": "https://github.blog/engineering/architecture-optimization/inside-githubs-new-git-storage-architecture/",
  "site": "https://github.blog/",
  "foundIn": "feed",
  "title": "Inside GitHub’s new Git storage architecture",
  "description": "GitHub's new Git storage architecture is built so thousands of agents can push to a single repository at once. Here's how it works.",
  "authors": ["Karthik Raman", "Brian Celenza"],
  "publishedAt": "2026-11-05T12:23:21-08:00",
  "modifiedAt": "2026-11-05T20:23:25+00:00",
  "siteName": "The GitHub Blog",
  "language": "en-US",
  "image": "https://github.blog/wp-content/uploads/2026/01/4ba0cd42388a255e04c78e5143548f22e577d68e0f15f68e6a3c76c18b927981-1920x1080-1.png",
  "tags": ["Architecture & optimization", "Engineering"],
  "canonicalUrl": "https://github.blog/engineering/architecture-optimization/inside-githubs-new-git-storage-architecture/",
  "access": "open",
  "wordCount": 3406,
  "text": "Inside GitHub’s new Git storage architecture\nGitHub’s new Git storage architecture is built so thousands of agents can push to a single repository at once. Here’s how it works.\nLast week at GitHub Universe, we announced …",
  "readAt": "2026-11-09T15:40:45Z"
}
```

`site` and `foundIn` (`feed`, `sitemap` or `page`) say where a site's article was found; an article
given has neither. With keywords, `keywords` lists those the article names. A paywalled article has `access: "closed"`, no `text`, and `errorType: "paywalled"`.
An article URL that can't be read has `errorType`: `status` (an error answer), `not-html`, `not-article`
(no article text on the page), `dns`, `tls`, `timeout`, `connection`, `redirects`, `robots`, `refused`,
`check-page`, `not-public` or `invalid`, and `error` says why. A site whose page can't be read gives
one such row.

### Use it as an API

One call runs it and returns the results as JSON (for runs under 5 minutes; longer ones start a run and
read its dataset). Apify's Python and JavaScript clients, and its Make, Zapier and n8n integrations, work
the same way.

```bash
curl -X POST "https://api.apify.com/v2/acts/pikoulas~article-extractor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"articles": ["https://github.blog/engineering/architecture-optimization/inside-githubs-new-git-storage-architecture/"]}'
```

AI agents can call it as a tool through Apify's MCP server: `https://mcp.apify.com?tools=pikoulas/article-extractor`.

### How much does it cost?

An article given with its text is $0.0005, so 1,000 cost $0.50 ($1 on Apify's free plan). Finding a site's
articles reads its page, the feeds the page declares and its sitemaps, at $0.0001 each: a site checked each
day costs about $0.0003 a day when nothing is new. An archive reads more sitemaps, a few dozen at most for a
date range, and an article read and left out for its date or keywords costs as a page read, so 100
articles naming a rare keyword may cost more in reads than in articles. With **Only new
articles**, an article read before isn't read or charged again. Set a spending limit on a run and it stops
there.

### Good to know

- **How a site's articles are found:** through the feeds its page declares (RSS, Atom, JSON Feed), the
  news sitemaps its `robots.txt` lists, and the page's links whose address reads like an article's. They
  come newest first where a date is known. A site with none of these gives the articles linked from the
  page you give, so a section page finds that section's.
- **How an archive is found:** through every sitemap its `robots.txt` lists (or `/sitemap.xml`), but those
  of tags, categories, authors, pages, products and media. Sitemaps last changed before **Published from**
  aren't read. A big index of numbered sitemaps without dates (TechCrunch has 2,000) is searched for the
  date range by sampling, not read through.
- **Dates:** an article's own date where its sitemap, feed or address gives one; otherwise the sitemap's
  last change, which can be later than its publication, so such a site's older articles take more reads
  to reach. Every article given is checked against the range by the date on its page.
- **Paywalls and registration walls are respected:** where the page marks an article as for subscribers
  or registered readers (schema.org's `isAccessibleForFree`, or Open Graph's locked or metered content
  tier), the row is free, with its title, authors and dates but no text: a preview isn't passed off as the
  article.
- **No email addresses** are given: any in an article's text are taken out.
- **Each site is read politely:** two requests a second at most, or the crawl delay its `robots.txt` asks
  for (up to 10 seconds), while many sites are read at once. A page its `robots.txt` refuses isn't read.
- **A site that refuses is left alone:** a 401, 402, 403, 429 or 451 answer, or a verification page, and
  that site's other pages aren't read in the run. It names itself in its User-Agent, `ArticleExtractorActor`,
  uses no proxy and doesn't try to get past a refusal, so a site that turns away automated visitors gives
  nothing.
- **It reads the HTML the server sends,** without running JavaScript: an article that loads its text only
  in the browser comes without it.
- **Only public addresses are reached,** redirects included.
- A run that has a timeout stops shortly before it and finishes as succeeded with what it has read.
- **Contact.** The Actor keeps nothing itself: results and its memory sit in the storage of whoever ran it.
  Questions or requests go to spyridwn.pd@gmail.com.

### FAQ

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

Give its URL in **Article URLs** and read `text`, with `title`, `authors` and `publishedAt` beside it.
Through the API, `run-sync-get-dataset-items` returns it in one call.

#### How do I get all the articles a site published in a month?

Give its home page in **Sites**, turn on **Whole archive**, set **Published from** and **Published to**,
and set **Max articles per site** high enough. They come newest first.

#### How do I get every new article from a site each day?

Give its home page, or the section you follow, in **Sites**, turn on **Only new articles**, and
schedule the task daily. Each run gives what the site published since the last, and a run with nothing new
costs a fraction of a cent.

#### Does it get past paywalls?

No. An article marked as for subscribers comes as a free row with its title and dates, without its text.

#### Is it legal to extract articles?

It reads public pages as a browser does, keeps to each site's `robots.txt`, and stops at any refusal.
Articles are their authors' and publishers' copyright, and many sites' terms restrict copying them:
reading an article for analysis is one thing, republishing it another. What you do with the results is
your own responsibility; if you're unsure, ask a lawyer. Apify's
[Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/) is a good start.

#### Something missing or not working?

Open an issue on the **Issues** tab with the input you used, or ask there for a field you need.

If it does what you need, a review on the **Reviews** tab helps others find it.

#### Articles from other sites?

[Medium](https://apify.com/pikoulas/medium-articles-scraper), [Substack](https://apify.com/pikoulas/substack) and [any website as Markdown](https://apify.com/pikoulas/website-content-crawler) each have an Actor of their own.

# Actor input Schema

## `sites` (type: `array`):

A news site's, blog's or publication's home or section page. Its newest articles are found through the feeds the page declares, the news sitemaps its robots.txt lists, and the page's own links to articles; with Whole archive, through all its sitemaps.

## `articles` (type: `array`):

Articles to read as they are, any number. Redirects are followed.

## `maxArticlesPerSite` (type: `integer`):

The articles given from each site, newest first, which also limits what a run can cost.

## `archive` (type: `boolean`):

Find a site's articles through all its sitemaps, back to its first, not only its newest: for every article a publication or blog put out in a date range. Sitemaps of tags, authors, pages, products and media are left unread; with a start date, so are those last changed before it.

## `publishedFrom` (type: `string`):

YYYY-MM-DD. A site's articles published before this day are left out.

## `publishedTo` (type: `string`):

YYYY-MM-DD. A site's articles published after this day are left out. Article URLs given are read whatever their date.

## `maxAgeDays` (type: `integer`):

Leave out a site's articles published longer ago than this, for a schedule. Empty for no limit.

## `urlContains` (type: `array`):

Only a site's articles whose URL contains one of these, such as /blog/ or /politics/, for one section of a site.

## `keywords` (type: `array`):

Only articles whose title, description or text names one of these words or phrases (any case, whole words), each with the ones it names. An article read that names none isn't given and costs as a page read.

## `format` (type: `string`):

How the article's text comes.

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

Give each article once. The first run gives each site's newest; later runs with the same memory name give only the articles a site lists after it, and never read or charge an article twice. Run it on a schedule to get each site's new articles.

## `memory` (type: `string`):

Runs with the same memory name share what they've read. Use another name for each list you watch. The memory is a key-value store named article-extractor-memory in your account.

## Actor input object example

```json
{
  "sites": [
    "https://github.blog/",
    "https://techcrunch.com/"
  ],
  "maxArticlesPerSite": 20,
  "archive": false,
  "format": "text",
  "onlyNew": false,
  "memory": "default"
}
```

# Actor output Schema

## `overview` (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 = {
    "sites": [
        "https://github.blog/",
        "https://techcrunch.com/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pikoulas/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 = { "sites": [
        "https://github.blog/",
        "https://techcrunch.com/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("pikoulas/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 '{
  "sites": [
    "https://github.blog/",
    "https://techcrunch.com/"
  ]
}' |
apify call pikoulas/article-extractor --silent --output-dataset

```

## MCP server setup

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