# Medium Article Scraper (`w3crawler/medium-article-scraper`) Actor

Extract public Medium article metadata and bounded content previews from RSS feeds by tag, author, publication, or supplied feed URL. Records include explicit provenance and truthful diagnostics.

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

## Pricing

from $2.99 / 1,000 articles

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 Article Scraper

Collect public Medium article metadata from RSS tag, author, publication, or custom feed URLs. Each saved row carries stable article identity, title, canonical URL, author and publication names, tags, timestamps, a bounded RSS excerpt, images, and feed provenance. RSS content is labeled as an excerpt, so the Actor does not claim to have read the full article.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/medium-article-scraper) and select **Try for free**, or open the **Input** tab.
2. Leave `feedUrls` empty to build one feed from `tag`, `author`, or `publication`, or supply up to 10 public Medium feed URLs.
3. Keep `maxItems` small and leave `includeContent` enabled if you need excerpts and images.
4. Start the Actor, open the dataset, and export the records as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT_SUMMARY`) to check the feed outcome.

### Input

All fields are optional. When `feedUrls` is supplied, the `tag`, `author`, and `publication` aliases are ignored. Unsupported fields and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `feedUrls` | string array | Optional | Not supplied | Up to 10 public HTTPS Medium feed URLs, such as `https://medium.com/feed/tag/javascript`. Takes precedence over aliases. |
| `tag` | string | Optional | `javascript` | Medium tag used to build `https://medium.com/feed/tag/<tag>` when `feedUrls` is empty. |
| `author` | string | Optional | `""` | Medium author handle without `@`, used to build an author feed when `feedUrls` is empty. |
| `publication` | string | Optional | `""` | Medium publication slug, used to build a publication feed when `feedUrls` is empty. |
| `maxItems` | integer | Optional | `10` | Maximum unique article records across the selected feeds, 1–100. |
| `includeContent` | boolean | Optional | `true` | Include bounded RSS excerpt HTML/text, images, and links. |
| `timeoutSecs` | integer | Optional | `45` | Per-feed request timeout, 5–180 seconds. |
| `requestDelayMs` | integer | Optional | `500` | Delay between feed requests, 250–10,000 ms. |
| `maxResponseBytes` | integer | Optional | `5000000` | Maximum RSS response size accepted, 100,000–10,000,000 bytes. |
| `retries` | integer | Optional | `1` | Retries for transient HTTP and network failures, 0–3. |

Default input:

```json
{
  "tag": "javascript",
  "author": "",
  "publication": "",
  "maxItems": 10,
  "includeContent": true,
  "timeoutSecs": 45,
  "requestDelayMs": 500,
  "maxResponseBytes": 5000000,
  "retries": 1
}
```

Only one feed is built from the aliases: a non-empty `author` takes the author form, a non-empty `publication` takes the publication form, and otherwise `tag` is used. The Actor reads public Medium RSS over direct HTTPS and follows only safe Medium redirects.

### Output

