# Medium Articles Scraper (`scrapers_lat/medium-scraper`) Actor

Scrape Medium articles by tag, publication, author or URL. Get title, subtitle, author, publication, date, claps, responses, reading time, tags, hero image and full text. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/scrapers\_lat/medium-scraper.md
- **Developed by:** [Scrapers Lat](https://apify.com/scrapers_lat) (community)
- **Categories:** Social media, News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.80 / 1,000 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

[![Medium Articles Scraper](https://scrapers.lat/banners/medium-scraper.png)](https://console.apify.com/actors/Et9LJ0Xj2cJH6yXC4/input)

## Medium Articles Scraper

> Extract Medium articles by tag, publication, author or URL with title, author, publication, date, claps, responses, reading time, tags and full text

![Apify](https://img.shields.io/badge/Platform-Apify-1CE1CE?logo=apify\&logoColor=white)
![Coverage](https://img.shields.io/badge/Coverage-Global-blue)
![Maintained](https://img.shields.io/badge/Maintained-Yes-brightgreen)
![Output](https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-orange)

<table><tr>
<td align="center"><strong>25 fields</strong><br>per record</td>
<td align="center"><strong>Global</strong><br>coverage</td>
<td align="center"><strong>JSON / CSV / Excel</strong><br>output formats</td>
<td align="center"><strong>Updated</strong><br>2026-07-26</td>
</tr></table>

<br>

### What you get

Each record is one Medium article with its metadata and engagement stats, ready to analyze, monitor or feed into a content pipeline. Point it at any mix of tags, publications, authors or article URLs.

- **imageUrl**: hero / preview image URL
- **title**: article title
- **url**: article URL
- **id**: Medium post id
- **subtitle\***: article subtitle
- **previewText**: snippet / preview text
- **author**: author display name
- **authorUsername**: author username / handle
- **authorUrl**: author profile URL
- **publication**: publication name, when the article ran in one
- **publicationSlug**: publication slug
- **publicationUrl**: publication URL
- **publishedAt**: first published date
- **updatedAt\***: last updated date
- **readingTimeMinutes\***: estimated reading time in minutes
- **wordCount\***: article word count
- **clapCount\***: number of claps / recommends
- **responsesCount\***: number of responses / comments
- **tags**: tags / topics on the article
- **primaryTopic\***: primary topic
- **isMemberOnly\***: whether the article is member-only
- **language\***: detected language
- **canonicalUrl\***: canonical URL
- **fullText\*\***: full plain-text article body
- **sourceType**: which input produced the record (tag, publication, author or url)
- **sourceInput**: the tag, publication, author or URL it came from
- **observedAt**: when this article was last seen by the scraper

*\*These fields appear when Fetch Article Stats is on (the default).*

*\*\*fullText appears when Include Full Article Text is on.*

### Who is it for

| Use case | Who benefits |
|---|---|
| Track the top stories for a topic every day | Content and SEO teams |
| Monitor a publication's or author's newest posts | Editors and community managers |
| Rank articles by claps and responses for a niche | Trend analysts and researchers |
| Build a reading list or newsletter from several sources | Newsletter and curation tools |
| Feed article text and metadata into an AI pipeline | Data and ML engineers |

### Frequently Asked Questions

**What can I scrape from Medium with this?**
You can scrape articles from any Medium tag or topic, any publication, any author profile, or a list of direct article URLs. One run can mix all four, and every article comes back with its title, author, publication, date, claps, responses, reading time, tags and optional full text.

**How many articles can I get per tag, author or publication?**
Each tag, author and publication returns its most recent articles, and the Max Articles setting caps the total across every source in the run. To pull more, add several tags, publications or authors in a single run, or a list of specific article URLs.

**Can I get claps, responses and reading time?**
Yes. Leave Fetch Article Stats on (the default) and each article is opened to add claps, responses, reading time, word count, subtitle, member-only flag, language and the resolved author and publication. Turn it off for a faster listing-only run.

**Can I get the full text of each article?**
Turn on Include Full Article Text and each record includes the full plain-text body of the article in the fullText field, alongside all the metadata and stats.

**What happens with member-only or missing articles?**
Member-only articles are flagged with isMemberOnly and still return their public metadata and stats. If an article cannot be loaded it is reported as a row with an error and is never counted as a result.

### Related scrapers

Need data from the same space? Here are other scrapers we build and maintain:

- [Substack Publications & Newsletters Scraper](https://apify.com/scrapers_lat/substack-publications-scraper): ranked Substack publications with author, tier and pricing
- [Reddit Posts & Comments Scraper](https://apify.com/scrapers_lat/reddit-scraper): posts and comment threads from any subreddit or search
- [YouTube Video & Channel Data Scraper](https://apify.com/scrapers_lat/youtube-scraper): video, channel and view data from YouTube
- [arXiv Research Papers & Abstracts Scraper](https://apify.com/scrapers_lat/arxiv-papers-scraper): research papers with authors, abstracts and categories
- [Apple App Store Reviews & Ratings Scraper](https://apify.com/scrapers_lat/app-store-reviews-scraper): app reviews, ratings and version history
- [Chrome Web Store Extensions Scraper](https://apify.com/scrapers_lat/chrome-web-store-scraper): browser extensions with ratings, users and publisher

### More scrapers at scrapers.lat

This actor is built and maintained by [scrapers.lat](https://scrapers.lat), where we publish scrapers for Latin American and US public platforms: real estate, jobs, e-commerce, company registries and government data. Browse the full catalog, see live sample output for each one, or ask us for a custom scraper at [scrapers.lat](https://scrapers.lat).

***

> This actor is an independent tool and has no affiliation with Medium. It only accesses data that is publicly available on the platform. Use it in accordance with Medium's terms of service.

# Actor input Schema

## `maxArticles` (type: `integer`):

Maximum number of articles to collect across every tag, publication, author and URL in this run.

## `withDetails` (type: `boolean`):

Open each article to add claps, responses, reading time, subtitle, word count, member-only flag, language and the resolved author and publication. Turn off for a faster listing-only run.

## `withContent` (type: `boolean`):

Also include the full plain-text body of each article. Slightly slower; opens each article page.

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

One or more Medium tag slugs, for example 'artificial-intelligence', 'programming', 'startup', 'data-science', 'productivity'. One run collects the latest articles for every tag listed.

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

One or more Medium publication slugs or custom domains, for example 'better-programming', 'towardsdatascience.com', 'free-code-camp'. Collects each publication's latest articles.

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

One or more Medium usernames, with or without the leading @, for example '@quincylarson' or 'quincylarson'. Collects each author's latest articles.

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

Direct Medium article URLs to scrape individually. Each URL is opened for its full details.

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

Any Medium URL: a tag page, publication page, author profile, feed URL or article URL. The scraper detects the type automatically.

## Actor input object example

```json
{
  "maxArticles": 25,
  "withDetails": true,
  "withContent": false,
  "tags": [
    "artificial-intelligence"
  ]
}
```

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

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

# Run the Actor and wait for it to finish
run = client.actor("scrapers_lat/medium-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxArticles": 25,
  "tags": [
    "artificial-intelligence"
  ]
}' |
apify call scrapers_lat/medium-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapers_lat/medium-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Et9LJ0Xj2cJH6yXC4/builds/ggwULFP0Vvm1RLgDf/openapi.json
