# Medium Scraper - Posts, Claps & Authors (`goat255/medium-scraper`) Actor

Collect posts for any topic across a date range and get one clean row each. Every row has claps, responses, word count, reading time, author, publication and tags. Filter by claps, paywall or language.

- **URL**: https://apify.com/goat255/medium-scraper.md
- **Developed by:** [Goutam Soni](https://apify.com/goat255) (community)
- **Categories:** Automation, Lead generation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 post scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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 Scraper

Collect posts for any topic across a date range. One clean row per post with claps, responses, author and publication. No login and no API key.

### What it does

- **Engagement on every row** - claps, the number of people who clapped, and response count, so you can rank by what actually landed.
- **Content stats** - word count, reading time and image count, useful for working out what length performs.
- **Author and publication** on every post, with a link to the author.
- **Any date range** - archives go back years, so you can build a large historical dataset in one run.
- **Filters** for minimum claps, members only or free, and language.
- **Every tag on the post**, not just the one you searched.

Around 200 posts are published per tag per day, so a wide date range returns a lot of material.

Common uses: content and topic research, finding what performs in a niche, tracking authors and publications, competitor content monitoring, and building a writing dataset.

### Input

| Field | Type | Description |
|---|---|---|
| `tags` | array | Topics to collect. Enter them normally, for example Artificial Intelligence. |
| `dateFrom` | string | First day, `YYYY-MM-DD`. Defaults to seven days before the end date. |
| `dateTo` | string | Last day, `YYYY-MM-DD`. Defaults to yesterday. |
| `maxResultsPerTag` | integer | Cap per tag. Default 200, up to 20000. |
| `minClaps` | integer | Only posts with at least this many claps. |
| `paywall` | string | `any`, `free` or `paid`. |
| `language` | string | Two letter language code, for example `en`. |
| `proxyConfiguration` | object | Optional. Enable to spread requests across IPs. |

#### Example input

```json
{
  "tags": ["Artificial Intelligence", "Data Science"],
  "dateFrom": "2026-07-01",
  "dateTo": "2026-07-15",
  "maxResultsPerTag": 1000,
  "minClaps": 50,
  "paywall": "any"
}
```

### Output

Each item is one post.

```json
{
  "id": "0123456789ab",
  "title": "An Example Post Title",
  "subtitle": "The standfirst that appears under the title.",
  "author": "Jane Doe",
  "authorUsername": "example_user",
  "authorUrl": "https://medium.com/@example_user",
  "publication": "Example Publication",
  "claps": 468,
  "voters": 34,
  "responses": 2,
  "wordCount": 1868,
  "readingTimeMinutes": 7.25,
  "imageCount": 1,
  "tags": ["Artificial Intelligence", "Programming"],
  "isPaid": true,
  "language": "en",
  "publishedAt": "2026-07-15T09:14:02Z",
  "url": "https://medium.com/@example_user/an-example-post-title-0123456789ab",
  "searchTag": "artificial-intelligence"
}
```

`publication` is `null` for posts published under an author's own name rather than in a publication.

### Notes

- No login and no API key. Enter a tag and run.
- Tags are entered in plain English and converted to the form the site uses, so `Artificial Intelligence` and `artificial-intelligence` both work.
- Posts are deduplicated across every tag and day, so a post carrying two of your tags is delivered once and charged once.
- Days with no posts are skipped, and a long run of empty days ends that tag early rather than burning the whole range.
- Claps come from the post record itself, so they are the real totals rather than an estimate.

To improve our actors we collect anonymized usage telemetry (run stats and input patterns). No personal account data is collected.

# Actor input Schema

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

Topics to collect. Enter them normally, for example Artificial Intelligence or Data Science.

## `dateFrom` (type: `string`):

First day to collect, format YYYY-MM-DD. Defaults to seven days before the end date.

## `dateTo` (type: `string`):

Last day to collect, format YYYY-MM-DD. Defaults to yesterday.

## `maxResultsPerTag` (type: `integer`):

Cap per tag. Each day of a tag holds around 200 posts.

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

Only return posts with at least this many claps.

## `paywall` (type: `string`):

Limit to members only posts, to free posts, or return both.

## `language` (type: `string`):

Optional two letter language code, for example en. Leave empty for all languages.

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

Residential proxy is required for this source and is enabled by default. Leaving it on is recommended.

## Actor input object example

```json
{
  "tags": [
    "Artificial Intelligence",
    "Data Science"
  ],
  "dateFrom": "2026-07-01",
  "dateTo": "2026-07-15",
  "maxResultsPerTag": 200,
  "paywall": "any",
  "language": "en",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `posts` (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": [
        "Artificial Intelligence"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

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

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

```

## MCP server setup

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