The dataset contains one row per unique article. All rows are built from RSS item metadata; `contentHtml`, `contentText`, and `contentExcerpt` are excerpt-sized, not full article bodies. Fields the feed does not supply are omitted rather than guessed.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordId` | string | Always | Stable identifier derived from the article identity and feed context. |
| `recordType` | string | Always | Record type; `mediumArticle`. |
| `source` | string | Always | Source label; `Medium public article RSS feeds` in the saved run. |
| `provenance` | string | Always | Extraction provenance; `medium_public_rss_article_v1` in the saved run. |
| `articleRank` | integer | Always | One-based position of the item within the selected feed, starting at 1. |
| `articleId` | string | Always | Medium post identifier from the RSS item. |
| `articleTitle` | string | Always | Article title. |
| `title` | string | Always | Compatibility alias of `articleTitle`. |
| `articleUrl` | string | Always | Article URL from the RSS item. |
| `url` | string | Always | Compatibility alias of `articleUrl`. |
| `articleDomain` | string | Always | Host of the article URL. |
| `rssGuid` | string | Always | RSS GUID for the item. |
| `authorName` | string | Always | Author display name from the feed. |
| `author` | string | Always | Compatibility alias of `authorName`. |
| `authorHandle` | string | When published | Author handle when the feed item exposes one. |
| `authorProfileUrl` | string | When published | Author profile URL when present in the item. |
| `publicationName` | string | Always | Publication or feed name. |
| `publication` | string | Always | Compatibility alias of `publicationName`. |
| `publicationUrl` | string | When published | Publication site URL when the feed exposes one. |
| `summary` | string | Always | Compatibility alias of `description`. |
| `description` | string | Always | RSS item description. |
| `contentHtml` | string | Always | Bounded RSS content HTML, including the feed snippet wrapper. |
| `contentText` | string | Always | Plain-text form of the bounded RSS content. |
| `contentPreview` | string | Always | Compatibility alias of `contentExcerpt`. |
| `contentExcerpt` | string | Always | Canonical RSS excerpt text; explicitly not full article content. |
| `contentCharacterCount` | integer | Always | Character count of the excerpt. |
| `contentWordCount` | integer | Always | Word count of the excerpt. |
| `estimatedReadMinutes` | integer | When published | Full-article estimate when a source supplies one; not emitted for RSS excerpts in the saved run. |
| `paragraphCount` | integer | Always | Paragraph elements counted in the excerpt. |
| `headingCount` | integer | Always | Heading elements counted in the excerpt. |
| `listItemCount` | integer | Always | List items counted in the excerpt. |
| `blockquoteCount` | integer | Always | Blockquotes counted in the excerpt. |
| `codeBlockCount` | integer | Always | Code blocks counted in the excerpt. |
| `thumbnailUrl` | string | When published | First usable image URL when the excerpt contains one. |
| `thumbnailWidth` | number | When published | Width reported by the image tag when available. |
| `imageUrls` | string array | When published | Image URLs found in the excerpt. |
| `images` | string array | When published | Compatibility alias of `imageUrls`. |
| `imageCount` | integer | Always | Number of unique image URLs found. |
| `contentLinks` | string array | Always | Links found in the excerpt. |
| `contentLinkCount` | integer | Always | Number of content links. |
| `tags` | string array | Always | Tag slugs from the RSS categories. |
| `tagCount` | integer | Always | Number of tags. |
| `publishedAt` | string | Always | Publication time in ISO UTC. |
| `updatedAt` | string | Always | Feed update time in ISO UTC. |
| `feedTitle` | string | Always | RSS channel title. |
| `feedDescription` | string | Always | RSS channel description. |
| `feedUrl` | string | Always | Feed URL used for the request. |
| `feedPageUrl` | string | Always | Public Medium page corresponding to the feed. |
| `feedLastBuildAt` | string | Always | Channel build time in ISO UTC. |
| `sourceQuery` | string | Always | Input tag, author, publication, or feed hint that selected this feed. |
| `sourceUrl` | string | Always | Exact feed URL used as the source. |
| `includeContent` | boolean | Always | Whether excerpt content was requested. |
| `claps` | number | When published | Clap count when a source exposes it; RSS does not, so absent in the saved run. |
| `responses` | number | When published | Response count when a source exposes it; absent in the saved run. |
| `readTimeMinutes` | number | When published | Numeric read time when a source exposes it; absent in the saved run. |
| `elapsedMs` | number | When published | Request elapsed time when recorded. |
| `scrapedAt` | string | Always | Time the row was saved, in ISO UTC. |
| `contentCompleteness` | string | Always | Content marker; `rss_excerpt` in the saved run. |
| `estimatedExcerptReadMinutes` | integer | Always | Read-time estimate for the excerpt, not the full article. |
| `publicationSlug` | string | When published | Publication slug when the feed identifies one. |
| `actorName` | string | When published | Actor display name when an operational payload supplies it. |
| `actorSlug` | string | When published | Actor slug when an operational payload supplies it. |
| `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 | HTTP status for the source transport 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 HTTP status when supplied. |
| `requestAttempts` | integer | When published | Attempts for this record's 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 label 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-25 tag-feed run. `contentHtml` is shortened and a few array/count fields are omitted for readability.

