# News Article Extractor — Title, Author, Date, Clean Text (`fabrikit/article-extractor`) Actor

Extract structured data from news article and blog post URLs: title, authors, published and modified dates (ISO 8601), clean text, Markdown, lead image, language, site name, canonical URL, section and keywords from JSON-LD, OpenGraph and meta tags. From US$0.50 per 1,000 articles.

- **URL**: https://apify.com/fabrikit/article-extractor.md
- **Developed by:** [Fabrikit](https://apify.com/fabrikit) (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 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

## News Article Extractor — Title, Author, Date, Clean Text

**News Article Extractor turns article URLs into structured records: headline, authors, publication and modification dates in ISO 8601, clean body text, lead image, language, site name, canonical URL, section, keywords and word count.** It reads the HTML the server sends (no browser), combines the structured data publishers already ship (JSON-LD `NewsArticle` / `Article` / `BlogPosting`, OpenGraph, Twitter cards, Parsely, Dublin Core and plain `<meta>` tags) with a readability-style body extraction, and strips what is not the story: bylines, timestamps, photo credits, "Related topics", tag lists, share bars and teaser cards. Flat price: **US$0.50 per 1,000 articles**, failures not charged.

It does not crawl: you give it article links, it returns one record per link. Need the links first? Pair it with an RSS or sitemap tool, or with our [Website to Markdown Scraper](https://apify.com/fabrikit/website-to-markdown-scraper), which shares the same main-content engine and crawls whole sites.

### What you get per article

| Field | Description |
|---|---|
| `title` | Headline from JSON-LD, `og:title` or `<h1>`, without the "| Site name" suffix |
| `author`, `authors` | Byline as a string and as a list ("By Jane Roe and John Doe" becomes two authors); role words and e-mails removed |
| `datePublished`, `dateModified` | ISO 8601 in UTC (`2026-10-20T21:50:41.817Z`), parsed from JSON-LD, `article:published_time`, publisher meta tags or `<time>` |
| `text` | Clean body text, paragraphs separated by blank lines |
| `markdown`, `html` | Body as Markdown (headings, lists, links, images) or cleaned HTML, when `includeMarkdown` / `includeHtml` are on |
| `description` | Standfirst / summary |
| `leadImageUrl` | `og:image`, `twitter:image`, JSON-LD image or the first large image in the article |
| `siteName`, `canonicalUrl`, `language`, `section`, `keywords` | Publication, canonical link, language code, section and tags |
| `wordCount`, `readingTimeMinutes` | Size of the body |
| `isArticle` | `true` when the page carries article markup; see `skipNonArticles` |
| `url`, `finalUrl`, `statusCode`, `fetchTimeMs`, `fetchedAt`, `truncated`, `needsBrowser`, `error` | Request details and why a URL failed |

Verified on BBC News, The Guardian, El País, NPR, Ars Technica, Deutsche Welle, Al Jazeera, NASA Science, the GitHub Blog, Mozilla Hacks and the Apify Blog; any site that publishes standard article markup works the same way.

### Input example

```json
{
  "urls": [
    "https://www.bbc.co.uk/news/articles/cmlyl09xjke4o",
    "https://science.nasa.gov/earth/earth-observatory/extratropical-cyclone-whips-past-iceland/",
    "https://blog.apify.com/what-ai-agents-see-calling-actors/"
  ],
  "includeMarkdown": true,
  "skipNonArticles": false,
  "maxChars": 0
}
```

Options: `includeMarkdown`, `includeHtml`, `skipNonArticles` (store pages without article markup with an error, unpaid), `redactContacts` (mask e-mail addresses and phone numbers in the body; on by default), `maxChars` (cut long bodies for an LLM context window), `timeoutSecs`, `concurrency` and `proxyConfiguration`. Duplicate URLs are skipped; tracking parameters (`utm_*`, `at_medium`, `traffic_source`, ...) are removed before fetching.

### Output example

```json
{
  "url": "https://science.nasa.gov/earth/earth-observatory/extratropical-cyclone-whips-past-iceland/",
  "finalUrl": "https://science.nasa.gov/earth/earth-observatory/extratropical-cyclone-whips-past-iceland/",
  "canonicalUrl": "https://science.nasa.gov/earth/earth-observatory/extratropical-cyclone-whips-past-iceland/",
  "statusCode": 200,
  "siteName": "NASA Science",
  "title": "Extratropical Cyclone Whips Past Iceland",
  "description": "The powerful low-pressure system formed over the North Atlantic out of the remnants of Hurricane Isaias.",
  "author": "Michala Garrison",
  "authors": ["Michala Garrison"],
  "datePublished": "2026-10-21T04:01:00.000Z",
  "dateModified": "2026-10-21T04:01:00.000Z",
  "language": "en-US",
  "section": "Earth Observatory",
  "keywords": ["extratropical cyclone", "Earth Observatory", "Extreme Weather Events", "Visible Infrared Imaging Radiometer Suite (VIIRS)"],
  "leadImageUrl": "https://assets.science.nasa.gov/content/dam/science/esd/eo/images/iotd/2026/extratropical-cyclone-whips-past-iceland/icelandstorm_vir2_20261014_th.jpg/jcr:content/renditions/cq5dam.web.1280.1280.jpeg",
  "text": "The powerful low-pressure system formed over the North Atlantic out of the remnants of Hurricane Isaias.\n\nHurricane Isaias—the only Atlantic hurricane to date in 2026—made landfall in Florida as a Category 2 storm on October 9. ...",
  "markdown": null,
  "html": null,
  "wordCount": 451,
  "readingTimeMinutes": 2,
  "isArticle": true,
  "needsBrowser": false,
  "truncated": false,
  "fetchTimeMs": 412,
  "fetchedAt": "2026-10-21T09:40:12.118Z",
  "error": null
}
```

### Use cases

- **News monitoring and media intelligence**: turn the links from feeds, alerts or search results into dated, attributed text you can filter, cluster and store.
- **LLM and RAG pipelines**: feed `text` or `markdown` to a model with `datePublished`, `siteName` and `author` as metadata; `maxChars` keeps documents bounded.
- **Content analytics and SEO research**: word counts, publication cadence, sections and keywords across competitors' sites.
- **Archiving and reading apps**: clean text plus lead image for digests, newsletters or text-to-speech.
- **Dataset building**: a consistent 26-field record for thousands of articles from different publishers.

### Pricing

Pay per event. One event, `article-result`, is charged per URL that yields an article record.

| Articles | Cost |
|---|---|
| 100 | US$0.05 |
| 1,000 | US$0.50 |
| 10,000 | US$5.00 |

Not charged: HTTP errors, timeouts, blocked requests, non-HTML responses, empty JavaScript shells (`needsBrowser`) and pages rejected by `skipNonArticles`. The Actor runs with 512 MB and needs well under a second of compute per article; normal platform usage applies as described in your plan.

### How it compares

| | This Actor | Compute-priced article extractors | Per-publisher news scrapers |
|---|---|---|---|
| Scope | Any article URL, any publisher | Any article URL | One site (e.g. a single newspaper) |
| Price | US$0.50 per 1,000 articles, flat | Depends on memory and run time | Typically US$0.75–2.30 per 1,000 |
| Dates | ISO 8601 UTC, published and modified | Varies | Varies |
| Body cleaning | Bylines, timestamps, credits, tag lists and teaser cards removed | Readability output | Site-specific |
| Fallback for JavaScript shells | Uses the body shipped in JSON-LD when present; otherwise flags `needsBrowser`, unpaid | — | — |

If you need the whole site rather than a list of articles, use the [Website to Markdown Scraper](https://apify.com/fabrikit/website-to-markdown-scraper); if you need one URL converted on demand over HTTP, use our [URL to Markdown API](https://apify.com/fabrikit/url-to-markdown-api).

### Integrations

- **API and SDKs**: start runs and read the dataset with the [Apify API](https://docs.apify.com/api/v2) or the JavaScript / Python clients.
- **n8n, Make, Zapier**: use the Apify node/module, pass a list of URLs (for example from an RSS trigger) and map the record fields.
- **AI agents / MCP**: call it through the [Apify MCP server](https://apify.com/apify/actors-mcp-server) as a "fetch article" tool; the output is already model-ready.
- **Schedules and webhooks**: schedule runs and get notified when the dataset is ready.

### FAQ

**Is it legal?** Extracting a public article you could read in a browser is generally fine for analysis, indexing and personal use; the text remains the publisher's copyright, so respect their terms before republishing. The Actor fetches only the URLs you give it and masks personal contact details in the body by default.

**Do I need a proxy?** Requests go through Apify's datacenter proxy by default. A blocked request is retried with other browser fingerprints (Chrome, Firefox, Safari) and then once through a residential proxy. Paywalled or heavily protected sites may still return an `error`; those are not charged.

**Why is `text` null?** Check `error`: HTTP status, timeout, block, unsupported content type, `needsBrowser` (empty JavaScript shell), or "does not look like an article" when `skipNonArticles` is on.

**What about paywalls?** Only what the server sends anonymously is extracted. Some paywalled sites still ship the full body in JSON-LD and are extracted; others return a teaser or HTTP 402 and are reported as such.

**Limits?** Responses over 8 MB are skipped; very large pages are parsed up to a size budget and flagged `truncated`. Up to 10,000 URLs per run.

### Changelog

- **0.1** (October 2026): first release. JSON-LD / OpenGraph / meta metadata, ISO dates, author splitting, body cleaning (bylines, timestamps, credits, tag lists, teaser cards), optional Markdown and HTML, `skipNonArticles`, contact masking, fingerprint and proxy ladders.

### En español

**News Article Extractor** convierte URLs de noticias y posts en registros estructurados: titular, autores, fecha de publicación y de modificación en ISO 8601, texto limpio del cuerpo (sin bylines, fechas, créditos de foto, etiquetas ni tarjetas de "relacionados"), imagen principal, idioma, nombre del medio, URL canónica, sección, keywords y conteo de palabras. Lee el HTML tal como lo envía el servidor (sin navegador) y combina JSON-LD, OpenGraph y meta tags con una extracción de contenido tipo Readability. Opcionalmente entrega el cuerpo en Markdown o HTML, recorta a `maxChars` para caber en una ventana de contexto y, con `skipNonArticles`, descarta sin cobrar las páginas que no son artículos. Verificado en BBC, The Guardian, El País, NPR, Ars Technica, DW, Al Jazeera, NASA, GitHub Blog, Mozilla Hacks y el blog de Apify. Precio: US$0,50 por cada 1.000 artículos; los fallos, bloqueos y páginas que requieren navegador no se cobran. Si necesitas rastrear un sitio completo, usa nuestro [Website to Markdown Scraper](https://apify.com/fabrikit/website-to-markdown-scraper).

# Actor input Schema

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

News articles or blog posts to extract, one URL each. https:// is assumed when the scheme is missing; duplicates are skipped. Section pages and home pages are not articles: pass the links to the stories themselves.

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

Also fill the markdown field with the article body as Markdown (headings, lists, links, images). Plain text is always included.

## `includeHtml` (type: `boolean`):

Also fill the html field with the cleaned HTML of the article body.

## `skipNonArticles` (type: `boolean`):

When on, pages without article markup (no JSON-LD Article, no og:type article, no publication date with a real body) are stored with an error and are not charged. Useful when the URL list comes from a crawl and may contain section pages.

## `redactContacts` (type: `boolean`):

Replace e-mail addresses and phone numbers found in the article text with \[email removed] / \[phone removed] (privacy). Turn off to keep them.

## `maxChars` (type: `integer`):

Cut text, markdown and html at this many characters (0 = no limit, up to 1,500,000). Handy to fit an LLM context window; truncated is set to true when the cut happens.

## `timeoutSecs` (type: `integer`):

Give up on a URL after this many seconds per attempt.

## `concurrency` (type: `integer`):

URLs fetched in parallel.

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

Apify datacenter proxy by default. A blocked request is retried with other browser fingerprints (Chrome, Firefox, Safari) and then once through a residential proxy.

## Actor input object example

```json
{
  "urls": [
    "https://blog.apify.com/what-ai-agents-see-calling-actors/",
    "https://github.blog/ai-and-ml/github-copilot/how-to-continue-a-github-copilot-app-session-in-vs-code/",
    "https://hacks.mozilla.org/2026/08/intent-to-ship-jpeg-xl/",
    "https://science.nasa.gov/earth/earth-observatory/extratropical-cyclone-whips-past-iceland/",
    "https://www.bbc.co.uk/news/articles/cmlyl09xjke4o"
  ],
  "includeMarkdown": false,
  "includeHtml": false,
  "skipNonArticles": false,
  "redactContacts": true,
  "maxChars": 0,
  "timeoutSecs": 20,
  "concurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One item per URL

# 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-ai-agents-see-calling-actors/",
        "https://github.blog/ai-and-ml/github-copilot/how-to-continue-a-github-copilot-app-session-in-vs-code/",
        "https://hacks.mozilla.org/2026/08/intent-to-ship-jpeg-xl/",
        "https://science.nasa.gov/earth/earth-observatory/extratropical-cyclone-whips-past-iceland/",
        "https://www.bbc.co.uk/news/articles/cmlyl09xjke4o"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fabrikit/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-ai-agents-see-calling-actors/",
        "https://github.blog/ai-and-ml/github-copilot/how-to-continue-a-github-copilot-app-session-in-vs-code/",
        "https://hacks.mozilla.org/2026/08/intent-to-ship-jpeg-xl/",
        "https://science.nasa.gov/earth/earth-observatory/extratropical-cyclone-whips-past-iceland/",
        "https://www.bbc.co.uk/news/articles/cmlyl09xjke4o",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("fabrikit/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-ai-agents-see-calling-actors/",
    "https://github.blog/ai-and-ml/github-copilot/how-to-continue-a-github-copilot-app-session-in-vs-code/",
    "https://hacks.mozilla.org/2026/08/intent-to-ship-jpeg-xl/",
    "https://science.nasa.gov/earth/earth-observatory/extratropical-cyclone-whips-past-iceland/",
    "https://www.bbc.co.uk/news/articles/cmlyl09xjke4o"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call fabrikit/article-extractor --silent --output-dataset

```

## MCP server setup

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