# Article Extractor & AI Summarizer API

> Summarize URLs, PDFs and text: summary, key points and TL;DR in any language; article extractor.

**Reading everything is not an option; trusting a summary that invents facts is worse.** Send an article **URL**, a **PDF**, **DOCX** or **text** file, or raw **text**, and get a **summary**, the **key points** and a one-line **TL;DR**, in the source's language or any of **50+ others**. Web pages are cleaned first (menus, ads, cookie banners and comments removed), long reports and books are read in parallel parts, and every number of the summary is **checked against the source**. About **$0.006 per summary** on PRO, **5x cheaper** than the most-subscribed summarizer on RapidAPI.

- Host: `article-extractor-ai-summarizer-url-text-pdf.p.rapidapi.com`
- Base URL: `https://article-extractor-ai-summarizer-url-text-pdf.p.rapidapi.com/v1/summarizer`
- Auth: headers `X-RapidAPI-Key` and `X-RapidAPI-Host`
- OpenAPI: https://helenis-api.com/docs/summarizer/openapi.json

## Endpoints

### Summarization

Text, URL or file to a summary, key points and TL;DR, by AI.

#### Summarize Text or URL

`POST /v1/summarizer/summarize`

Text or URL (article, PDF, DOCX) to a summary, key points and TL;DR. Summarize a `text` or a `url` (web article, PDF, DOCX, TXT, Markdown, HTML) into a summary, key points and TL;DR, using only facts from the source. Up to 100,000 words. 20 credits up to 2,000 words, +10 per started 2,000 words beyond, +10 for `long`.

| Parameter | In | Type | Required | Description | Example |
|---|---|---|---|---|---|
| `text` | body | `string` | no | The text to summarise (up to 50,000 characters; upload a file for longer texts). Send `text` or `url`. | `The James Webb Space Telescope (JWST) is a space telescope designed to conduc...` |
| `url` | body | `string` | no | A web page (its main article is extracted first) or a direct link to a PDF, DOCX, TXT, Markdown or HTML file. | `https://en.wikipedia.org/wiki/Okapi` |
| `length` | body | `"short" \| "medium" \| "long"` | no | `short` (about 60 words and 3 key points), `medium` (about 150 words and 5 key points) or `long` (about 350 words and 8 key points). Never longer than a third of the source. Default `medium`. |  |
| `sentences` | body | `integer` | no | Exact number of sentences (or bullets) of the summary, 1-20. Overrides `length` for the summary itself. |  |
| `format` | body | `"all" \| "paragraph" \| "bullets" \| "key_points" \| "tldr"` | no | `all` (summary paragraph, key points and TL;DR), `paragraph` (summary and TL;DR), `bullets` (the summary as bullet points, and TL;DR), `key_points` (key points and TL;DR) or `tldr` (the one-line TL;DR only). Default `all`. |  |
| `language` | body | `string` | no | Language of the summary: an ISO 639-1 code (`en`, `fr`, `de`, `es`, `ja`, `zh`, `pt-br`...) or an English name (`French`). Default: the source's language. | `en` |
| `focus` | body | `string` | no | Optional topic to give more room to, e.g. 'pricing and costs' (200 characters max). A hint only: the summary stays faithful to the whole source. |  |

```bash
curl -X POST "https://article-extractor-ai-summarizer-url-text-pdf.p.rapidapi.com/v1/summarizer/summarize" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: article-extractor-ai-summarizer-url-text-pdf.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://paulgraham.com/words.html",
    "length": "short"
  }'
```

#### Summarize File

`POST /v1/summarizer/summarize/upload`

Uploaded PDF, DOCX, TXT, Markdown or HTML file to a summary. Same as /summarize, for a file sent as multipart/form-data (field `file`) with the same options: reports, papers, contracts, books and long texts (JSON bodies are capped at 64 KB). Scanned PDFs have no text to read: run them through our PDF to Text API first. Same credits.