```json
{
  "recordId": "medium_article_4eca33fc2c21230eff18a7ac",
  "recordType": "mediumArticle",
  "source": "Medium public article RSS feeds",
  "provenance": "medium_public_rss_article_v1",
  "articleRank": 1,
  "articleId": "fb51e9e50fcf",
  "articleTitle": "Keep CSV Row Data in the Browser Until Your App Saves It",
  "title": "Keep CSV Row Data in the Browser Until Your App Saves It",
  "articleUrl": "https://medium.com/codex/keep-csv-row-data-in-the-browser-until-your-app-saves-it-fb51e9e50fcf",
  "url": "https://medium.com/codex/keep-csv-row-data-in-the-browser-until-your-app-saves-it-fb51e9e50fcf",
  "articleDomain": "medium.com",
  "rssGuid": "https://medium.com/p/fb51e9e50fcf",
  "authorName": "mike",
  "author": "mike",
  "publicationName": "CodeX",
  "publication": "CodeX",
  "publicationSlug": "codex",
  "publicationUrl": "https://medium.com/codex",
  "summary": "Separate file preparation from backend delivery when adding CSV imports to a React application.",
  "description": "Separate file preparation from backend delivery when adding CSV imports to a React application.",
  "contentHtml": "<div class=\"medium-feed-item\"><p class=\"medium-feed-image\"><a href=\"https://medium.com/codex/keep-csv-row-data-in-the-browser-until-your-app-saves-it-fb51e9e50fcf?source=rss------javascript-5\"><img src=\"https://cdn-images-1.medium.com/max/1458/1*_yTf29mfitMgq_R44aQfKg.png\" width=\"1458\"></a></p><p class=\"medium-feed-snippet\">Separate file preparation from backend delivery when adding CSV imports to…",
  "contentText": "Separate file preparation from backend delivery when adding CSV imports to a React application.",
  "contentPreview": "Separate file preparation from backend delivery when adding CSV imports to a React application.",
  "contentExcerpt": "Separate file preparation from backend delivery when adding CSV imports to a React application.",
  "contentCharacterCount": 95,
  "contentWordCount": 14,
  "contentCompleteness": "rss_excerpt",
  "estimatedExcerptReadMinutes": 1,
  "paragraphCount": 3,
  "headingCount": 0,
  "listItemCount": 0,
  "blockquoteCount": 0,
  "codeBlockCount": 0,
  "tags": ["react", "software-architecture", "web-development", "data-privacy", "javascript"],
  "tagCount": 5,
  "publishedAt": "2026-10-25T20:46:02.000Z",
  "updatedAt": "2026-10-25T20:46:02.192Z",
  "feedTitle": "JavaScript on Medium",
  "feedDescription": "Latest stories tagged with JavaScript on Medium",
  "feedUrl": "https://medium.com/feed/tag/javascript",
  "feedPageUrl": "https://medium.com/tag/javascript/latest",
  "feedLastBuildAt": "2026-10-25T21:00:10.000Z",
  "sourceQuery": "javascript",
  "sourceUrl": "https://medium.com/feed/tag/javascript",
  "includeContent": true,
  "scrapedAt": "2026-10-25T21:11:50.723Z"
}
```

The example is shortened; the saved row also contains excerpt counts, image arrays, and content links. `claps`, `responses`, and `readTimeMinutes` are not present because Medium RSS does not publish engagement data.

