# Article Text Extractor (`latam_data/article-text-extractor`) Actor

Extract clean article text and Markdown from any news or blog URL: title, author, date, description, image, word count and full text. Great for LLMs, RAG and NLP. Failed pages are free.

- **URL**: https://apify.com/latam_data/article-text-extractor.md
- **Developed by:** [Cristian Camilo Gomez Diaz](https://apify.com/latam_data) (community)
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 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.

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

### What does Article Text Extractor do?

**Article Text Extractor** turns any news article, blog post or documentation page into **clean text and Markdown**, without menus, ads or cookie banners. For every URL you get the **title, author, publication date, site name, description, main image, language, word count, reading time and the full article text**.

- 🧹 **Clean content**: the same "reader mode" algorithm used by Firefox (Mozilla Readability)
- 📝 **Text and Markdown**: Markdown keeps headings, lists, links and code blocks, perfect for LLMs and RAG
- 🗓️ **Rich metadata**: dates and authors from meta tags and JSON-LD
- 💸 **Failed pages are free**: you only pay for articles that were actually extracted
- ⚡ No browser: hundreds of articles per minute

### Why extract article text?

- 🤖 **AI, LLMs and RAG**: feed clean Markdown into ChatGPT, Claude, embeddings or vector databases.
- 📰 **Media monitoring**: get the full text of news found with our [Google News Scraper](https://apify.com/latam_data/google-news-scraper).
- 📊 **NLP and sentiment analysis**: build text datasets without HTML noise.
- 🔎 **SEO and content research**: word counts, titles and descriptions of competitor articles.
- 📚 **Archiving and reading apps**: save articles in a readable format.

### How to use it

1. Click **Try for free**.
2. Paste your **Article URLs**, one per line.
3. Choose **Plain text**, **Markdown** or both.
4. Click **Start** and export the results as JSON, CSV, Excel or HTML, or use the API.

### Input example

```json
{
    "urls": [
        "https://en.wikipedia.org/wiki/Web_scraping",
        "https://blog.apify.com/what-is-web-scraping/"
    ],
    "outputFormats": ["text", "markdown"],
    "includeHtml": false,
    "minWords": 50
}
```

### Output example

```json
{
    "url": "https://blog.apify.com/what-is-web-scraping/",
    "success": true,
    "title": "What is web scraping?",
    "siteName": "Apify Blog",
    "author": "...",
    "publishedAt": "2024-10-15T14:32:00.000Z",
    "description": "The basics of web scraping: what it is, how it works...",
    "image": "https://blog.apify.com/content/images/...",
    "language": "en",
    "wordCount": 1358,
    "readingTimeMinutes": 6,
    "text": "Web scraping is the process of...",
    "markdown": "## What is web scraping?\n\nWeb scraping is the process of...",
    "scrapedAt": "2026-11-18T16:50:00.000Z"
}
```

Pages that can't be extracted come back with `success: false` and an `error` message, and they are **not charged**.

### How much does it cost?

This Actor uses **pay per result**: you pay only for successfully extracted articles, plus a tiny start fee. See the **Pricing** tab for the current price. Apify's free plan includes monthly credits, enough for thousands of articles.

### Tips and limits

- Pages that need JavaScript to show their text, paywalled articles and home/listing pages are reported as failed (free).
- Some big publishers block cloud servers (HTTP 403). For those, proxies such as [Webshare](https://www.webshare.io/?referral_code=v5e0reweus4m) or scraping APIs like [ScraperAPI](https://www.scraperapi.com/?fp_ref=camilo-66b5f5) and [ScrapeOps](https://scrapeops.io?fpr=camilo-1a3b24) can help.
- Need the news URLs first? Use our [Google News Scraper](https://apify.com/latam_data/google-news-scraper).

### Integrations and API

Send articles to Google Sheets, Notion, Airtable, Slack or a webhook with [Make](https://www.make.com/en/register?pc=latamdata), Zapier or n8n, or call the Actor from your code with the [Apify API](https://docs.apify.com/api/v2). New to Apify? [Create a free account here](https://apify.com?fpr=rfn03e). Need content data as a ready-made API? See [Zyla API Hub](https://zylalabs.com/a/f9jcfkz8).

### Is it legal?

The Actor only reads public pages you choose and does not log in or bypass paywalls. Respect the copyright of the publishers and the terms of each website when you reuse the text.

### Feedback

Need another field or format? Open an issue in the **Issues** tab.

# Actor input Schema

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

One URL per line: news articles, blog posts, docs pages. Thousands per run are fine.

## `outputFormats` (type: `array`):

Clean text, Markdown (great for LLMs and RAG), or both.

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

Also return the cleaned article HTML.

## `includeAuthor` (type: `boolean`):

Return the byline published on the article.

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

Pages with less text are reported as failed (and not charged).

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

How many pages are downloaded at the same time.

## Actor input object example

```json
{
  "urls": [
    "https://en.wikipedia.org/wiki/Web_scraping",
    "https://blog.apify.com/what-is-web-scraping/"
  ],
  "outputFormats": [
    "text",
    "markdown"
  ],
  "includeHtml": false,
  "includeAuthor": true,
  "minWords": 50,
  "maxConcurrency": 10
}
```

# Actor output Schema

## `results` (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 = {
    "urls": [
        "https://en.wikipedia.org/wiki/Web_scraping",
        "https://blog.apify.com/what-is-web-scraping/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("latam_data/article-text-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://en.wikipedia.org/wiki/Web_scraping",
        "https://blog.apify.com/what-is-web-scraping/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("latam_data/article-text-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://en.wikipedia.org/wiki/Web_scraping",
    "https://blog.apify.com/what-is-web-scraping/"
  ]
}' |
apify call latam_data/article-text-extractor --silent --output-dataset

```

## MCP server setup

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