# Medium Public Posts Search (`w3crawler/medium-posts-search-scraper`) Actor

Searches Medium's public post index through a bounded anonymous GraphQL request in a standard headless browser. Records include post identity, title, summary, author, publication, preview image, tags, engagement, timestamps, provenance, and truthful diagnostics.

- **URL**: https://apify.com/w3crawler/medium-posts-search-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 63.6% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 post search results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Public Posts Search

Collect public Medium post metadata from explicit Medium-owned RSS feeds, with a best-effort anonymous keyword-search mode retained for compatibility. Feed mode is the reliable path: user feeds, publication feeds, and tag feeds. Saved rows include post identity, title, URL, summary, timestamps, tags, author name, feed provenance, and search context. The Actor does not open article pages or access locked content.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/medium-posts-search-scraper) and select **Try for free**, or open the **Input** tab.
2. Supply one or more `feedUrls` for reliable collection, or a `keyword`/`keywords` for best-effort search.
3. Keep `maxItems` small for the first run.
4. Start the Actor, open the dataset, and export the rows as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT`) to see which mode was used.

### Input

All fields are optional, but supply either `feedUrls` or a keyword target. `feedUrls` takes precedence and is the supported public mode. Unsupported fields and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `feedUrls` | object array | Optional | Not supplied | Up to 50 explicit Medium RSS feeds as `{ "url": "..." }`, using `https://medium.com/feed/@user`, `/feed/<publication>`, or `/feed/tag/<tag>`. Takes precedence over keywords. |
| `keyword` | string | Optional | Not supplied | Best-effort anonymous global-search phrase; ignored when `feedUrls` is supplied. |
| `keywords` | string array | Optional | Not supplied | Best-effort search phrases; replaces `keyword` and divides `maxItems` across phrases. |
| `maxItems` | integer | Optional | `20` | Maximum unique post records across all feeds or phrases, 1–200. |
| `timeoutSecs` | integer | Optional | `120` | Navigation and per-GraphQL-request timeout, 30–180 seconds. |
| `requestRetries` | integer | Optional | `2` | Retries for navigation and transient GraphQL errors, 0–3. |
| `requestDelayMs` | integer | Optional | `500` | Delay between GraphQL searches when multiple keywords are supplied, 250–5,000 ms. |
| `maxGraphqlResponseBytes` | integer | Optional | `1000000` | Maximum GraphQL or RSS response size, 10,000–2,000,000 bytes. |
| `proxyConfiguration` | object | Optional | `{"useApifyProxy":false}` | Optional standard Apify Proxy routing for public requests; direct access is the default. |

Example input from the saved 2026-10-25 run:

