# Medium Scraper — Articles, Authors & Tags (`tortuga/medium-scraper`) Actor

Scrape Medium articles from Medium.com by tags, authors, publications, search or story URL: title, subtitle, author, publication, claps, responses, reading time, tags, publish date and URL, plus the full text of free-to-read stories. Member-only stories give their public preview only.

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

## Pricing

from $4.80 / 1,000 stories

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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, Authors & Tags

Scrape Medium articles from Medium.com by tags, authors, publications, search or story URL: title, subtitle, author, publication, claps, responses, reading time, tags, publish date and URL, plus the full text of free-to-read stories. Member-only stories give their public preview only.

Medium Scraper reads the same data Medium.com shows a visitor who is not logged in. Give it **tags** (`programming`, `machine-learning`), **search terms**, **authors** (`@handle`) or **publications** (`data-science-collective`, `levelup.gitconnected.com`), or paste Medium URLs, and get a clean dataset of stories with the engagement numbers Medium prints on every card. Tag and search listings come from Medium's web pages; author and publication lists come from Medium's own RSS feeds, which also carry the **full text of free stories**. Turn on **Include full text** to open each story page for the full text, word count and language of free-to-read stories. Download JSON, CSV or Excel, call it from Python or Node, or schedule it with **Only new stories** to get a feed of what a tag, author or publication published since the last run. No Medium account, cookie or API key is used.

### What data does Medium Scraper extract?

| Field | Description |
|---|---|
| `postId` | Medium's 12-character story id (`eb96184d4c06`), stable across runs |
| `title`, `subtitle` | Headline and the subtitle / preview sentence Medium shows under it |
| `url` | Story URL without tracking parameters (medium.com, a publication's domain or an author's subdomain) |
| `authorName`, `authorHandle`, `authorUrl` | Public byline: display name, `@handle` and profile URL (handle is null for publication feeds, where Medium prints the name only) |
| `publicationName`, `publicationUrl` | Publication the story was published in, or null for stories on the author's own profile |
| `publishedAt`, `updatedAt` | First publish date and last edit, ISO 8601 UTC |
| `readingTimeMinutes` | Medium's reading time (tag archive, search and story pages) |
| `claps`, `responsesCount` | Clap count and number of responses (web pages; null for feed items until the story page is opened) |
| `tags` | Story tags as Medium slugs (`python`, `data-science`) |
| `isMemberOnly` | `true` for member-only (paywalled) stories |
| `previewText` | What a logged-out visitor sees first: the preview sentence, or the opening of the text when the page was opened |
| `imageUrl` | Preview / cover image |
| `wordCount`, `language` | From the story page (**Include full text**) |
| `text`, `html` | Story body as plain text and HTML. Free stories: the full text, from the author/publication feed or the story page. Member-only stories: the public preview only, flagged `textIsPreview: true`. Null for tag and search listings until the page is opened |
| `textIsPreview` | `true` when `text` is the public preview of a member-only story |
| `source` | Where the item came from: `tag`, `search`, `feed` or `article` |
| `detailError` | Set when **Include full text** could not open the story page (the listing data is still saved) |
| `changeType`, `previousValues` | Monitoring mode only: `new` for stories not seen by earlier runs |
| `scrapedAt` | When the item was collected |

### How to scrape Medium articles

1. Enter one or more **Tags**, **Search terms**, **Authors** or **Publications**, or paste **Start URLs** (tag pages, searches, profiles, publications or single stories; mix them freely).
2. Set **Max stories** to cap the run, and **Max pages per source** (tags have two pages: the archive with the 10 newest and 10 most-read stories, then the front page with about 33 recommended and popular stories; searches, authors and publications have one page of 10).
3. Turn on **Include full text** when you need the body of stories listed from tags or searches, or claps, reading time and word count for feed items. Author and publication feeds already include the full text of free stories, so a feed-only run is the cheapest way to get text.
4. Optionally limit to stories **Posted within the last N days**.
5. Click **Start**. Results appear in the **Dataset** tab; export from there or use the API.

Tag, search and story pages are read through the **RESIDENTIAL** proxy group (Medium shows datacenter IPs a bot check); author and publication feeds are read through a datacenter proxy at no extra cost. If a tag page cannot be opened, the Actor falls back to the tag's RSS feed so the run still returns the 10 latest stories.

### Input example

```json
{
  "tags": ["python", "machine-learning"],
  "searchTerms": ["vector database"],
  "authors": ["@zoningxtr"],
  "publications": ["data-science-collective", "levelup.gitconnected.com"],
  "startUrls": [{ "url": "https://medium.com/@gervandre09/i-rebuilt-a-skill-test-on-1-8-million-polymarket-trades-it-called-a-7-cent-profit-skill-1e2cf6bf2562" }],
  "maxItems": 200,
  "maxPagesPerSource": 2,
  "includeFullText": false,
  "postedWithinDays": 30,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "apifyProxyCountry": "US" }
}
```

