# X Article Scraper (`coregent/x-article-scraper`) Actor

Extract public long-form X (Twitter) Articles with the full body text, title, author, publish date, cover image, engagement and a completeness flag. Paste post URLs or IDs, or scan author handles. No login, no cookies. Pay only for Articles saved.

- **URL**: https://apify.com/coregent/x-article-scraper.md
- **Developed by:** [Delowar Munna](https://apify.com/coregent) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 article results

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

## X Article Scraper — X (Twitter) Articles to Markdown & Text

![X Article Scraper](https://raw.githubusercontent.com/coregentdevspace/x-article-scraper-assets/main/thumbnail-x-article-scraper.png)

X Article Scraper turns public long-form **X Articles** into clean, exportable records. Give it Article post URLs, post IDs or author handles, set one overall limit, and get a consistent JSON / CSV row per Article: title, author, publish date, cover image, the **full body text** (as Markdown-ready text and as plain text), word count, engagement and a **completeness flag**. No X account, login, cookies or credentials needed.

Coverage depends on what X and our licensed data provider make available. The Actor never guesses: a field it can't get is `null`, never an invented value.

### ✨ What you get

- **The whole Article body**, paragraph by paragraph, ready for search indexes, NLP or LLM context windows. Today our data provider returns the text without heading, bold, link or inline-image formatting, so `bodyMarkdown` is clean paragraph text. If the provider starts returning the rich format, the Actor converts it to full Markdown (headings, lists, quotes, code, links, images) automatically, and `contentSource` changes to `rich_text`.
- **Title, preview, cover image, word and character counts** for every Article.
- **Provenance on every row**: post ID, Article ID, canonical post URL, which of your inputs matched it, provider, schema version and collection time.
- **A completeness flag** (`complete` / `partial` / `unknown`) and `contentSource` (`rich_text`, `plain_text` or `preview`) so you know how much of the Article came back.
- **Only Articles**: ordinary posts are skipped and never charged.
- **Batch-ready**: URLs, IDs and author handles in one run, de-duplicated, with one global cap that is never multiplied by the number of inputs.
- Engagement counts (likes, reposts, replies, quotes, bookmarks, views) when X shows them.

### 🎯 Use cases

- **RAG and AI pipelines**: feed long-form posts into vector stores as Markdown chunks with source links.
- **Knowledge management**: archive Articles from experts you follow into Notion, Obsidian or a wiki.
- **Content analysis and journalism**: track what founders, researchers and analysts publish as Articles.
- **Monitoring**: schedule the Actor on a list of authors and collect only new Articles (see below).

### 🚀 Quick start

1. Paste one or more **Article post URLs** (the post that published the Article, e.g. `https://x.com/karpathy/status/2002118205729562949`), or add **author handles**.
2. Set **Maximum Articles**.
3. Click **Start**. Results appear in the dataset as each Article is saved.

Running with the pre-filled form returns the 2 example Articles.

### 📥 Input

| Field | What it does |
|---|---|
| `articleUrls` | X post URLs that published an Article. twitter.com, mobile and `/i/status/` links work. |
| `postIds` | Numeric post IDs, as an alternative to URLs. |
| `authorHandles` | Handles or profile URLs. The author's recent posts are scanned and only the author's own Article posts are returned (reposts of other people's Articles are skipped). |
| `maxResults` | Maximum Articles saved in the whole run (default 10). |
| `publishedAfter` | Only Articles published on or after a date, or within a period such as `30 days`. |
| `includeMarkdown`, `includePlainText`, `includeImages`, `includeReferencedLinks` | Turn the body formats, image list and link list on or off (all on by default). Links are filled only when the provider returns them (rare today). |
| `maxPostsScannedPerAuthor` | Advanced: how many recent posts per author are checked for Articles (default 100). |
| `maxArticleCharacters` | Advanced: cut the bodies at this length (0 = no limit). |
| `skipIds` | Advanced: post IDs or URLs to leave out, e.g. Articles collected in an earlier run. |

> **Tip**: `x.com/i/article/…` links carry the Article's own ID, which can't be looked up. Paste the URL of the post that shared the Article (`…/status/<id>`) instead. The Actor tells you when it skips one.

#### Example: specific Articles

```json
{
    "articleUrls": [
        "https://x.com/karpathy/status/2002118205729562949",
        "https://x.com/thedankoe/status/2010751592346030461"
    ],
    "maxResults": 10
}
```

#### Example: recent Articles from a few authors, Markdown only

```json
{
    "authorHandles": ["karpathy", "thedankoe"],
    "publishedAfter": "90 days",
    "maxResults": 20,
    "includePlainText": false
}
```

#### Example: known Articles plus author scans (the run behind the screenshots below)

```json
{
    "articleUrls": [
        "https://x.com/karpathy/status/2002118205729562949",
        "https://x.com/thedankoe/status/2010751592346030461",
        "https://x.com/github/status/2082201573976056245",
        "https://x.com/satyanadella/status/2066182223213293753"
    ],
    "authorHandles": ["thedankoe", "karpathy", "github", "satyanadella"],
    "maxResults": 20,
    "maxPostsScannedPerAuthor": 200
}
```

This returned 20 Articles in about 40 seconds: the 4 linked Articles, then 16 more found by scanning @thedankoe's recent posts. The run stopped at 20 before reaching the other handles, because inputs are processed in order and `maxResults` is one cap for the whole run.

### 📤 Output

One row per unique Article (`recordType: "x_article"`). The dataset has five tabs, all views of the same rows. Export in JSON, CSV, Excel, XML or HTML. The screenshots and samples below come from the screenshot run above; long text is shortened with "…".

#### Overview

Title, author, publish date, length, completeness, likes, views, post link and cover image.

![Overview tab](https://raw.githubusercontent.com/coregentdevspace/x-article-scraper-assets/main/x-article-scraper-output-overview-table-view.png)

```json
{
    "title": "The most lucrative AI business to start in 2027",
    "authorHandle": "thedankoe",
    "authorName": "DAN KOE",
    "publishedAt": "2026-11-03T17:06:26.000Z",
    "wordCount": 3653,
    "contentCompleteness": "complete",
    "likeCount": 12867,
    "viewCount": 2936507,
    "articleUrl": "https://x.com/thedankoe/status/2117664712532123680",
    "coverImageUrl": "https://pbs.twimg.com/media/HWNySA0bkAAMYZd.jpg"
}
```

#### Content

The preview and the whole body, as Markdown-ready text and as plain text.

![Content tab](https://raw.githubusercontent.com/coregentdevspace/x-article-scraper-assets/main/x-article-scraper-output-content-table-view.png)

```json
{
    "title": "The harness is all you need (mostly)",
    "authorHandle": "github",
    "previewText": "A practical GitHub Copilot workflow for prototyping, planning, implementing, and reviewing software - without chasing every new AI tool.\nBy @burkeholland\nIf you’re feeling overwhelmed by AI right now,",
    "bodyMarkdown": "A practical GitHub Copilot workflow for prototyping, planning, implementing, and reviewing software - without chasing every new AI tool.\n\nBy @burkeholland\n\nIf y…",
    "bodyText": "A practical GitHub Copilot workflow for prototyping, planning, implementing, and reviewing software - without chasing every new AI tool.\n\nBy @burkeholland\n\nIf y…",
    "truncated": false,
    "articleUrl": "https://x.com/github/status/2082201573976056245"
}
```

#### Images & links

The cover image, the image list, and both links: the post that published the Article and the Article itself.

![Images & links tab](https://raw.githubusercontent.com/coregentdevspace/x-article-scraper-assets/main/x-article-scraper-output-image-n-links-table-view.png)

```json
{
    "title": "2025 LLM Year in Review",
    "authorHandle": "karpathy",
    "coverImageUrl": "https://pbs.twimg.com/media/G8jw86Fa8AAixGt.jpg",
    "images": [{ "url": "https://pbs.twimg.com/media/G8jw86Fa8AAixGt.jpg", "alt": null, "isCover": true }],
    "articleLink": "https://x.com/i/article/2002114638226522112",
    "articleUrl": "https://x.com/karpathy/status/2002118205729562949"
}
```

#### Engagement

The post's likes, reposts, replies, quotes, bookmarks and views when it was collected.

![Engagement tab](https://raw.githubusercontent.com/coregentdevspace/x-article-scraper-assets/main/x-article-scraper-output-engagement-table-view.png)

```json
{
    "title": "2025 LLM Year in Review",
    "authorHandle": "karpathy",
    "publishedAt": "2025-12-19T20:45:52.000Z",
    "likeCount": 15439,
    "repostCount": 2897,
    "replyCount": 370,
    "quoteCount": 483,
    "bookmarkCount": 17480,
    "viewCount": 3009593,
    "articleUrl": "https://x.com/karpathy/status/2002118205729562949"
}
```

#### Provenance

IDs, body format and completeness, size, which of your inputs found the Article, provider, schema version and collection time.

![Provenance tab](https://raw.githubusercontent.com/coregentdevspace/x-article-scraper-assets/main/x-article-scraper-output-provenance-table-view.png)

```json
{
    "postId": "2117664712532123680",
    "articleId": "2117661803769659392",
    "articleUrl": "https://x.com/thedankoe/status/2117664712532123680",
    "contentSource": "plain_text",
    "contentCompleteness": "complete",
    "characterCount": 20301,
    "sourceInputType": "authorHandle",
    "matchedInputs": ["@thedankoe"],
    "sourceProvider": "tikhub",
    "schemaVersion": "1.0",
    "collectedAt": "2026-11-22T03:12:17.945Z"
}
```

#### Full record

Every row also has `recordType`, `authorId`, `outboundLinks`, `wordCount` and the other fields shown above. One complete row (bodies shortened):

```json
{
    "recordType": "x_article",
    "schemaVersion": "1.0",
    "postId": "2002118205729562949",
    "articleId": "2002114638226522112",
    "articleUrl": "https://x.com/karpathy/status/2002118205729562949",
    "articleLink": "https://x.com/i/article/2002114638226522112",
    "title": "2025 LLM Year in Review",
    "previewText": "2025 has been a strong and eventful year of progress in LLMs. The following is a list of personally notable and mildly surprising \"paradigm changes\" - things that altered the landscape and stood out",
    "authorHandle": "karpathy",
    "authorName": "Andrej Karpathy",
    "authorId": "33836629",
    "publishedAt": "2025-12-19T20:45:52.000Z",
    "coverImageUrl": "https://pbs.twimg.com/media/G8jw86Fa8AAixGt.jpg",
    "bodyMarkdown": "2025 has been a strong and eventful year of progress in LLMs. The following is a list of personally notable and mildly surprising \"paradigm changes\" - things th…",
    "bodyText": "2025 has been a strong and eventful year of progress in LLMs. The following is a list of personally notable and mildly surprising \"paradigm changes\" - things th…",
    "images": [{ "url": "https://pbs.twimg.com/media/G8jw86Fa8AAixGt.jpg", "alt": null, "isCover": true }],
    "outboundLinks": [],
    "wordCount": 1698,
    "characterCount": 10265,
    "truncated": false,
    "contentSource": "plain_text",
    "contentCompleteness": "complete",
    "likeCount": 15439,
    "repostCount": 2897,
    "replyCount": 370,
    "quoteCount": 483,
    "bookmarkCount": 17480,
    "viewCount": 3009593,
    "sourceInputType": "articleUrl",
    "matchedInputs": ["https://x.com/karpathy/status/2002118205729562949"],
    "sourceProvider": "tikhub",
    "collectedAt": "2026-11-22T03:12:09.788Z"
}
```

| Field | Notes |
|---|---|
| `contentCompleteness` | `complete`: the whole body text came back. `partial`: only the preview (the first lines) did. `unknown`: only the title did. |
| `contentSource` | The body's format: `rich_text` (with formatting, links and images), `plain_text` (the whole text, without formatting; the usual case today), `preview` or `none`. |
| `images` | The cover image; inline images too when the rich format is returned. |
| `outboundLinks` | Links inside the Article, when the provider returns them (usually empty today). |
| `wordCount`, `characterCount` | Always describe the full Article, even when `maxArticleCharacters` cut the bodies. |
| `publishedAt` | The Article's first-published time, or the time of the post that published it. |
| Engagement counts | The post's counts at collection time; `null` when not shown. |

**Run summary**: each run writes `RUN_SUMMARY` to the key-value store: targets requested / succeeded / failed, posts scanned, non-Article posts skipped, duplicates, rows saved and charged, completeness counts, the stop reason, and a `failures` list with codes such as `NOT_AN_ARTICLE`, `CONTENT_UNAVAILABLE`, `SOURCE_UNAVAILABLE` and `RATE_LIMITED`. Failures never appear as dataset rows.

### 💳 Pricing

Pay per event: you're charged **once per Article saved** to the dataset. These are always free:

- ordinary posts that turn out not to be Articles;
- duplicates (the same Article given twice, or found again through an author);
- Articles dropped by your filters or listed in Skip IDs;
- failed inputs, timeline scanning for author handles, and the run summary.

The Actor also respects the maximum cost per run you set in Apify. See the **Pricing** tab for the current rates; this README deliberately doesn't quote figures, because rates can change.

### 🔁 Monitor authors on a schedule

To collect new Articles from a set of authors:

1. Save your input as a **Task** with `authorHandles` and `publishedAfter` set to a period slightly longer than your schedule (e.g. `8 days` for a weekly run).
2. Add a **Schedule** for the Task.
3. Optionally, put the post IDs you already have into `skipIds` so they're never fetched again.

Connect the dataset to Make, Zapier, n8n, Google Sheets or a webhook to send each new Article where you need it.

### 🔌 API

Run it from code with the Apify API or the Apify client:

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<APIFY_TOKEN>' });
const run = await client.actor('coregent/x-article-scraper').call({
    articleUrls: ['https://x.com/karpathy/status/2002118205729562949'],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0].title, items[0].bodyMarkdown.slice(0, 200));
```

It also works from AI agents through Apify's MCP server.

### 🛠 Troubleshooting

- **"not an X Article"**: the post is an ordinary post, a thread or a long post, not an Article. It wasn't charged.
- **"this post is a repost"**: you pasted someone's repost of an Article. Use the original post; the message gives its ID. It wasn't charged.
- **"links carry the Article ID"**: you pasted an `x.com/i/article/…` link. Paste the URL of the post that shared it.
- **"Article content was not returned"**: the post links an Article, but the body was unavailable (for example, Articles limited to subscribers, unpublished or being edited). It wasn't charged.
- **An author returned nothing**: they may have no Articles among their recent posts. Raise **Posts scanned per author**, or check the handle.
- An empty result never proves something doesn't exist on X; it means it wasn't available to this run.

### 🔒 Privacy and disclaimer

This Actor collects only publicly available X Articles and the public author details shown with them. It doesn't log in, recover protected posts or get around access controls. You are responsible for using the data lawfully, including copyright in the Article text and applicable privacy laws. This is an independent tool, not affiliated with or endorsed by X Corp.

Related: for ordinary posts by keyword or profile, use [X Tweet Scraper](https://apify.com/coregent/x-tweet-scraper).

# Actor input Schema

## `articleUrls` (type: `array`):

URLs of X posts that published an Article, one per entry (e.g. <code>https://x.com/karpathy/status/2002118205729562949</code>). twitter.com, mobile and /i/status/ links work too. <code>x.com/i/article/…</code> links carry the Article ID, not the post ID, so paste the post's own …/status/ URL instead. Ordinary posts that are not Articles are skipped and never charged.

## `postIds` (type: `array`):

Numeric IDs of X posts that published an Article, as an alternative to URLs (e.g. <code>2002118205729562949</code>). Duplicates across both lists are fetched once.

## `authorHandles` (type: `array`):

X handles (with or without @) or profile URLs. The author's recent posts are scanned and only their own Article posts are returned (reposts are skipped). Scanning is limited by "Posts scanned per author" in Advanced.

## `maxResults` (type: `integer`):

Stops the whole run after this many saved Articles, across every input. It is never multiplied by the number of inputs.

## `publishedAfter` (type: `string`):

Only Articles published on or after this date (UTC), or within a relative period before the run, such as <code>30 days</code>. Articles dropped by this filter are never charged. For author handles it also stops the scan once the timeline is older than the date.

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

Article body as Markdown-ready text, paragraph by paragraph. Headings, lists, links and images are converted too when the data provider returns the formatted version (usually it returns plain paragraphs).

## `includePlainText` (type: `boolean`):

Article body as plain text, without formatting.

## `includeImages` (type: `boolean`):

List of the Article's image URLs: the cover, plus inline images when the formatted version is returned.

## `includeReferencedLinks` (type: `boolean`):

List of the links the Article points to, when the data provider returns them (usually empty today).

## `maxPostsScannedPerAuthor` (type: `integer`):

How many of each author's most recent posts are checked for Articles. Most posts are not Articles, so a higher value finds older Articles but takes longer. Scanning is never charged.

## `maxArticleCharacters` (type: `integer`):

Cut the Markdown and plain-text bodies at this many characters. 0 = no limit. Cut rows have <code>truncated: true</code>; <code>wordCount</code> and <code>characterCount</code> always describe the full Article.

## `skipIds` (type: `array`):

Post IDs or post URLs to leave out, e.g. Articles you collected in an earlier run. Skipped posts are not fetched and never charged.

## Actor input object example

```json
{
  "articleUrls": [
    "https://x.com/karpathy/status/2002118205729562949",
    "https://x.com/thedankoe/status/2010751592346030461"
  ],
  "postIds": [],
  "authorHandles": [],
  "maxResults": 10,
  "includeMarkdown": true,
  "includePlainText": true,
  "includeImages": true,
  "includeReferencedLinks": true,
  "maxPostsScannedPerAuthor": 100,
  "maxArticleCharacters": 0,
  "skipIds": []
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `content` (type: `string`):

No description

## `runSummary` (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 = {
    "articleUrls": [
        "https://x.com/karpathy/status/2002118205729562949",
        "https://x.com/thedankoe/status/2010751592346030461"
    ],
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("coregent/x-article-scraper").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 = {
    "articleUrls": [
        "https://x.com/karpathy/status/2002118205729562949",
        "https://x.com/thedankoe/status/2010751592346030461",
    ],
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("coregent/x-article-scraper").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 '{
  "articleUrls": [
    "https://x.com/karpathy/status/2002118205729562949",
    "https://x.com/thedankoe/status/2010751592346030461"
  ],
  "maxResults": 10
}' |
apify call coregent/x-article-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,coregent/x-article-scraper"
        }
    }
}
```

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/8N88Cp6jC1I3oZEII/builds/4XhYsL4eNT5zfZ73P/openapi.json