| Parameter | In | Type | Required | Description | Example |
|---|---|---|---|---|---|
| `file` | form | `file` | yes | PDF with a text layer, DOCX, ODT, TXT, Markdown or HTML, up to 30 MB and 100,000 words. |  |
| `length` | form | `"short" \| "medium" \| "long"` | no | `short` (about 60 words and 3 key points), `medium` (about 150 words and 5 key points) or `long` (about 350 words and 8 key points). Never longer than a third of the source. Default `medium`. |  |
| `sentences` | form | `integer` | no | Exact number of sentences (or bullets) of the summary, 1-20. Overrides `length` for the summary itself. |  |
| `format` | form | `"all" \| "paragraph" \| "bullets" \| "key_points" \| "tldr"` | no | `all` (summary paragraph, key points and TL;DR), `paragraph` (summary and TL;DR), `bullets` (the summary as bullet points, and TL;DR), `key_points` (key points and TL;DR) or `tldr` (the one-line TL;DR only). Default `all`. |  |
| `language` | form | `string` | no | Language of the summary: an ISO 639-1 code (`en`, `fr`, `de`, `es`, `ja`, `zh`, `pt-br`...) or an English name (`French`). Default: the source's language. |  |
| `focus` | form | `string` | no | Optional topic to give more room to, e.g. 'pricing and costs' (200 characters max). A hint only: the summary stays faithful to the whole source. |  |

```bash
curl -X POST "https://article-extractor-ai-summarizer-url-text-pdf.p.rapidapi.com/v1/summarizer/summarize/upload" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: article-extractor-ai-summarizer-url-text-pdf.p.rapidapi.com" \
  -F "file=@./my-file"
```

### Article Extraction

Clean article text, Markdown and metadata from a URL. No AI.

#### Extract Article

`GET /v1/summarizer/extract`

URL to the article's clean text, Markdown and metadata, no AI. Extract the main article of a web page without menus, ads or comments, no AI: title, byline, date, site, lead image, language, plain text and Markdown, word count. Pages that need JavaScript, a login or a subscription get 400 `page_empty` / `page_paywalled` (not billed). 1 credit.

| Parameter | In | Type | Required | Description | Example |
|---|---|---|---|---|---|
| `url` | query | `string` | yes | The web page of an article, blog post or any page. | `https://en.wikipedia.org/wiki/Okapi` |

```bash
curl -G "https://article-extractor-ai-summarizer-url-text-pdf.p.rapidapi.com/v1/summarizer/extract" \
  --data-urlencode "url=https://en.wikipedia.org/wiki/Okapi" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: article-extractor-ai-summarizer-url-text-pdf.p.rapidapi.com"
```

## Sample call

Summarize Text or URL: `POST /v1/summarizer/summarize`.

```bash
curl -X POST "https://article-extractor-ai-summarizer-url-text-pdf.p.rapidapi.com/v1/summarizer/summarize" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: article-extractor-ai-summarizer-url-text-pdf.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://paulgraham.com/words.html",
    "length": "short"
  }'
```

## Response

```json
{
  "title": "Putting Ideas into Words",
  "summary": "Writing is a rigorous process that reveals the incompleteness and imprecision of one's thoughts. By committing ideas to words and reviewing them from the perspective of a neutral reader, one discovers new insights and refines existing knowledge. This practice is a necessary test for developing fully formed ideas, as internal thoughts often remain vague or flawed until subjected to the discipline of writing.",
  "key_points": [
    "Writing forces a person to confront the gaps and inaccuracies in their thinking, often leading to the discovery of new ideas during the process.",
    "Evaluating one's own writing from the perspective of a neutral stranger is a necessary, albeit difficult, step to ensure ideas are clear and complete.",
    "Because writing is a necessary condition for fully formed ideas, those who never write about nontrivial topics likely lack fully developed thoughts."
  ],
  "tldr": "Writing is a necessary test that transforms vague, incomplete thoughts into precise, fully formed ideas by forcing the author to articulate them clearly for a neutral reader.",
  "language": "en",
  "output_language": "English",
  "source_words": 1210,
  "summary_words": 162,
  "reading_time": { "source_minutes": 5.1, "summary_minutes": 0.3, "saved_minutes": 4.8 },
  "chunks": 1,
  "unverified_numbers": [],
  "source": { "type": "url", "file_type": "html", "name": "https://paulgraham.com/words.html" },
  "article": {
    "url": "https://paulgraham.com/words.html",
    "final_url": "https://paulgraham.com/words.html",
    "title": "Putting Ideas into Words",
    "site_name": "paulgraham.com"
  },
  "notices": [],
  "credits": 20
}
```