### Output example

```json
{
  "postId": "eb96184d4c06",
  "title": "The Anatomy of a Web Request: The Inbound and Outbound Journey of an XSS Attack",
  "subtitle": "Tracing the complete lifecycle of malicious data - from the browser address bar, through edge firewalls, down to the database, and back to the screen.",
  "url": "https://medium.com/@zoningxtr/the-anatomy-of-a-web-request-the-inbound-and-outbound-journey-of-an-xss-attack-eb96184d4c06",
  "authorName": "Zoningxtr",
  "authorHandle": "zoningxtr",
  "authorUrl": "https://medium.com/@zoningxtr",
  "publicationName": null,
  "publicationUrl": null,
  "publishedAt": "2026-11-01T18:26:36Z",
  "updatedAt": "2026-11-01T18:26:36Z",
  "readingTimeMinutes": 4.5,
  "claps": 0,
  "responsesCount": 0,
  "tags": ["cybersecurity", "web-development", "python", "ethical-hacking", "penetration-testing"],
  "isMemberOnly": false,
  "previewText": "By Zoningxtr\n\nTracing the complete lifecycle of malicious data - from the browser address bar, through edge firewalls, down to the database, and back to the screen.\n\nWhen a user types a URL ...",
  "imageUrl": "https://miro.medium.com/v2/resize:fit:1200/1*-pCSqmNfP_aC-PQiCfnULA.jpeg",
  "wordCount": 1146,
  "language": "en",
  "text": "By Zoningxtr\n\nTracing the complete lifecycle of malicious data ...",
  "html": "<p>By <a href=\"https://medium.com/u/22912e9892b6\">Zoningxtr</a></p><p>Tracing the complete lifecycle ...</p>",
  "textIsPreview": false,
  "source": "tag",
  "scrapedAt": "2026-11-01T19:05:12Z"
}
```

A member-only story looks the same but has `"isMemberOnly": true`, `"textIsPreview": true` and only the few opening paragraphs Medium shows before its paywall in `text`/`html`.

### Which Medium URLs work

Paste them as **Start URLs** or in the matching list field:

- Tags: `https://medium.com/tag/python`, `https://medium.com/tag/python/archive`, `https://medium.com/feed/tag/python`
- Search: `https://medium.com/search?q=rust%20async`
- Authors: `https://medium.com/@handle`, `https://handle.medium.com`, `https://medium.com/feed/@handle`
- Publications hosted on Medium: `https://medium.com/data-science-collective`; publications and writers on their own domain: `https://levelup.gitconnected.com`, `https://python.plainenglish.io`
- Single stories: any story URL ending in the 12-character id (`.../the-mode-in-statistics-cfac4c721a16`) or `https://medium.com/p/cfac4c721a16`

Not supported: Medium lists (reading lists), responses/comments, follower lists, and anything that needs a logged-in account (your feed, bookmarks, stats).

### Does it scrape member-only stories?

