# Medium Articles, Claps & Author Insights Scraper (`trusted_tech_spot/medium-articles-authors-insights-scraper`) Actor

Scrape Medium articles, reading times, clap counts, author biographies, follower counts, publication tags, and top stories without account barriers.

- **URL**: https://apify.com/trusted_tech_spot/medium-articles-authors-insights-scraper.md
- **Developed by:** [David Sandor](https://apify.com/trusted_tech_spot) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 Articles, Claps & Author Insights Scraper

Fast, robust content intelligence and author discovery scraper for **Medium**. Extract published articles, reading times, clap counts, response volumes, and thought leadership topics without paywalls or account barriers.

### 🚀 Key Features

- **Tag & Topic Discovery**: Scrape trending articles across artificial-intelligence, technology, startup, and programming topics.
- **Social Proof & Claps**: Extract real-time claps, community responses, and estimated reading time.
- **Author & Publication Profiles**: Discover top writers, editorial publications, and contributor metadata.
- **AI & RAG Ready**: Token chunking and semantic vector embeddings generated automatically.
- **Pay-Per-Event (PPE)**: Predictable micro-pricing at **$0.002 per result**.

### 🛠️ Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `tagOrAuthorUrl` | String | `"artificial-intelligence"` | Medium topic tag, publication, or author handle |
| `maxItems` | Integer | `20` | Maximum articles to extract (1-100) |
| `enableRagEnrichment` | Boolean | `true` | Token chunking & vector enrichment |

### 📦 Output Example

```json
{
  "id": "med-ai-1",
  "title": "The Architectural Shift from Monoliths to Modular AI Agents",
  "url": "https://medium.com/towards-data-science/architectural-shift-ai-agents",
  "authorOrCreator": "Dr. Elizabeth Chen",
  "publishedAt": "2026-10-28T09:30:00.000Z",
  "metrics": {
    "claps": 2450,
    "responses": 54,
    "readingTimeMinutes": 7
  },
  "summary": "Deep dive into agentic AI workflows and microservice orchestration.",
  "tags": ["artificial-intelligence", "technology", "software-engineering"]
}
```

# Actor input Schema

## `tagOrAuthorUrl` (type: `string`):

Medium topic tag, author handle, or article URL (e.g. "artificial-intelligence", "towards-data-science", "https://medium.com/@author")

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

Maximum number of items/reviews to scrape (1 - 200). Default is 20.

## `includeKeywords` (type: `string`):

Filter results to only include items containing any of these comma-separated keywords

## `excludeKeywords` (type: `string`):

Filter out items containing these comma-separated keywords

## `enableRagEnrichment` (type: `boolean`):

Automatically compute OpenAI token counts and generate semantic vector chunks for RAG pipelines

## `outputFormat` (type: `string`):

Format results for preferred downstream consumer (e.g. JSON, Markdown, Flat)

## `enrichmentMode` (type: `string`):

Choose enrichment depth: "Enriched" adds 20+ derived fields, "Standard" includes core clean fields, "Basic" is raw extract.

## Actor input object example

```json
{
  "tagOrAuthorUrl": "artificial-intelligence",
  "maxItems": 20,
  "includeKeywords": "",
  "excludeKeywords": "",
  "enableRagEnrichment": true,
  "outputFormat": "JSON",
  "enrichmentMode": "Enriched"
}
```

# Actor output Schema

## `dataset` (type: `string`):

Structured output and extracted data from Medium Articles Authors Insights Scraper Output

# 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 = {
    "tagOrAuthorUrl": "artificial-intelligence",
    "maxItems": 20,
    "includeKeywords": "",
    "excludeKeywords": "",
    "enableRagEnrichment": true,
    "outputFormat": "JSON",
    "enrichmentMode": "Enriched"
};

// Run the Actor and wait for it to finish
const run = await client.actor("trusted_tech_spot/medium-articles-authors-insights-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 = {
    "tagOrAuthorUrl": "artificial-intelligence",
    "maxItems": 20,
    "includeKeywords": "",
    "excludeKeywords": "",
    "enableRagEnrichment": True,
    "outputFormat": "JSON",
    "enrichmentMode": "Enriched",
}

# Run the Actor and wait for it to finish
run = client.actor("trusted_tech_spot/medium-articles-authors-insights-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 '{
  "tagOrAuthorUrl": "artificial-intelligence",
  "maxItems": 20,
  "includeKeywords": "",
  "excludeKeywords": "",
  "enableRagEnrichment": true,
  "outputFormat": "JSON",
  "enrichmentMode": "Enriched"
}' |
apify call trusted_tech_spot/medium-articles-authors-insights-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,trusted_tech_spot/medium-articles-authors-insights-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/6bXh21oq2cd7GIFH5/builds/DWmccfx203Jv8mUC7/openapi.json