*From a real response.* With `"format": "bullets"` the `summary` is Markdown bullet lines (`- ...`); with `"language": "ja"` everything is written in Japanese while `language` still tells you the source was English.

## Why developers pick this API

- 💸 **Cheap at scale:** 20 credits per summary of up to 2,000 words (**$0.0062** on PRO, **$0.0062** on MEGA), article extraction **$0.0003**. Failed calls, paywalls and bot walls use **0 credits**.
- ✅ **It works:** the most-subscribed article summarizer on RapidAPI answered **16%** of its calls successfully on 27 Nov 2026 and charges **$0.03** a summary.
- 🔢 **Numbers you can check:** figures are compared with the source; over 30 summaries of real sources (news, blogs, Wikipedia, PDF reports, a novel) in 7 languages, **0** were flagged and spot-checked names and figures all matched.
- 🛡️ **Prompt-injection safe:** text in the page telling "the AI" what to do is summarized as content, never obeyed; the `focus` field is a topic, not a prompt.
- 🧱 **Honest failures:** a paywall teaser, a bot check or a JavaScript-only page answers a clear 400 (`page_paywalled`, `page_blocked`, `page_empty`) instead of a summary of a login screen.

| | Price per summary | Article text | Success rate (RapidAPI, 27 Nov 2026) |
|---|---|---|---|
| **This API** | **$0.0062** (2,000 words) | **$0.0003**, with Markdown and metadata | measured on 41 real pages, see FAQ |
| Most-subscribed summarizer (11,800 subscribers) | $0.03 | included | 16% |
| Healthy AI summarizer (2 k calls for $15) | $0.0075 | included | 100% |
| Popular TL;DR API | $0.01 | no | 0% |
| Text summarizers on marketplaces | $0.012 to $0.025 | no | text only |

## Files and long documents

```bash
curl -X POST "https://article-extractor-ai-summarizer-url-text-pdf.p.rapidapi.com/v1/summarizer/summarize/upload" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: article-extractor-ai-summarizer-url-text-pdf.p.rapidapi.com" \
  -F "file=@annual-report.pdf" -F "length=long" -F "focus=risks and outlook"
```

PDF (with a text layer), DOCX, ODT, TXT, Markdown or HTML, up to 30 MB and 100,000 words. Sources over 12,000 words are split into parts read in parallel, then summarized as a whole (`chunks` tells you how many). In our tests: the IPCC synthesis report (22,573 words, 40 PDF pages) in 18 to 58 s, the French Wikipedia page on the French Revolution (26,124 words) in 9 s, *The War of the Worlds* (61,031 words) in 22 s.

## Article extraction (no AI)

```bash
curl "https://article-extractor-ai-summarizer-url-text-pdf.p.rapidapi.com/v1/summarizer/extract?url=https://paulgraham.com/words.html" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" -H "X-RapidAPI-Host: article-extractor-ai-summarizer-url-text-pdf.p.rapidapi.com"
```

```json
{
  "url": "https://paulgraham.com/words.html",
  "final_url": "https://paulgraham.com/words.html",
  "title": "Putting Ideas into Words",
  "site_name": "paulgraham.com",
  "text": "February 2022 Writing about something, even something you know well, usually shows you that you didn't know it as well as you thought. Putting ideas into words is a severe test. ...",
  "markdown": "February 2022 Writing about something, even something you know well, usually shows you that you didn't know it as well as you thought. ...",
  "word_count": 1210,
  "reading_time_minutes": 5.1,
  "truncated": false
}
```

*From a real response, text shortened.* News pages also return `byline` (as written on the page), `published` (YYYY-MM-DD), `description`, `image`, `language` and `page_type`. Headings, lists and tables are kept in `markdown`, ready for a RAG pipeline or an LLM prompt.

## Errors