```json
{
  "feedUrls": [
    { "url": "https://medium.com/feed/tag/machine-learning" }
  ],
  "maxItems": 5,
  "timeoutSecs": 60,
  "requestRetries": 1,
  "requestDelayMs": 250,
  "maxGraphqlResponseBytes": 500000,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

RSS feed mode is prioritized because Medium may challenge anonymous global search. The Actor does not authenticate, open article pages, solve CAPTCHA, or bypass access controls.

### Output

The dataset contains one row per unique post. RSS mode supplies post and feed metadata but no engagement counts; fields not present in the source payload are omitted. `searchKeyword` stores the feed label in RSS mode, such as `tag:machine-learning`.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordId` | string | Always | Stable identifier for the post record. |
| `recordType` | string | Always | Record type; `mediumSearchPost`. |
| `source` | string | Always | Source label. |
| `provenance` | string | Always | Extraction provenance; `medium_public_rss_posts_v1` in the saved run. |
| `resultRank` | integer | Always | One-based position within the selected feed or search result. |
| `postId` | string | Always | Medium post identifier. |
| `articleTitle` | string | Always | Post title. |
| `articleUrl` | string | Always | Post URL. |
| `articleDomain` | string | Always | Host of the post URL. |
| `summary` | string | Always | Post summary or RSS description. |
| `clapCount` | number | When published | Clap count when a search payload supplies it; absent in the saved RSS run. |
| `responseCount` | number | When published | Response count when supplied; absent in the saved RSS run. |
| `readingTimeMinutes` | number | When published | Reading time when supplied; absent in the saved RSS run. |
| `createdAt` | string | Always | Creation time in ISO UTC. |
| `firstPublishedAt` | string | Always | First publication time in ISO UTC. |
| `latestPublishedAt` | string | Always | Latest publication time in ISO UTC. |
| `isLocked` | boolean | When published | Locked-paywall flag when supplied. |
| `visibility` | string | When published | Visibility label when supplied. |
| `authorUserId` | string | When published | Author user ID when supplied. |
| `authorName` | string | Always | Author display name. |
| `authorUsername` | string | When published | Author username when supplied. |
| `authorBio` | string | When published | Author bio when supplied. |
| `authorAvatarUrl` | string | When published | Author avatar URL when supplied. |
| `authorProfileUrl` | string | When published | Author profile URL when supplied. |
| `authorSubdomainUrl` | string | When published | Author subdomain URL when supplied. |
| `authorIsMember` | boolean | When published | Author membership flag when supplied. |
| `authorMemberSince` | string | When published | Author membership date when supplied. |
| `authorHasSubdomain` | boolean | When published | Author subdomain flag when supplied. |
| `authorIsSuspended` | boolean | When published | Author suspension flag when supplied. |
| `authorIsWriterProgramEnrolled` | boolean | When published | Author writer-program flag when supplied. |
| `authorFollowerCount` | number | When published | Author follower count when supplied. |
| `authorFollowingCount` | number | When published | Author following count when supplied. |
| `publicationId` | string | When published | Publication ID when supplied. |
| `publicationName` | string | When published | Publication name when supplied. |
| `publicationSlug` | string | When published | Publication slug when supplied. |
| `publicationUrl` | string | When published | Publication URL when supplied. |
| `previewImageId` | string | When published | Preview image ID when supplied. |
| `previewImageUrl` | string | When published | Preview image URL when supplied. |
| `previewImageAlt` | string | When published | Preview image alt text when supplied. |
| `tags` | object array | Always | Tag objects with `tagName` and `tagSlug`. |
| `tagNames` | string array | Always | Tag display names. |
| `tagSlugs` | string array | Always | Tag slugs. |
| `tagCount` | integer | Always | Number of tags. |
| `searchKeyword` | string | Always | Search phrase or feed label that produced the row. |
| `feedUrl` | string | Always | RSS feed URL used. |
| `feedType` | string | Always | `tag`, `publication`, or `user` in RSS mode. |
| `feedTitle` | string | Always | RSS channel title. |
| `feedItemCount` | integer | Always | Number of items reported by the feed. |
| `sourceUrl` | string | Always | Exact source URL. |
| `sourcePageUrl` | string | Always | Public page URL associated with the source. |
| `sourceGraphqlUrl` | string | When published | GraphQL endpoint when search mode was used. |
| `scrapedAt` | string | Always | Time the row was saved, in ISO UTC. |
| `url` | string | When published | Compatibility alias of `articleUrl` when supplied; absent in the saved run. |
| `actorName` | string | When published | Actor display name when supplied. |
| `actorSlug` | string | When published | Actor slug when supplied. |
| `targetHint` | string | When published | Target description when supplied. |
| `accessPolicy` | string | When published | Access-policy note when supplied. |
| `generatedBy` | string | When published | Generator metadata when supplied. |
| `sourceWebsite` | string | When published | Source website when supplied. |
| `sourceDomain` | string | When published | Source domain when supplied. |
| `sourceTransport` | string | Always | Transport used; `direct` in the saved run. |
| `sourceHttpStatus` | integer | When published | Source HTTP status when supplied. |
| `httpStatus` | integer | When published | HTTP status when supplied. |
| `apiHttpStatus` | integer | When published | API HTTP status when supplied. |
| `jobsHttpStatus` | integer | When published | Jobs endpoint status when supplied. |
| `requestAttempts` | integer | When published | Attempts for the record request when supplied. |
| `totalRequestAttempts` | integer | When published | Run-level attempts when supplied. |
| `responseBytes` | number | When published | Response size when supplied. |
| `proxyConfigured` | boolean | Always | Whether proxy routing was configured. |
| `proxyUsed` | boolean | When published | Whether a proxy was used when supplied. |
| `fingerprintApplied` | boolean | When published | Browser fingerprint flag when supplied. |
| `browserFingerprinting` | boolean | When published | Browser-fingerprinting flag when supplied. |
| `headlessBrowser` | boolean | When published | Headless-browser flag when supplied. |
| `requestUserAgent` | string | When published | User agent when supplied. |
| `extractionMethod` | string | Always | Extraction path; `medium-rss` in the saved run. |
| `scrapeMode` | string | When published | Scrape mode when supplied. |
| `rawRecord` | object | When published | Raw record payload when supplied. |
| `rawPost` | object | When published | Raw post payload when supplied. |
| `rawPublication` | object | When published | Raw publication payload when supplied. |
| `rawUser` | object | When published | Raw user payload when supplied. |