### 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 record type, `run-summary`. |
| `status` | Actor outcome: `SUCCEEDED` or `FAILED`. |
| `actorStatus` | Actor-level status. |
| `accessStatus` | Feed access outcome; `COMPLETE` or `PARTIAL`. |
| `found` | Whether at least one article was discovered. |
| `dataAvailable` | Whether source-backed rows were saved. |
| `source` | Source label. |
| `provenance` | Extraction provenance. |
| `accessPolicy` | Access boundary used for the run. |
| `actorName` | Actor display name. |
| `actorSlug` | Actor slug. |
| `targetHint` | Human-readable target description. |
| `sourceUrl` | Feed URL used as the primary source. |
| `sourceWebsite` | Medium website URL. |
| `requestedFeeds` | Number of selected feeds. |
| `requestedItems` | Requested article limit. |
| `articles` | Articles discovered. |
| `articleRecords` | Article rows produced. |
| `diagnostics` | Diagnostic entries observed. |
| `diagnosticsStored` | Diagnostic entries written to storage. |
| `diagnosticCount` | Operational issues recorded. |
| `itemsStored` | Items written to the dataset. |
| `totalDatasetItems` | Total dataset count reported by the Actor. |
| `feedsVisited` | Feeds requested. |
| `requestCount` | HTTP requests made. |
| `requestsAttempted` | Total request attempts. |
| `successfulRequests` | Successful requests. |
| `failedRequests` | Failed requests. |
| `failedRequestCount` | Failed request count. |
| `totalAttempts` | Attempts including retries. |
| `recordsParsed` | Feed items parsed. |
| `duplicateRecords` | Duplicate articles removed. |
| `feedUrls` | Feed URLs used. |
| `visitedUrls` | URLs actually visited. |
| `filters` | Effective input values. |
| `startedAt` | Run start time in ISO UTC. |
| `finishedAt` | Summary write time in ISO UTC. |
| `completedAt` | Completion time in ISO UTC. |
| `durationMs` | Run duration in milliseconds. |
| `scrapedAt` | Summary timestamp in ISO UTC. |
| `datasetWriteFailureCount` | Dataset write failures. |
| `optionalFailureCount` | Non-fatal failures. |
| `dataStatus` | `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `runStatus` | Canonical run status. |
| `errors` | Bounded error entries. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Articles were saved without an extraction or write problem. |
| `SUCCEEDED` | `PARTIAL` | Some articles were saved, but another feed or an optional write failed. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | Feeds were read successfully but contained no matching articles. |
| `FAILED` | `FAILED` | A fatal error prevented any usable article from being saved. |

Example `OUTPUT_SUMMARY` from the saved 2026-10-25 run. An `actorRank` value in the stored summary is omitted because it does not describe article data.

```json
{
  "recordId": "medium_article_run_summary",
  "recordType": "run-summary",
  "status": "SUCCEEDED",
  "actorStatus": "SUCCEEDED",
  "accessStatus": "PARTIAL",
  "found": true,
  "dataAvailable": true,
  "source": "Medium public article RSS feeds",
  "provenance": "medium_public_rss_article_v1",
  "accessPolicy": "Public Medium RSS article metadata and excerpts only; no login, protected-content navigation, proxy, paywall, CAPTCHA solving, or access-control bypass.",
  "actorName": "Medium Public Article RSS Scraper",
  "actorSlug": "medium-article-scraper",
  "targetHint": "Public Medium article RSS feeds",
  "sourceUrl": "https://medium.com/feed/tag/javascript",
  "sourceWebsite": "https://medium.com/",
  "requestedFeeds": 1,
  "requestedItems": 3,
  "articles": 3,
  "articleRecords": 3,
  "diagnostics": 0,
  "diagnosticsStored": 0,
  "diagnosticCount": 0,
  "itemsStored": 3,
  "totalDatasetItems": 3,
  "feedsVisited": 1,
  "requestCount": 1,
  "requestsAttempted": 1,
  "successfulRequests": 1,
  "failedRequests": 0,
  "failedRequestCount": 0,
  "totalAttempts": 1,
  "recordsParsed": 3,
  "duplicateRecords": 0,
  "feedUrls": ["https://medium.com/feed/tag/javascript"],
  "visitedUrls": ["https://medium.com/feed/tag/javascript"],
  "filters": {
    "feeds": ["https://medium.com/feed/tag/javascript"],
    "tag": "javascript",
    "maxItems": 3,
    "includeContent": true,
    "timeoutSecs": 30,
    "requestDelayMs": 250,
    "maxResponseBytes": 1000000,
    "retries": 1
  },
  "startedAt": "2026-10-25T21:11:50.495Z",
  "finishedAt": "2026-10-25T21:11:50.774Z",
  "completedAt": "2026-10-25T21:11:50.774Z",
  "durationMs": 279,
  "scrapedAt": "2026-10-25T21:11:50.774Z",
  "datasetWriteFailureCount": 0,
  "optionalFailureCount": 1,
  "dataStatus": "PARTIAL",
  "runStatus": "SUCCEEDED",
  "errors": [
    {
      "code": "OUTPUT_WRITE_FAILED",
      "message": "Schema validation failed: must be equal to constant"
    }
  ]
}
```

### Coverage and limitations

The saved run read one tag feed with a limit of three articles and saved all three. The summary is `PARTIAL` because the optional compatibility `OUTPUT` key failed schema validation; the three dataset rows and `OUTPUT_SUMMARY` were still written. This is a summary-write issue, not missing article data.

Medium RSS publishes an excerpt and a link, not the full article body. That is why the Actor writes `contentCompleteness: "rss_excerpt"` and `estimatedExcerptReadMinutes`, while `estimatedReadMinutes`, `claps`, `responses`, and `readTimeMinutes` remain absent unless a different source actually supplies them. Feeds can be empty, rate-limited, redirected outside Medium, or malformed; those outcomes are recorded in the summary rather than converted into article rows. The Actor does not use a browser or proxy, does not navigate paywalled pages, and cannot recover items that Medium no longer includes in the feed.

### Usage and support

Cost depends on Apify compute and the number of feeds and retries, not on article count alone. Start with one feed and a small `maxItems`; increase the limit only after confirming the feed and excerpt quality. See the Actor's Pricing tab for current account rates.

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

# Actor input Schema

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

Public HTTPS medium.com/feed URLs. When supplied, aliases are ignored.

## `tag` (type: `string`):

Medium tag used to build a public tag feed when feedUrls is empty.

## `author` (type: `string`):

Medium author handle without @, used when feedUrls is empty.

## `publication` (type: `string`):

Medium publication slug, used when feedUrls is empty.

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

Maximum number of unique article records across the selected feeds.

## `includeContent` (type: `boolean`):

Include bounded RSS excerpt/content text, images, and links.

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

Maximum time allowed for each RSS request.

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

Delay between feed requests.

## `maxResponseBytes` (type: `integer`):

Maximum RSS response size accepted before a diagnostic is emitted.

## `retries` (type: `integer`):

Retries for transient HTTP and network failures.

## Actor input object example

```json
{
  "tag": "javascript",
  "author": "",
  "publication": "",
  "maxItems": 10,
  "includeContent": true,
  "timeoutSecs": 45,
  "requestDelayMs": 500,
  "maxResponseBytes": 5000000,
  "retries": 1
}
```

# Actor output Schema

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

Public Medium article metadata and truthful diagnostics.

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

Run status and counters stored by the Actor.

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

No description

## `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 = {};

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

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

```

## MCP server setup

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