# Any Website URL to Article Summarizer (`gitlab/any-website-url-to-article-summarizer`) Actor

Extract and summarize articles from any website URL. Returns title, author, publish date, word count, reading time, full text, and a concise AI-style summary using extractive summarization.

- **URL**: https://apify.com/gitlab/any-website-url-to-article-summarizer.md
- **Developed by:** [Gitlab](https://apify.com/gitlab) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.99 / 1,000 result items

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Any Website URL to Article Summarizer

Extract and summarize articles from any website URL using a headless browser. Returns title, author, publish date, word count, reading time, extractive summary, and key bullet points — no API key required.

### Features

- **Any URL** — works on news sites, blogs, Medium, Substack, and more
- **Extractive summarization** — key sentences extracted without an LLM
- **Configurable summary length** — short (3), medium (5), or long (7) key points
- **Full text option** — optionally include cleaned full article text
- **Metadata extraction** — author, canonical URL, OG tags, language, section
- **Cloud-ready** — runs on Apify with scheduling, proxy rotation, and webhook support

### Use Cases

- Real-time news monitoring and media digest automation
- Content aggregation and curation pipeline tooling
- Topic and keyword trend tracking for SEO or research
- Competitive content intelligence and publishing cadence analysis

### Input

| Field | Type | Default | Required | Description |
|-------|------|---------|----------|-------------|
| `urls` | array | — | ✓ | List of article URLs to extract and summarize. |
| `summaryLength` | string | `medium` | | How long the summary should be: `short` (3 sentences), `medium` (5), `long` (7). |
| `includeFullText` | boolean | `false` | | If true, include the full cleaned article text in the output. |
| `maxItems` | integer | `10` | | Maximum number of articles to process. |
| `proxyConfiguration` | object | Apify Residential | | Proxy settings. Residential proxy is strongly recommended. |

### Output

Each result includes:

| Field | Description |
|-------|-------------|
| `position` | Sequential result number |
| `url` | Article URL |
| `domain` | Source domain (e.g. `techcrunch.com`) |
| `title` | Article title |
| `author` | Author name (if available) |
| `publishDate` | Publication date (ISO string or raw) |
| `canonical` | Canonical URL |
| `description` | Meta description / OG description |
| `section` | Article section or category |
| `tags` | Array of article tags or keywords |
| `summary` | Extractive summary paragraph |
| `keyPoints` | Array of key sentences / bullet points |
| `wordCount` | Approximate word count of body text |
| `readingTime` | Estimated reading time (e.g. `5 min read`) |
| `image` | Primary OG image URL |
| `siteName` | Site name from OG metadata |
| `language` | Detected page language (e.g. `en`) |
| `fullText` | Full cleaned article text (only if `includeFullText: true`) |
| `scrapedAt` | ISO timestamp of scrape |

#### Sample Output

```json
{
  "position": 1,
  "url": "https://techcrunch.com/2024/01/15/openai-new-model/",
  "domain": "techcrunch.com",
  "title": "OpenAI Unveils New Reasoning Model With Improved Accuracy",
  "author": "Sarah Perez",
  "publishDate": "2024-01-15T14:30:00.000Z",
  "canonical": "https://techcrunch.com/2024/01/15/openai-new-model/",
  "description": "OpenAI today announced a new AI model that dramatically improves reasoning capabilities...",
  "section": "Artificial Intelligence",
  "tags": ["OpenAI", "AI", "language models"],
  "summary": "OpenAI has released a new reasoning model that outperforms previous versions on logical tasks. The model introduces chain-of-thought reasoning at inference time and is available via API.",
  "keyPoints": [
    "OpenAI released a new model focused on improved reasoning.",
    "The model uses chain-of-thought reasoning at inference time.",
    "It outperforms GPT-4 on math and coding benchmarks.",
    "API access is available immediately with updated pricing.",
    "Safety evaluations were conducted before release."
  ],
  "wordCount": 842,
  "readingTime": "4 min read",
  "image": "https://techcrunch.com/wp-content/uploads/2024/01/openai-model.jpg",
  "siteName": "TechCrunch",
  "language": "en",
  "scrapedAt": "2025-01-01T00:00:00.000Z"
}
```

### Notes

- **Proxy**: Residential proxy is recommended for paywalled or rate-limited sites
- **Summarization**: Uses extractive (not generative) summarization — no API key needed
- **Dynamic pages**: Waits for `h1`, `article`, or `main` elements before extracting
- **Scheduling**: Use Apify Scheduler to build a recurring news digest pipeline

# Changelog

This Actor's version history is a separate document: https://apify.com/gitlab/any-website-url-to-article-summarizer/changelog.md

# Actor input Schema

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

List of article URLs to extract and summarize.

## `summaryLength` (type: `string`):

How long the summary should be.

## `includeFullText` (type: `boolean`):

If true, include the full cleaned article text in the output.

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

Maximum number of articles to process.

## Actor input object example

```json
{
  "urls": [
    "https://en.wikipedia.org/wiki/Artificial_intelligence"
  ],
  "summaryLength": "medium",
  "includeFullText": false,
  "maxItems": 10
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing the records extracted by this Actor.

# 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/Artificial_intelligence"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("gitlab/any-website-url-to-article-summarizer").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/Artificial_intelligence"],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("gitlab/any-website-url-to-article-summarizer").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/Artificial_intelligence"
  ],
  "maxItems": 10
}' |
apify call gitlab/any-website-url-to-article-summarizer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gitlab/any-website-url-to-article-summarizer"
        }
    }
}
```

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/XEGbPme1NSPKxfCzR/builds/4n24qb4V9eitcqC0T/openapi.json
