# Medium Scraper — Articles by Tag, Author & Publication (`fabrikit/medium-scraper`) Actor

Scrape Medium stories from tags, authors, publications or article links: title, URL, date, claps, responses, reading time, tags, member-only flag, author and publication. Optional body as Markdown or text. No login.

- **URL**: https://apify.com/fabrikit/medium-scraper.md
- **Developed by:** [Fabrikit](https://apify.com/fabrikit) (community)
- **Categories:** News, Social media, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.30 / 1,000 article scrapeds

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

## Medium Scraper — Articles by Tag, Author & Publication

Medium Scraper extracts stories from medium.com and from publications that run on Medium under their own domain. Point it at tags (topics), author profiles, publications or single story links and get one flat JSON row per article: title, subtitle, link, ISO dates, claps, number of responses, reading time, word count, tags, language, member-only flag, preview image, author and publication. Switch on the body add-on to receive the story itself as Markdown or plain text, ready for a spreadsheet, a database or an LLM pipeline.

It reads the same public GraphQL data that Medium's web app loads for logged-out visitors. No browser, no login, no cookies.

**Pay per event.** The body add-on applies to articles that come back with a body.

### What it can collect

- **Tag feeds.** `javascript`, `Machine Learning`, `#startup` or a `medium.com/tag/...` link. Choose the feed: latest, trending, or top of the week, month, year or all time.
- **Author archives.** `@username`, `medium.com/@username` or `username.medium.com`, newest first, page after page.
- **Publication archives.** `medium.com/better-programming`, a custom domain such as `javascript.plainenglish.io`, or the bare slug. Pinned stories come first, then everything else newest first. In testing, 400 stories of one publication came back in 16 requests.
- **Single stories.** Any story URL (medium.com, `username.medium.com` or a publication domain) or the 11–12 character story id. Up to 20 stories are fetched per request.

Filters: publication date window (absolute dates or relative ones like `7 days`), minimum claps, free vs member-only, and language. Stories removed by a filter are not charged.

#### Known limits

- **About 100 stories per tag feed.** Medium stops paging a tag feed after roughly 100 stories (we saw 96 in the "latest" feed of `javascript`). To collect more for one topic, run several feeds (latest, trending, top-week, top-month...) or add related tags. Duplicates are removed inside a run.
- **Member-only stories:** metadata is complete (claps, word count, reading time...), but the body add-on only returns the public preview Medium shows to logged-out readers, and `contentIsPreview` is set to `true`.
- **No keyword search.** Medium's robots.txt disallows its search pages, so this Actor does not offer search. Use tags instead.
- **No responses or follower lists.** Only the response count is returned. Responses and follower lists are personal data, and this Actor does not collect them.

### Input example

```json
{
  "tags": ["artificial-intelligence", "product-management"],
  "tagSort": "top-month",
  "urls": [
    "@medium",
    "https://javascript.plainenglish.io",
    "https://medium.com/better-programming/from-monoliths-to-microservices-and-beyond-5f1e639d5b4f"
  ],
  "maxArticlesPerSource": 50,
  "maxItems": 300,
  "publishedAfter": "90 days",
  "minClaps": 20,
  "includeContent": true,
  "contentFormat": "markdown"
}
```

The prefilled input (20 newest stories tagged `artificial-intelligence`) finishes in a few seconds.

### Output example

A real row from the `javascript` tag feed, 23 Oct 2026 (body add-on off):

```json
{
  "articleId": "fd3dfecf00e6",
  "title": "TypeScript Passed. Your API Response Didn’t.",
  "subtitle": "One unchecked JSON response can turn addition into string concatenation. Put a real check where the data enters your app.",
  "url": "https://javascript.plainenglish.io/typescript-passed-your-api-response-didnt-fd3dfecf00e6",
  "canonicalUrl": null,
  "publishedAt": "2026-10-23T06:31:09.521Z",
  "lastPublishedAt": "2026-10-23T06:31:09.521Z",
  "updatedAt": "2026-10-23T07:36:56.737Z",
  "readingTimeMinutes": 3.8,
  "wordCount": 954,
  "claps": 50,
  "responses": 0,
  "isMemberOnly": true,
  "language": "en",
  "tags": ["typescript", "javascript", "web-development", "api", "software-development"],
  "tagNames": ["Typescript", "JavaScript", "Web Development", "API", "Software Development"],
  "imageUrl": "https://miro.medium.com/v2/resize:fit:1400/1*QpAdh7RXbbySlcIpxxqPOQ.png",
  "authorId": "a5ff6d939f75",
  "authorName": "Ferid Brković",
  "authorUsername": "fbrkovic",
  "authorUrl": "https://medium.com/@fbrkovic",
  "authorFollowers": 727,
  "authorIsMember": false,
  "authorBio": "Always learning, always growing. https://ferid.dev",
  "publicationId": "4b3a1ed4f11c",
  "publicationName": "JavaScript in Plain English",
  "publicationUrl": "https://javascript.plainenglish.io",
  "publicationFollowers": 182418,
  "source": "tag",
  "sourceQuery": "javascript",
  "position": 3,
  "scrapedAt": "2026-10-23T08:18:47.112Z"
}
```

With `includeContent` the row also gets `contentMarkdown` and/or `contentText`, `contentWordCount` and `contentIsPreview`. The Markdown keeps headings, bold and italic text, inline code, links, ordered and unordered lists, quotes, fenced code blocks with their language, image links with captions, and embeds as links.

The key-value store also gets `SUMMARY` (articles seen, filtered, saved and charged, requests, network used, stop reason) and `SOURCES` (status of every tag, author, publication and the story links, with the reason when one returned nothing).

### Use cases

- **Content research and SEO.** Find which stories in a topic earn the most claps and responses, how long they are and which tags they combine.
- **Trend monitoring.** Schedule the "latest" feed of your tags every day with `publishedAfter: "1 day"` and push new stories to Slack, a sheet or a database.
- **Writer and publication analysis.** Track an author's or a publication's output, engagement and member-only share over time.
- **Datasets for AI.** Clean Markdown bodies of free stories, with tags, language and dates attached, for RAG, summarisation or classification.
- **Outreach lists.** Authors and publications that write about a niche, with follower counts. Contact details are never included.

### Pricing

Pay per event, with no subscription:

| Event | When |
|---|---|
| `article-result` | every article row saved |
| `article-content` | add-on, only for rows that got a body |

See the Pricing tab for current prices; paid Apify plans get lower rates. About 1.5 KB of data per article and 25 articles per request. Set a maximum charge per run and the Actor stops cleanly when it is reached.

### Compared with alternatives

- **Medium's RSS feeds** (`medium.com/feed/tag/...`) are free but return only the 10 latest stories per feed, with no claps, responses, reading time or member-only flag. If that is enough, our [RSS & Atom Feed Reader](https://apify.com/fabrikit/rss-feed-scraper) reads them, and this Actor runs on the same HTTP core. Use Medium Scraper when you need more than 10 stories, engagement numbers, whole author or publication archives, or clean Markdown bodies.
- **Browser-based scrapers** render pages in Chrome, which makes them slower. This Actor makes plain HTTP requests.
- **Other Medium Actors** in the Store differ in fields. Compare the output above with what you need.

### Integrations

Use the results through the Apify API, as JSON, CSV or Excel, with webhooks, or with integrations for Make, n8n and Zapier. AI agents can call the Actor through the Apify MCP server. Schedules run it daily or hourly.

### FAQ

**Is it legal?** It reads public stories that anyone can open without an account, at a polite pace. It does not log in, bypass the paywall, or collect responses, follower lists, e-mail addresses or phone numbers (contacts in bios and bodies are replaced with `[email removed]` / `[phone removed]`). Republishing stories is up to their authors' rights; check your use case.

**Do I need a proxy?** Usually not. Requests go out directly with a browser fingerprint. If Medium blocks one with all three fingerprints, the run switches by itself to Apify datacenter proxies and then residential proxies. You can turn this off with `autoProxyFallback: false`.

**Why fewer rows than maxItems?** Tag feeds end at about 100 stories, filters remove stories, or a source does not exist. `SOURCES` shows the reason for each one.

**Does it get the full text of member-only stories?** No. You get the public preview and complete metadata.

### En español

Medium Scraper extrae artículos de Medium por tag, autor, publicación o enlace: título, fecha, aplausos (claps), respuestas, tiempo de lectura, tags, si es solo para miembros, autor y publicación, y opcionalmente el cuerpo en Markdown o texto. Consulta la pestaña Pricing para ver los precios vigentes; los planes de pago de Apify tienen tarifas más bajas. Los feeds de tag de Medium llegan a unas 100 historias cada uno; los archivos de autores y publicaciones se paginan completos. Sin login, sin emails ni teléfonos.

### Changelog

- **0.1 (Oct 2026)**: first release. Tag feeds (6 sort orders), author and publication archives, story links, filters, Markdown and text body add-on, automatic proxy fallback.

# Actor input Schema

## `tags` (type: `array`):

Medium tag slugs or names, one per line: artificial-intelligence, javascript, Machine Learning, or a tag link such as https://medium.com/tag/startup. Each tag feed is read in the order chosen in 'Tag feed'. Medium serves about 100 stories per tag feed.

## `tagSort` (type: `string`):

Which feed of each tag to read. latest = newest first; trending = Medium's hot list; top-week / top-month / top-year / top-all-time = most read in that period. To go past ~100 stories for one tag, run several feeds (duplicates are removed inside a run).

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

One per line. Author: @username, https://medium.com/@username or https://username.medium.com. Publication: https://medium.com/better-programming, its own domain (https://javascript.plainenglish.io) or the bare slug. Article: any story link or its 11-12 character id. Author and publication archives are read newest first (pinned stories first), page after page.

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

Stop after this many articles in total (all sources together). You are charged only for the rows saved.

## `maxArticlesPerSource` (type: `integer`):

Cap for each tag, author or publication. 0 = no cap (read the whole archive, up to Maximum articles).

## `includeContent` (type: `boolean`):

Also return each story's body. Free stories come complete; member-only stories return the public preview that Medium shows to logged-out readers (contentIsPreview = true). Charged per article that got a body.

## `contentFormat` (type: `string`):

markdown keeps headings, lists, links, code blocks and image links; text is plain text; both returns the two fields.

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

Keep stories published on or after this date: 2026-01-31, an ISO timestamp or a relative period such as 7 days, 12 hours, 3 months. On newest-first feeds the run stops paging once the stories get older.

## `publishedBefore` (type: `string`):

Keep stories published before this date (same formats as above).

## `minClaps` (type: `integer`):

Skip stories with fewer claps. Filtered stories are not charged.

## `access` (type: `string`):

all, only stories anyone can read (free), or only stories behind Medium's paywall (member-only).

## `languages` (type: `array`):

Keep only stories in these languages, as detected by Medium (two-letter codes: en, es, pt, de...). Empty = all.

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

How many tags, authors or publications are read at the same time. Requests to Medium stay spaced out either way.

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

Not needed in normal use: the Actor starts with direct requests. If Medium blocks them, it switches by itself to Apify datacenter and then residential proxies (see 'Automatic proxy fallback').

## `autoProxyFallback` (type: `boolean`):

When a request is blocked with every browser fingerprint, continue the run through Apify datacenter proxies, then residential proxies. Turn off to never use a proxy you did not choose.

## Actor input object example

```json
{
  "tags": [
    "artificial-intelligence"
  ],
  "tagSort": "latest",
  "maxItems": 20,
  "maxArticlesPerSource": 20,
  "includeContent": false,
  "contentFormat": "markdown",
  "minClaps": 0,
  "access": "all",
  "maxConcurrency": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "autoProxyFallback": true
}
```

# Actor output Schema

## `results` (type: `string`):

All article rows saved during the run

## `summary` (type: `string`):

Articles seen, filtered, saved and charged, requests, network used and stop reason

## `sources` (type: `string`):

For each tag, author, publication and the article links: status, pages read, articles seen, filtered and saved, and any error

# 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 = {
    "tags": [
        "artificial-intelligence"
    ],
    "maxItems": 20,
    "maxArticlesPerSource": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("fabrikit/medium-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 = {
    "tags": ["artificial-intelligence"],
    "maxItems": 20,
    "maxArticlesPerSource": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("fabrikit/medium-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 '{
  "tags": [
    "artificial-intelligence"
  ],
  "maxItems": 20,
  "maxArticlesPerSource": 20
}' |
apify call fabrikit/medium-scraper --silent --output-dataset

```

## MCP server setup

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