The example below is a real saved row from the 2026-10-25 feed run. The tag array is shortened.

```json
{
  "recordId": "medium_post_e78c4fbab6da416e3ec9007d",
  "recordType": "mediumSearchPost",
  "source": "Medium public posts from RSS feeds and search metadata",
  "provenance": "medium_public_rss_posts_v1",
  "resultRank": 1,
  "postId": "59939b46f40e",
  "articleTitle": "Your new model isn’t better. It just got lucky.",
  "articleUrl": "https://medium.com/the-learning-rate/your-new-model-isnt-better-it-just-got-lucky-59939b46f40e",
  "articleDomain": "medium.com",
  "summary": "You’ve spent two weeks on a new model. New features, better tuning, a cleaner pipeline. You run it on the test set: 91% accuracy. The old… Continue reading on The Learning Rate »",
  "firstPublishedAt": "2026-10-25T21:13:55.000Z",
  "latestPublishedAt": "2026-10-25T21:13:55.334Z",
  "createdAt": "2026-10-25T21:13:55.000Z",
  "authorName": "Nidhin",
  "tags": [
    { "tagName": "data-science", "tagSlug": "data-science" },
    { "tagName": "model-evaluation", "tagSlug": "model-evaluation" },
    { "tagName": "machine-learning", "tagSlug": "machine-learning" },
    { "tagName": "testing", "tagSlug": "testing" },
    { "tagName": "statistics", "tagSlug": "statistics" }
  ],
  "tagNames": ["data-science", "model-evaluation", "machine-learning", "testing", "statistics"],
  "tagSlugs": ["data-science", "model-evaluation", "machine-learning", "testing", "statistics"],
  "tagCount": 5,
  "searchKeyword": "tag:machine-learning",
  "feedUrl": "https://medium.com/feed/tag/machine-learning",
  "feedType": "tag",
  "feedTitle": "Machine Learning on Medium",
  "feedItemCount": 10,
  "sourceUrl": "https://medium.com/feed/tag/machine-learning",
  "sourcePageUrl": "https://medium.com/feed/tag/machine-learning",
  "extractionMethod": "medium-rss",
  "proxyConfigured": false,
  "sourceTransport": "direct",
  "scrapedAt": "2026-10-25T21:26:18.903Z"
}
```

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT` and `OUTPUT_SUMMARY`.

| Field | Meaning |
| --- | --- |
| `recordId` | Stable summary identifier. |
| `recordType` | Summary type, `runSummary`. |
| `status` | Actor outcome: `SUCCEEDED` or `FAILED`. |
| `actorStatus` | Actor-level status. |
| `accessStatus` | Access outcome. |
| `found` | Whether posts were discovered. |
| `dataAvailable` | Whether rows were saved. |
| `source` | Source label. |
| `accessPolicy` | Access boundary used for the run. |
| `actorName` | Actor display name. |
| `actorSlug` | Actor slug. |
| `targetHint` | Target description. |
| `sourceUrl` | Primary feed or search URL. |
| `sourceWebsite` | Medium website URL. |
| `proxyConfigured` | Whether proxy routing was configured. |
| `sourceTransport` | Transport used. |
| `mode` | `rss` or search mode. |
| `provenance` | Extraction provenance. |
| `requestedKeywords` | Keywords requested. |
| `requestedFeeds` | Feeds requested. |
| `requestedItems` | Requested limit. |
| `itemsStored` | Rows written. |
| `postRecords` | Post records produced. |
| `diagnosticsStored` | Diagnostic entries written. |
| `diagnosticCount` | Issues recorded. |
| `totalDatasetItems` | Total dataset count. |
| `requests` | Requests made. |
| `requestCount` | Request count. |
| `pageRequests` | Page navigations. |
| `graphqlRequests` | GraphQL calls. |
| `feedRequests` | Feed requests. |
| `successfulFeedRequests` | Successful feed requests. |
| `failedFeedRequests` | Failed feed requests. |
| `successfulRequests` | Successful requests. |
| `failedRequests` | Failed requests. |
| `failedRequestCount` | Failed request count. |
| `totalRequestAttempts` | Attempts including retries. |
| `httpStatuses` | HTTP status counts. |
| `navigationState` | Browser navigation outcome. |
| `filters` | Effective input values. |
| `generatedBy` | Generator metadata. |
| `startedAt` | Start time in ISO UTC. |
| `completedAt` | Completion time in ISO UTC. |
| `durationMs` | Duration in milliseconds. |
| `datasetWriteFailureCount` | Dataset write failures. |
| `optionalFailureCount` | Non-fatal failures. |
| `dataStatus` | `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `runStatus` | Canonical run status. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Post rows were saved without an extraction or write problem. |
| `SUCCEEDED` | `PARTIAL` | Some rows were saved, but a later request or optional write failed. |
| `SUCCEEDED` | `NO_RESULTS` | The feed or search returned no posts. |
| `FAILED` | `FAILED` | A fatal error prevented any usable row from being saved. |

