# Medium Public User Search (`w3crawler/medium-user-search-scraper`) Actor

Bounded public Medium people search through the anonymous GraphQL endpoint with stable records and truthful diagnostics.

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

## Pricing

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

Search Medium's public people index for one or more phrases and return matching public user profiles. Each saved row includes the user ID, display name, username, bio, profile and subdomain URLs, subdomain flag, relationship rank, search phrase, and source URLs. The Actor uses anonymous search metadata and does not visit protected profiles or require login.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/medium-user-search-scraper) and select **Try for free**, or open the **Input** tab.
2. Enter a `keyword` or a `keywords` list.
3. Keep `maxItems` small; the limit is divided across phrases.
4. Start the Actor, open the dataset, and export the rows as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT`) to check access and request status.

### Input

All fields are optional except that at least one search phrase should be supplied. Unsupported fields and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `keyword` | string | Optional | Not supplied | One search phrase, used when `keywords` is absent. |
| `keywords` | string array | Optional | Not supplied | Multiple phrases up to 20 items; replaces `keyword` and divides `maxItems` across searches. |
| `maxItems` | integer | Optional | `20` | Maximum unique public user records, 1–200. |
| `timeoutSecs` | integer | Optional | `120` | Page-navigation and per-GraphQL-request timeout, 30–180 seconds. |
| `requestRetries` | integer | Optional | `2` | Retries for failed search-page navigation, 0–3. |
| `requestDelayMs` | integer | Optional | `500` | Delay between multiple keyword searches, 250–5,000 ms. |
| `maxGraphqlResponseBytes` | integer | Optional | `1000000` | Maximum anonymous GraphQL response size, 10,000–2,000,000 bytes. |

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

```json
{
  "keyword": "machine learning",
  "maxItems": 3,
  "timeoutSecs": 60,
  "requestRetries": 1,
  "requestDelayMs": 250,
  "maxGraphqlResponseBytes": 1000000
}
```

The Actor uses a standard headless browser and anonymous Medium search responses. It does not accept a proxy configuration, log in, or open protected profiles.

### Output

The dataset contains one row per unique public user. Search metadata supplies identity, bio, and URL fields; fields Medium does not expose are omitted rather than inferred.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordId` | string | Always | Stable identifier for the user record. |
| `recordType` | string | Always | Record type; `mediumUserSearchResult`. |
| `source` | string | Always | Source label; `Medium anonymous public people search`. |
| `provenance` | string | Always | Extraction provenance; `medium_public_reader_people_v1` in the saved run. |
| `resultRank` | integer | Always | One-based position in the search result. |
| `userId` | string | Always | Medium user identifier. |
| `displayName` | string | Always | Display name. |
| `username` | string | Always | Username. |
| `userBio` | string | Always | Public bio. |
| `bioCharacterCount` | integer | Always | Bio character count. |
| `bioWordCount` | integer | Always | Bio word count. |
| `imageId` | string | When published | Avatar image identifier when supplied. |
| `avatarUrl192` | string | When published | 192-pixel avatar URL when supplied. |
| `avatarUrl512` | string | When published | 512-pixel avatar URL when supplied. |
| `profileUrl` | string | Always | Canonical Medium profile URL. |
| `subdomainUrl` | string | When published | Medium subdomain URL; present for two of three saved rows. |
| `isMember` | boolean | When published | Medium membership flag when supplied. |
| `memberSince` | string | When published | Membership date when supplied. |
| `hasSubdomain` | boolean | Always | Whether the user has a Medium subdomain. |
| `isSuspended` | boolean | When published | Suspension flag when supplied. |
| `isWriterProgramEnrolled` | boolean | When published | Writer-program flag when supplied. |
| `followerCount` | number | When published | Follower count when supplied. |
| `followingCount` | number | When published | Following count when supplied. |
| `searchKeyword` | string | Always | Phrase that produced the row. |
| `sourceUrl` | string | Always | People-search URL used for the request context (`/search/users`). |
| `sourcePageUrl` | string | Always | Public people-search page associated with the request. |
| `sourceGraphqlUrl` | string | When published | Anonymous GraphQL endpoint when used. |
| `scrapedAt` | string | Always | Time the row was saved, in ISO UTC. |
| `url` | string | When published | Compatibility alias of `profileUrl` 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 | When published | Transport label when supplied. |
| `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 | When published | Whether a proxy was configured when supplied. |
| `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 | When published | Extraction method when supplied. |
| `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-24 run.

```json
{
  "recordType": "mediumUserSearchResult",
  "recordId": "medium_user_e69353303bc98b038d0a",
  "source": "Medium anonymous public people search",
  "provenance": "medium_public_reader_people_v1",
  "resultRank": 1,
  "userId": "pyqml",
  "displayName": "Frank Zickert | Quantum Machine Learning",
  "username": "pyqml",
  "userBio": "You're interested in quantum computing and machine learning. But you don't know how to get started? Let me help",
  "bioCharacterCount": 111,
  "bioWordCount": 19,
  "profileUrl": "https://medium.com/@pyqml",
  "subdomainUrl": "https://pyqml.medium.com",
  "hasSubdomain": true,
  "searchKeyword": "machine learning",
  "sourceUrl": "https://medium.com/search/posts?q=machine%20learning",
  "sourcePageUrl": "https://medium.com/search/posts?q=machine%20learning",
  "scrapedAt": "2026-10-24T15:55:10.946Z"
}
```

### Run summary

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

| Field | Meaning |
| --- | --- |
| `recordType` | Summary type, `run-summary`. |
| `status` | Actor outcome: `SUCCEEDED` or `FAILED`. |
| `actorStatus` | Actor-level status. |
| `found` | Whether users were found. |
| `dataAvailable` | Whether rows were saved. |
| `source` | Source label. |
| `provenance` | Extraction provenance. |
| `accessPolicy` | Access boundary used for the run. |
| `requestedKeywords` | Search phrases requested. |
| `requestedItems` | Requested limit. |
| `itemsStored` | Rows written. |
| `userRecords` | User rows produced. |
| `diagnosticsStored` | Diagnostic entries written. |
| `totalDatasetItems` | Total dataset count. |
| `requests` | Requests made. |
| `successfulRequests` | Successful requests. |
| `failedRequests` | Failed requests. |
| `failedRequestCount` | Failed request count. |
| `totalRequestAttempts` | Attempts including retries. |
| `requestUrls` | URLs requested. |
| `httpStatuses` | HTTP status counts. |
| `failedUrls` | Failed URLs. |
| `blockedReasons` | Bounded block or challenge reasons. |
| `errors` | Bounded error entries. |
| `filters` | Effective input values. |
| `generatedBy` | Generator metadata. |
| `completedAt` | Completion time in ISO UTC. |
| `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` | User rows were saved without an access or extraction problem. |
| `SUCCEEDED` | `PARTIAL` | Some rows were saved, but a search request failed or was blocked. |
| `SUCCEEDED` | `NO_RESULTS` | The search completed but returned no matching users. |
| `FAILED` | `FAILED` | A fatal error prevented any usable row from being saved. |

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

```json
{
  "recordType": "run-summary",
  "status": "SUCCEEDED",
  "actorStatus": "SUCCEEDED",
  "found": true,
  "dataAvailable": true,
  "source": "Medium anonymous public people search",
  "provenance": "medium_anonymous_graphql_people_v1",
  "accessPolicy": "Public Medium search metadata only; no protected-profile navigation, login, proxy, CAPTCHA solving, or access-control bypass.",
  "requestedKeywords": 1,
  "requestedItems": 3,
  "itemsStored": 3,
  "userRecords": 3,
  "diagnosticsStored": 0,
  "totalDatasetItems": 3,
  "requests": 2,
  "successfulRequests": 1,
  "failedRequests": 1,
  "failedRequestCount": 0,
  "totalRequestAttempts": 2,
  "requestUrls": [
    "https://medium.com/search/posts?q=machine%20learning",
    "https://medium.com/_/graphql",
    "https://r.jina.ai/https://medium.com/search/users?q=machine%20learning"
  ],
  "httpStatuses": {
    "403": 1
  },
  "failedUrls": [],
  "blockedReasons": [],
  "errors": [],
  "filters": {
    "keyword": "machine learning",
    "keywords": ["machine learning"],
    "maxItems": 3,
    "timeoutSecs": 60,
    "requestRetries": 1,
    "requestDelayMs": 250,
    "maxGraphqlResponseBytes": 1000000
  },
  "generatedBy": "OpenAI Codex with GPT-6",
  "completedAt": "2026-10-24T15:55:11.592Z",
  "datasetWriteFailureCount": 0,
  "optionalFailureCount": 0,
  "dataStatus": "PARTIAL",
  "runStatus": "SUCCEEDED"
}
```

### Coverage and limitations

The saved run searched `machine learning`, saved three users, and reports `PARTIAL`: one of two request attempts returned HTTP 403, while the search still produced rows. The summary's `requestUrls` includes both `/search/posts` and a `r.jina.ai` fallback URL, while `sourceUrl` on each row records the search URL used for that row's context. That saved run predates a navigation fix: current code opens Medium's **people**-search page (`/search/users?q=`) instead of the posts-search page, and the public-reader fallback targets the same people-search surface. The JSON examples above are the historical saved fixture and are not rewritten.

Medium people search is an anonymous, best-effort index. It may challenge a request, omit profile fields, or return different users over time. The saved rows include only identity, bio, profile/subdomain URLs, subdomain flag, and search context; avatar URLs, membership flags, suspension status, writer-program status, and follower/following counts were not present. The Actor does not visit protected profiles, infer missing counts, or guarantee complete search coverage.

### Usage and support

Browser/requests compute, retries, and the number of phrases drive cost. Start with one phrase and `maxItems: 3`–`10`, inspect `httpStatuses` and `dataStatus`, then scale. See the Actor's Pricing tab for current rates.

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

# Actor input Schema

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

One search phrase. Used when keywords is not supplied.

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

Optional list of search phrases. When supplied, it replaces keyword and maxItems is divided fairly across searches.

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

Maximum total unique public user records across all phrases.

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

Bound for page navigation and each in-page GraphQL request.

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

Retries for failed Medium search-page navigation.

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

Delay between multiple keyword searches in the same browser session.

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

Maximum anonymous GraphQL response size accepted.

## Actor input object example

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

# Actor output Schema

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

Structured public people-search records and truthful diagnostics.

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

Run status and counters stored by the Actor.

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

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/medium-user-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-user-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-user-search-scraper --silent --output-dataset

```

## MCP server setup

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