No. Member-only stories (Medium's paywall) are returned with their public metadata and the preview that Medium shows to anyone without an account, marked `isMemberOnly: true` and `textIsPreview: true`. The Actor never logs in, never uses friend links or other workarounds and never reconstructs paywalled text. Free-to-read stories are returned in full.

### Monitor a Medium tag or author on a schedule

Turn on **Only new stories**, save the input as a task and add a Schedule in Apify (for example daily). Each run remembers the stories earlier runs returned and outputs only stories it has not seen before, as `changeType: "new"`; seen stories are skipped before any story page is opened, so they cost no request and are not charged. A quiet tag costs one page request per run. Give each watch its own **Monitoring key** if several schedules use the same inputs. Claps and responses are not watched, so `previousValues` does not appear. Good daily watches: a tag with 1 page (the archive's 10 newest stories), an author or a publication feed.

### Pricing

Pay per story saved, plus a smaller fee per story page opened when you ask for full text or give story URLs. Stories from author and publication feeds include the full text of free stories without the page fee. There is no start fee or subscription. Apify platform usage (compute and proxy traffic) is billed to your account: tag, search and story pages go through residential proxies (about 0.3 MB per tag page and 0.2 MB per story page before compression), feeds through datacenter proxies.

### Is it legal to scrape Medium?

This Actor collects only publicly available data that Medium shows to anyone without an account: story listings, public bylines, engagement counts, the full text of free stories and the public preview of member-only stories. It does not log in, solve challenges or access paywalled content. Author names and handles are the public bylines Medium prints on every story; no emails or private profile data are collected. You are responsible for how you use the data and for complying with Medium's terms and applicable law, including copyright in the stories' text.

### Integrations and API

Use the run in Zapier, Make, n8n, Google Sheets, or call it from Python/Node with the Apify client. See the **API** tab for ready-made snippets, or schedule the Actor to keep a story feed fresh.

### Support

Found a bug or need a field added? Open an issue in the **Issues** tab; it is usually answered within a day.

### Related scrapers

- [Substack Scraper](https://apify.com/tortuga/substack-scraper): Posts, Newsletters & Comments
- [Telegram Channel Scraper](https://apify.com/tortuga/telegram-channel-scraper): Posts, Views & Media, No Login
- [Instagram Profile & Post Stats Scraper](https://apify.com/tortuga/instagram-profile-scraper)
- [Pinterest Scraper](https://apify.com/tortuga/pinterest-scraper): Pins, Boards & Profiles
- [Facebook Ads Library Scraper](https://apify.com/tortuga/facebook-ads-library-scraper): Meta Ad Creatives & Advertisers

### Found it useful?

A ★ review on this Actor's Apify Store page helps other users find it and tells us what to improve. Issues and feature requests are welcome in the Actor's **Issues** tab.

# Actor input Schema

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

Medium tags to scrape, one per line, e.g. `programming`, `machine-learning` or `https://medium.com/tag/python`. Read from the tag's archive page (10 newest + 10 most-read stories, with reading times) and, with 2 pages, its front page (about 33 recommended, popular-this-week and newest stories). These are Medium web pages and need the RESIDENTIAL proxy group; with a datacenter proxy the Actor falls back to the tag's RSS feed (10 latest stories without claps or reading times).

## `searchTerms` (type: `array`):

Keywords to search on Medium, one per line. Each term gives the 10 stories Medium's search page shows (one page, residential proxy).

## `authors` (type: `array`):

Medium authors, one per line: `@handle`, `handle`, `handle.medium.com` or a profile URL. Read from the author's RSS feed (the 10 latest stories; free stories come with their full text, member-only stories with their public preview). Feeds work with any proxy, including datacenter.

## `publications` (type: `array`):

Medium publications, one per line: the slug (`data-science-collective`), `medium.com/<slug>` or the publication's own domain (`levelup.gitconnected.com`). Read from the publication's RSS feed (the 10 latest stories; free stories with full text, member-only stories with their preview). Feeds work with any proxy.

## `startUrls` (type: `array`):

Any Medium URLs: tag pages (`medium.com/tag/python`), searches (`medium.com/search?q=rust`), author profiles (`medium.com/@handle`, `handle.medium.com`), publications (`medium.com/<slug>` or a custom domain) and single stories (`.../some-title-eb96184d4c06`). Story URLs always open the story page (charged as a story plus a page opened) and give the full text of free stories.

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

Stop after this many stories in total. Keeps the cost predictable: you pay per story saved.

## `maxPagesPerSource` (type: `integer`):

How many listing pages to read per tag. Page 1 is the tag archive (20 stories), page 2 the tag front page (about 33 stories); Medium serves no further pages without login. Search terms, authors and publications have one page each (10 stories).

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

Open every story's page to add `text`/`html`, word count, language, claps, responses and reading time. Free-to-read stories give their full text; member-only stories give only the public preview Medium shows without login (`isMemberOnly: true`, `textIsPreview: true`), never the paywalled text. One residential request per story, charged as a page opened. Author and publication feeds already include the full text of free stories, so leave this off for cheap feed runs.

## `postedWithinDays` (type: `integer`):

Keep only stories published within this many days (by Medium's publish date). Older stories are dropped before any story page is opened and are not charged.

## `onlyNewOrChanged` (type: `boolean`):

Remember what earlier runs of this search returned and output only stories not seen before. Use with a Schedule; stories already seen are not charged and their pages are not opened again.

## `monitoringKey` (type: `string`):

Name for this watch, so several schedules on the same search stay separate; defaults to a key derived from the search input

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

Medium's web pages (tags, search, story pages) answer residential IPs only; datacenter IPs get a bot challenge. Keep the RESIDENTIAL group (US) for tags, search and full text. Residential traffic is billed to your Apify account per GB at your plan's rate (a tag page is about 0.3 MB, a story page about 0.2 MB before compression). Author and publication feeds are always fetched through a datacenter proxy, which costs nothing extra.

## Actor input object example

```json
{
  "tags": [
    "programming"
  ],
  "maxItems": 20,
  "maxPagesPerSource": 1,
  "includeFullText": false,
  "onlyNewOrChanged": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# 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 = {
    "tags": [
        "programming"
    ],
    "maxItems": 20,
    "maxPagesPerSource": 1,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tortuga/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": ["programming"],
    "maxItems": 20,
    "maxPagesPerSource": 1,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("tortuga/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": [
    "programming"
  ],
  "maxItems": 20,
  "maxPagesPerSource": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call tortuga/medium-scraper --silent --output-dataset

```

## MCP server setup

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