Example `OUTPUT` from the saved 2026-10-25 run:

```json
{
  "recordId": "medium_posts_run_summary",
  "recordType": "runSummary",
  "status": "SUCCEEDED",
  "actorStatus": "SUCCEEDED",
  "accessStatus": "COMPLETE",
  "found": true,
  "dataAvailable": true,
  "source": "Medium public posts from RSS feeds and search metadata",
  "accessPolicy": "Public Medium post metadata from Medium-owned RSS feeds or anonymous search metadata; optional standard Apify Proxy for public requests; no protected-article navigation, login, CAPTCHA solving, or access-control bypass.",
  "actorName": "Medium Public Posts Search",
  "actorSlug": "medium-posts-search-scraper",
  "targetHint": "Public Medium post records from RSS feeds or search metadata",
  "sourceUrl": "https://medium.com/feed/tag/machine-learning",
  "sourceWebsite": "https://medium.com/",
  "proxyConfigured": false,
  "sourceTransport": "direct",
  "mode": "rss",
  "provenance": "medium_public_rss_posts_v1",
  "requestedKeywords": 0,
  "requestedFeeds": 1,
  "requestedItems": 5,
  "itemsStored": 5,
  "postRecords": 5,
  "diagnosticsStored": 0,
  "diagnosticCount": 0,
  "totalDatasetItems": 5,
  "requests": 2,
  "requestCount": 2,
  "pageRequests": 1,
  "graphqlRequests": 0,
  "feedRequests": 1,
  "successfulFeedRequests": 1,
  "failedFeedRequests": 0,
  "successfulRequests": 2,
  "failedRequests": 0,
  "failedRequestCount": 0,
  "totalRequestAttempts": 2,
  "httpStatuses": {
    "200": 1
  },
  "navigationState": "handled",
  "filters": {
    "mode": "rss",
    "feedUrls": [
      {
        "url": "https://medium.com/feed/tag/machine-learning",
        "type": "tag",
        "label": "tag:machine-learning",
        "slug": "machine-learning"
      }
    ],
    "maxItems": 5,
    "timeoutSecs": 60,
    "requestRetries": 1,
    "requestDelayMs": 250,
    "maxGraphqlResponseBytes": 500000
  },
  "generatedBy": "OpenAI Codex with GPT-6",
  "startedAt": "2026-10-25T21:26:17.031Z",
  "completedAt": "2026-10-25T21:26:19.100Z",
  "durationMs": 2069,
  "datasetWriteFailureCount": 0,
  "optionalFailureCount": 0,
  "dataStatus": "COMPLETE",
  "runStatus": "SUCCEEDED"
}
```

