# Medium Public Publications Search (`w3crawler/medium-publications-search-scraper`) Actor

Searches Medium's public publication index through a bounded anonymous GraphQL request in a standard headless browser. Records include publication identity, descriptions, custom-domain and Medium URLs, avatar data, raw public response data, provenance, and truthful diagnostics.

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

## Pricing

from $2.99 / 1,000 publication 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 Publications Search

Collect public Medium publication metadata from explicit Medium publication RSS feeds, with a best-effort anonymous keyword-search mode for compatibility. Each saved row describes one publication: name, slug, canonical Medium URL, description, domain flags, feed provenance, and the ID source used. Feed mode is the reliable public path and does not discover every publication globally.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/medium-publications-search-scraper) and select **Try for free**, or open the **Input** tab.
2. Supply `publicationFeedUrls` for known publications, or a `keyword`/`keywords` for best-effort search.
3. Keep `maxItems` small; one row is produced per unique publication.
4. Start the Actor, open the dataset, and export the rows as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT_SUMMARY`) to inspect feed and access status.

### Input

All fields are optional, but supply either `publicationFeedUrls` or a keyword target. Feed URLs take precedence over keyword search. Unsupported fields and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `publicationFeedUrls` | object array | Optional | Not supplied | Up to 50 publication feeds as `{ "url": "https://medium.com/feed/<slug>" }`. Takes precedence over keywords and does not discover publications globally. |
| `keyword` | string | Optional | Not supplied | Best-effort anonymous global-search phrase; ignored when publication feeds are supplied. |
| `keywords` | string array | Optional | Not supplied | Best-effort search phrases; replaces `keyword` and divides `maxItems` across phrases. |
| `maxItems` | integer | Optional | `20` | Maximum unique publication records across feeds or phrases, 1–200. |
| `timeoutSecs` | integer | Optional | `120` | Navigation and per-GraphQL/RSS request timeout, 30–180 seconds. |
| `requestRetries` | integer | Optional | `2` | Retries for navigation and transient GraphQL or RSS errors, 0–3. |
| `requestDelayMs` | integer | Optional | `500` | Delay between source requests, 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; direct public access is the default. |

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

```json
{
  "publicationFeedUrls": [
    { "url": "https://medium.com/feed/towards-data-science" },
    { "url": "https://medium.com/feed/the-mission" }
  ],
  "maxItems": 2,
  "timeoutSecs": 60,
  "requestRetries": 1,
  "requestDelayMs": 500,
  "maxGraphqlResponseBytes": 500000,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

The Actor reads Medium-owned publication feeds directly. The keyword path uses anonymous search and may be challenged; it is not a complete publication directory.

### Output

The dataset contains one row per unique publication. `publicationId` is derived from a validated feed URL in RSS mode, not from a global Medium registry, so its value and `publicationIdSource` describe that derivation. Missing optional metadata is omitted.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordId` | string | Always | Stable identifier for the publication record. |
| `recordType` | string | Always | Record type; `mediumPublicationSearchResult`. |
| `source` | string | Always | Source label. |
| `provenance` | string | Always | Extraction provenance; `medium_public_rss_publications_v1` in the saved run. |
| `resultRank` | integer | Always | One-based position within the selected feed or result set. |
| `publicationId` | string | Always | Publication identifier derived from the validated feed URL in RSS mode. |
| `publicationIdSource` | string | Always | How the ID was obtained; `validated_medium_publication_feed_url` in the saved run. |
| `publicationName` | string | Always | Publication display name. |
| `publicationSlug` | string | Always | Publication slug. |
| `publicationDomain` | string | When published | Custom publication domain when supplied. |
| `hasCustomDomain` | boolean | Always | Whether a custom domain is present. |
| `mediumUrl` | string | Always | Canonical Medium publication URL. |
| `customDomainUrl` | string | When published | Custom-domain URL when one exists. |
| `canonicalUrl` | string | Always | Canonical publication URL. |
| `publicationDescription` | string | Always | Publication description. |
| `publicationShortDescription` | string | When published | Short description when supplied. |
| `descriptionCharacterCount` | integer | Always | Description character count. |
| `descriptionWordCount` | integer | Always | Description word count. |
| `avatarId` | string | When published | Avatar identifier when supplied. |
| `avatarUrl192` | string | When published | 192-pixel avatar URL when supplied. |
| `avatarUrl512` | string | When published | 512-pixel avatar URL when supplied. |
| `searchKeyword` | string | Always | Feed slug or search phrase that produced the row. |
| `feedUrl` | string | Always | Publication feed URL used. |
| `feedType` | string | Always | Source type; `publication` in the saved run. |
| `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 a publication URL 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-channel` 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.

```json
{
  "recordId": "medium_publication_855c9e0c9ba80967a14b21bb",
  "recordType": "mediumPublicationSearchResult",
  "source": "Medium public publication records from RSS feeds and search metadata",
  "provenance": "medium_public_rss_publications_v1",
  "resultRank": 1,
  "publicationId": "rss-20a0879c5a9dcce0ca617652",
  "publicationIdSource": "validated_medium_publication_feed_url",
  "publicationName": "TDS Archive - Medium",
  "publicationSlug": "towards-data-science",
  "hasCustomDomain": false,
  "mediumUrl": "https://medium.com/towards-data-science",
  "canonicalUrl": "https://medium.com/towards-data-science",
  "publicationDescription": "An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication. - Medium",
  "descriptionCharacterCount": 181,
  "descriptionWordCount": 25,
  "searchKeyword": "towards-data-science",
  "feedUrl": "https://medium.com/feed/towards-data-science",
  "feedType": "publication",
  "feedTitle": "TDS Archive - Medium",
  "feedItemCount": 10,
  "sourceUrl": "https://medium.com/feed/towards-data-science",
  "sourcePageUrl": "https://medium.com/feed/towards-data-science",
  "extractionMethod": "medium-rss-channel",
  "proxyConfigured": false,
  "sourceTransport": "direct",
  "scrapedAt": "2026-10-25T21:13:32.835Z"
}
```

### Run summary

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

| Field | Meaning |
| --- | --- |
| `recordId` | Stable summary identifier. |
| `recordType` | Summary type, `run-summary`. |
| `status` | Actor outcome: `SUCCEEDED` or `FAILED`. |
| `actorStatus` | Actor-level status. |
| `accessStatus` | Access outcome. |
| `found` | Whether publications were discovered. |
| `dataAvailable` | Whether rows were saved. |
| `source` | Source label. |
| `provenance` | Extraction provenance. |
| `accessPolicy` | Access boundary used for the run. |
| `actorName` | Actor display name. |
| `actorSlug` | Actor slug. |
| `targetHint` | Target description. |
| `sourceUrl` | Primary feed URL. |
| `sourceWebsite` | Medium website URL. |
| `mode` | `rss` or search mode. |
| `sourceProvenance` | Source-level provenance. |
| `requestedKeywords` | Keywords requested. |
| `requestedPublicationFeeds` | Publication feeds requested. |
| `requestedItems` | Requested limit. |
| `itemsStored` | Rows written. |
| `publicationRecords` | Publication rows 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` | Navigation outcome. |
| `filters` | Effective input values. |
| `generatedBy` | Generator metadata. |
| `proxyConfigured` | Whether proxy routing was configured. |
| `fingerprintApplied` | Whether browser fingerprinting was applied. |
| `sourceTransport` | Transport used. |
| `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` | Publication rows were saved without an extraction or write problem. |
| `SUCCEEDED` | `PARTIAL` | Some rows were saved, but a later request or optional operation failed. |
| `SUCCEEDED` | `NO_RESULTS` | Feeds or search returned no publications. |
| `FAILED` | `FAILED` | A fatal error prevented any usable row from being saved. |

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

```json
{
  "recordId": "medium_publications_run_summary",
  "recordType": "run-summary",
  "status": "SUCCEEDED",
  "actorStatus": "SUCCEEDED",
  "accessStatus": "PARTIAL",
  "found": true,
  "dataAvailable": true,
  "source": "Medium public publication records from RSS feeds and search metadata",
  "provenance": "medium_public_rss_publications_v1",
  "accessPolicy": "Public Medium publication-search metadata only; explicit Medium publication RSS feeds are the reliable public source mode; direct requests by default with optional standard Apify Proxy; no protected-publication navigation, login, CAPTCHA solving, or access-control bypass.",
  "actorName": "Medium Public Publications Search",
  "actorSlug": "medium-publications-search-scraper",
  "targetHint": "Public Medium publication records from RSS feeds or search metadata",
  "sourceUrl": "https://medium.com/feed/towards-data-science",
  "sourceWebsite": "https://medium.com/",
  "mode": "rss",
  "sourceProvenance": "medium_public_rss_publications_v1",
  "requestedKeywords": 0,
  "requestedPublicationFeeds": 2,
  "requestedItems": 2,
  "itemsStored": 2,
  "publicationRecords": 2,
  "diagnosticsStored": 0,
  "diagnosticCount": 0,
  "totalDatasetItems": 2,
  "requests": 4,
  "requestCount": 4,
  "pageRequests": 2,
  "graphqlRequests": 0,
  "feedRequests": 2,
  "successfulFeedRequests": 2,
  "failedFeedRequests": 0,
  "successfulRequests": 4,
  "failedRequests": 0,
  "failedRequestCount": 0,
  "totalRequestAttempts": 4,
  "httpStatuses": {
    "200": 2
  },
  "navigationState": "handled",
  "filters": {
    "mode": "rss",
    "publicationFeedUrls": [
      {
        "url": "https://medium.com/feed/towards-data-science",
        "type": "publication",
        "label": "towards-data-science",
        "slug": "towards-data-science"
      },
      {
        "url": "https://medium.com/feed/the-mission",
        "type": "publication",
        "label": "the-mission",
        "slug": "the-mission"
      }
    ],
    "maxItems": 2,
    "timeoutSecs": 60,
    "requestRetries": 1,
    "requestDelayMs": 500,
    "maxGraphqlResponseBytes": 500000
  },
  "generatedBy": "OpenAI Codex with GPT-6",
  "proxyConfigured": false,
  "fingerprintApplied": false,
  "sourceTransport": "direct",
  "startedAt": "2026-10-25T21:13:29.788Z",
  "completedAt": "2026-10-25T21:13:33.577Z",
  "durationMs": 3789,
  "datasetWriteFailureCount": 0,
  "optionalFailureCount": 1,
  "dataStatus": "PARTIAL",
  "runStatus": "SUCCEEDED"
}
```

### Coverage and limitations

The saved run supplied two publication feeds and returned two rows. Both RSS requests succeeded, but `optionalFailureCount: 1` and `dataStatus: "PARTIAL"` show that a non-fatal operation still failed; the dataset rows remain valid. The summary does not include an `errors` array, so the exact optional failure is only available in the run log.

RSS gives a publication name, description, canonical Medium URL, and feed metadata. It does not reliably expose custom domains, avatars, short descriptions, or GraphQL details, so those fields are frequently absent. In feed mode `publicationId` is a deterministic ID derived from the validated feed URL, not a global Medium publication ID. Keyword search is best-effort and cannot discover every publication; use known feed slugs for repeatable coverage. The Actor does not open protected publication pages or infer missing metadata.

### Usage and support

Cost depends on Apify compute, the number of publication feeds or search phrases, page/GraphQL requests, retries, and optional proxy use. Start with the two known feeds and a low item limit, inspect `OUTPUT_SUMMARY`, then add slugs. See the Actor's Pricing tab for current rates.

Use the [Actor Issues page](https://apify.com/w3crawler/medium-publications-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-publications-search-scraper/changelog.md

# Actor input Schema

## `publicationFeedUrls` (type: `array`):

Optional explicit Medium publication RSS feeds. This is the reliable public mode and takes precedence over keyword search. Use https://medium.com/feed/publication-slug for known publication slugs; it does not discover every publication globally.

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

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

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

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

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

Maximum total unique publication records across all feeds or phrases.

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

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

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

Retries for page navigation and transient GraphQL or RSS errors.

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

Delay between bounded source requests when multiple feeds or keywords are supplied.

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

Maximum anonymous GraphQL or RSS response size accepted.

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

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

## Actor input object example

```json
{
  "keyword": "technology",
  "keywords": [
    "technology",
    "design"
  ],
  "maxItems": 20,
  "timeoutSecs": 120,
  "requestRetries": 2,
  "requestDelayMs": 500,
  "maxGraphqlResponseBytes": 1000000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Structured public publication RSS records and truthful access diagnostics.

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

Machine-readable feed/search, publication, request, diagnostic, and status counts.

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

Compatibility alias of OUTPUT_SUMMARY.

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

Source website, RSS/anonymous GraphQL mode, browser mode, transport, and access policy.

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

Bounded field-cleaning, truncation, depth, and deduplication counters applied before dataset storage.

# 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": "technology"
};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/medium-publications-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": "technology" }

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

```

## MCP server setup

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