| Status | `code` | Meaning |
|---|---|---|
| 400 | `missing_input` | Send either `text` or `url`. |
| 400 | `text_too_short` / `input_too_long` | Under 25 words, or over 100,000 words (split it). |
| 400 | `page_paywalled` | Only a subscriber teaser is readable: send the text instead. Not billed. |
| 400 | `page_blocked` | The site showed a bot check or a "JavaScript required" page. Not billed. |
| 400 | `page_empty` | No readable article text (JavaScript-only page). Not billed. |
| 400 | `scanned_pdf` | The PDF has no text layer: run it through an OCR first. |
| 400 | `unsupported_file` | Not PDF, DOCX, ODT, TXT, Markdown or HTML (images, .doc, RTF). |
| 400 | `site_unreachable` / `site_blocked` | The site did not answer, or refused automated access. |
| 400 | `invalid_language` | Use an ISO 639-1 code or an English language name. |
| 400 | `plan_limit` | The free BASIC plan reads up to 2,000 words per call. |
| 429 | `daily_limit_reached` | Daily safety limit of your plan; resets at 00:00 UTC. |
| 503 | `ai_error` / `upstream_timeout` | The AI did not answer in time; retry. Not billed. |

## Honest limits

- **Scanned PDFs** have no text to read: OCR them first (our PDF to Text API does it).
- **Pages that need JavaScript, a login or a subscription** are refused (400, not billed), not guessed.
- **Home pages and product pages** are summarized as what they are: a list of headlines or a product pitch.
- **Bylines and dates** are read from the page's own metadata; some sites publish none.
- **Numbers check:** a figure the summary derives (a percentage computed from two numbers) is flagged even when correct; that is the point, so you can look.

## Pricing

Summary 20 credits up to 2,000 words, +10 per 2,000 words beyond, +10 for long; article extraction 1. Failed calls are never billed.

| Plan | Price | Credits included | Above the quota |
|---|---|---|---|
| BASIC | Free | 40 / day | resets every day |
| PRO | $4.99/month | 16,000 / month | $0.0035 per credit |
| ULTRA | $14.99/month | 48,000 / month | $0.0035 per credit |
| MEGA | $49.99/month | 160,000 / month | $0.0035 per credit |

Apify actor **Article Summarizer & Extractor - AI TL;DR, Key Points & Text**: billed per event; free-plan users get 5 summaries per run (extraction unlimited).

| Event | Charged for | Price |
|---|---|---|
| `article-summarized` | each summary (source up to 2,000 words) | $0.006 |
| `extra-words` | each 2,000 words beyond, and the long option | $0.003 |
| `article-extracted` | each article extracted, no AI | $0.0008 |

## Links

- API reference (HTML): https://helenis-api.com/docs/summarizer
- OpenAPI: https://helenis-api.com/docs/summarizer/openapi.json
- Overview and pricing: https://helenis-api.com/apis/summarizer/
- RapidAPI listing: https://rapidapi.com/helenis-api-helenis-api-docs/api/article-extractor-ai-summarizer-url-text-pdf?utm_source=helenis&utm_medium=site&utm_campaign=summarizer&utm_content=markdown
- Apify actor: https://apify.com/helenisapi/article-summarizer?utm_source=helenis&utm_medium=site&utm_campaign=summarizer&utm_content=markdown
- MCP server (Apify): https://mcp.apify.com?tools=helenisapi/article-summarizer

MCP: Works in Claude, Cursor, VS Code and any MCP client; billed per event through Apify (your Apify token).

## Conventions (every Helenis API)

- Auth: two headers on every call, `X-RapidAPI-Key` (your key) and `X-RapidAPI-Host` (the API's host). One RapidAPI key works for every API you subscribe to.
- Billing in credits: one for a simple call, more for heavier work (a minute of audio, a page read by AI). Each API states its rule.
- Failed calls are never billed: a `4xx` bills zero credits and a `5xx` is never counted.
- Errors share one envelope: `{"error": {"status", "code", "message"}}` with a stable machine-readable `code`.
- `400`: fix the input (validation errors are always 400, never 422); not billed.
- `429`: rate limit; wait for `Retry-After`. `503`: temporary upstream or AI failure (`ai_error`, `upstream_timeout`); retry later, not billed.
- Values the source does not give come back as `null`, never invented.