### Coverage and limitations

The saved run used the tag feed `machine-learning` with `maxItems: 5`; it saved five rows and made two requests (one public page plus one feed). The summary reports `mode: "rss"`, `dataStatus: "COMPLETE"`, and no failed requests. In RSS mode `searchKeyword` is the feed label, not a global search query, and engagement fields such as `clapCount`, `responseCount`, and `readingTimeMinutes` are absent because RSS does not publish them.

Keyword mode is deliberately best-effort: Medium may challenge anonymous search, return unrelated results, or omit fields, so the Actor cannot guarantee coverage. Supply explicit feeds for repeatable collection. The Actor does not open article pages, read locked content, or infer paywall status, author details, publication IDs, or counts that the source does not provide. Empty or blocked requests appear in the summary rather than as rows.

### Usage and support

Cost depends on Apify compute, the number of feeds or keywords, browser/GraphQL requests, retries, and optional proxy use. Start with one feed and a low `maxItems`; keyword runs can cost more and return less. See the Actor's Pricing tab for current rates.

Use the [Actor Issues page](https://apify.com/w3crawler/medium-posts-search-scraper/issues) to report a problem. Include the run ID, input, and summary; do not include tokens, cookies, or private data. This Actor is not affiliated with Medium. Use it only for public data and in accordance with Medium's terms, robots guidance, and applicable law.

# Changelog

This Actor's version history is a separate document: https://apify.com/w3crawler/medium-posts-search-scraper/changelog.md

# Actor input Schema

## `feedUrls` (type: `array`):

Optional explicit Medium-owned RSS feeds. These are the reliable public mode and take precedence over keyword search. Supported forms are https://medium.com/feed/@user, https://medium.com/feed/publication-slug, and https://medium.com/feed/tag/tag-slug.

## `keyword` (type: `string`):

Best-effort anonymous global-search phrase. Use feedUrls for reliable public access; ignored when feedUrls is supplied.

## `keywords` (type: `array`):

Optional best-effort anonymous global-search phrases. When supplied, it replaces keyword; feedUrls takes precedence when supplied.

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

Maximum total unique search-result post records across all phrases.

## `timeoutSecs` (type: `integer`):

Maximum time allowed for page navigation and each anonymous GraphQL request.

## `requestRetries` (type: `integer`):

Retries for page navigation and transient GraphQL errors.

## `requestDelayMs` (type: `integer`):

Delay between GraphQL searches when multiple keywords are supplied.

## `maxGraphqlResponseBytes` (type: `integer`):

Maximum GraphQL or RSS response size accepted.

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

Optional standard Apify Proxy routing for ordinary public requests. Direct access is used by default.

## Actor input object example

```json
{
  "keyword": "machine learning",
  "maxItems": 20,
  "timeoutSecs": 120,
  "requestRetries": 2,
  "requestDelayMs": 500,
  "maxGraphqlResponseBytes": 1000000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Structured public post records from Medium-owned RSS feeds or anonymous search metadata, plus truthful access diagnostics.

## `runSummary` (type: `string`):

Machine-readable counts, request telemetry, source URLs, and final run status.

## `output` (type: `string`):

Compatibility alias of the run summary artifact.

## `sourceMetadata` (type: `string`):

Source website, RSS/GraphQL transport, access policy, and authentication metadata.

## `datasetSanitization` (type: `string`):

Bounded field-cleaning, truncation, and deduplication counters for dataset writes.

# 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 = {
    "keyword": "machine learning"
};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/medium-posts-search-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 = { "keyword": "machine learning" }

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/medium-posts-search-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 '{
  "keyword": "machine learning"
}' |
apify call w3crawler/medium-posts-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/medium-posts-search-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/khQRLwgE1s2IzjMJi/builds/9ufzHYvPUxxtPqpOm/openapi.json
