# Medium Articles RSS Scraper (`w3crawler/medium-articles-scraper`) Actor

Collects public Medium article metadata from bounded RSS tag and author feeds. Records include article identity, author and publication details, RSS excerpt content, images, links, tags, feed provenance, and truthful diagnostics.

- **URL**: https://apify.com/w3crawler/medium-articles-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 Articles RSS Scraper

Collect public Medium article metadata from topic searches, tag feeds, or explicit Medium RSS feeds. Each saved row includes article identity and URL, author and publication names, tags, timestamps, RSS excerpt content, images, links, and feed provenance. This is an RSS metadata collector: it does not read full article bodies or invent engagement metrics.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/medium-articles-scraper) and select **Try for free**, or open the **Input** tab.
2. Supply a `query`, one or more `queries`, or explicit `feedUrls`. With no targets, the Actor has nothing to request.
3. Keep `maxItems` and `maxFeedsPerQuery` 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_SUMMARY`) to inspect feed and write status.

### Input

All fields are optional, but at least one target (`query`, `queries`, `feedUrls`, or a feed alias) should be supplied. `feedUrls` takes precedence over topic search and aliases. Unsupported fields and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `query` | string | Optional | Not supplied | Topic phrase used to build candidate public Medium tag feeds. |
| `queries` | string array | Optional | Not supplied | Up to 20 topic phrases; `maxItems` is divided across them. |
| `feedUrls` | string array | Optional | Not supplied | Up to 50 public Medium `/feed` URLs for a tag, author, publication, or custom feed. Takes precedence over aliases and search. |
| `tag` | string | Optional | Not supplied | Compatibility alias that builds `/feed/tag/<tag>`. |
| `author` | string | Optional | Not supplied | Compatibility alias that builds `/feed/@<author>`. |
| `publication` | string | Optional | Not supplied | Compatibility alias that builds `/feed/<publication>`. |
| `username` | string | Optional | Not supplied | Compatibility alias for `author`. |
| `usernames` | string array | Optional | Not supplied | Compatibility aliases; only the first username is used for an author feed. |
| `mode` | string enum | Optional | `search` | Discovery label stored on rows: `search` expands the topic into candidate tag feeds; `tag` uses the same feed builder. |
| `maxItems` | integer | Optional | `50` | Maximum unique article records across all feeds, 1–500. |
| `maxFeedsPerQuery` | integer | Optional | `5` | Maximum candidate tag feeds requested per topic, 1–25. |
| `timeoutMs` | integer | Optional | `30000` | Per-feed request timeout, 1,000–120,000 ms. |
| `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 errors, 0–3. |

Default input:

```json
{
  "mode": "search",
  "maxItems": 50,
  "maxFeedsPerQuery": 5,
  "timeoutMs": 30000,
  "requestDelayMs": 500,
  "maxResponseBytes": 5000000,
  "retries": 1
}
```

The Actor uses direct HTTPS requests and Cheerio parsing. It does not require a browser, and it does not accept proxy settings.

### Output

The dataset contains one row per unique article across the selected feeds. Excerpt fields come from the RSS item and are labeled as excerpt content. Fields that are not supplied by RSS are omitted rather than inferred.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordId` | string | Always | Stable identifier derived from 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_articles_v1` in the saved run. |
| `articleRank` | integer | Always | One-based position within the selected feed. |
| `articleId` | string | Always | Medium post identifier. |
| `articleTitle` | string | Always | Article title. |
| `articleUrl` | string | Always | Article URL from the RSS item. |
| `articleDomain` | string | Always | Host of the article URL. |
| `rssGuid` | string | Always | RSS GUID. |
| `authorName` | string | Always | Author display name. |
| `authorHandle` | string | Always | Author handle as exposed by the item. |
| `authorProfileUrl` | string | Always | Author profile URL. |
| `authorAvatarUrl` | string | When published | Author avatar URL when the feed supplies one. |
| `publicationName` | string | Always | Publication or feed display name. |
| `publicationSlug` | string | When published | Publication slug when present. |
| `publicationUrl` | string | When published | Publication site URL when present. |
| `summary` | string | Always | RSS summary text. |
| `contentHtml` | string | Always | Bounded RSS content HTML. |
| `contentText` | string | Always | Plain-text form of the RSS content. |
| `contentExcerpt` | string | Always | Canonical RSS excerpt; not full article content. |
| `contentCharacterCount` | integer | Always | Excerpt character count. |
| `contentWordCount` | integer | Always | Excerpt word count. |
| `estimatedReadMinutes` | integer | When published | Full-article estimate when a source supplies one; not emitted for RSS excerpts in the saved run. |
| `paragraphCount` | integer | Always | Paragraphs counted in the excerpt. |
| `headingCount` | integer | Always | Headings counted in the excerpt. |
| `headings` | string array | When published | Heading texts when a source supplies structured headings. |
| `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. |
| `imageUrls` | string array | When published | Image URLs found in the excerpt. |
| `imageCount` | integer | Always | Number of unique images. |
| `contentLinks` | string array | Always | Links found in the excerpt. |
| `contentLinkCount` | integer | Always | Number of content links. |
| `externalLinkCount` | integer | Always | Content links outside the article domain. |
| `tags` | string array | Always | Tag slugs from RSS categories. |
| `tagCount` | integer | Always | Number of tags. |
| `publishedAt` | string | Always | Publication time in ISO UTC. |
| `updatedAt` | string | Always | Update time in ISO UTC. |
| `feedTitle` | string | Always | RSS channel title. |
| `feedDescription` | string | Always | RSS channel description. |
| `feedUrl` | string | Always | Feed URL requested. |
| `feedPageUrl` | string | Always | Corresponding Medium page. |
| `feedTag` | string | Always | Tag represented by the feed. |
| `feedLastBuildAt` | string | Always | Channel build time in ISO UTC. |
| `sourceQuery` | string | Always | Topic or feed hint that selected this feed. |
| `sourceUrl` | string | Always | Exact feed URL used as the source. |
| `scrapedAt` | string | Always | Time the row was saved, in ISO UTC. |
| `url` | string | When published | Compatibility alias of `articleUrl` when an operational payload supplies it; absent in the saved run. |
| `contentCompleteness` | string | Always | Content marker; `rss_excerpt` in the saved run. |
| `estimatedExcerptReadMinutes` | integer | Always | Read-time estimate for the excerpt only. |
| `feedImageUrl` | string | Always | Channel image URL. |
| `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 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 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 run. `contentHtml` is shortened and some arrays are omitted for readability.

```json
{
  "recordId": "medium_article_3e0439123d67a3f34aec454d",
  "recordType": "mediumArticle",
  "source": "Medium public article RSS feeds",
  "provenance": "medium_public_rss_articles_v1",
  "articleRank": 1,
  "articleId": "0ac7f3bb604b",
  "articleTitle": "How to Run LLM-as-a-Judge Cheaply Without Biasing Results",
  "articleUrl": "https://kevinjztan.medium.com/how-to-run-llm-as-a-judge-cheaply-without-biasing-results-0ac7f3bb604b",
  "articleDomain": "kevinjztan.medium.com",
  "rssGuid": "https://medium.com/p/0ac7f3bb604b",
  "authorName": "Kevin Tan",
  "authorHandle": "kevinjztan",
  "authorProfileUrl": "https://medium.com/@kevinjztan",
  "publicationName": "Medium",
  "feedImageUrl": "https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png",
  "tags": ["software-engineering", "llm", "machine-learning", "artificial-intelligence", "ai-agent"],
  "tagCount": 5,
  "publishedAt": "2026-10-25T21:06:02.000Z",
  "updatedAt": "2026-10-25T21:06:02.221Z",
  "summary": "Two shortcuts cut my judge calls. One quietly flattered the results.",
  "contentHtml": "<div class=\"medium-feed-item\"><p class=\"medium-feed-image\"><a href=\"https://kevinjztan.medium.com/how-to-run-llm-as-a-judge-cheaply-without-biasing-results-0ac7f3bb604b?source=rss------artificial_intelligence-5\"><img src=\"https://cdn-images-1.medium.com/max/2600/1*qJ80GmCZJoB4O9DNW-Hojw.jpeg\" width=\"5664\"></a></p><p class=\"medium-feed-snippet\">Two shortcuts cut my judge calls. One quietly flattered the results.</p>…",
  "contentText": "Two shortcuts cut my judge calls. One quietly flattered the results.",
  "contentExcerpt": "Two shortcuts cut my judge calls. One quietly flattered the results.",
  "contentCharacterCount": 68,
  "contentWordCount": 11,
  "contentCompleteness": "rss_excerpt",
  "estimatedExcerptReadMinutes": 1,
  "paragraphCount": 3,
  "headingCount": 0,
  "listItemCount": 0,
  "blockquoteCount": 0,
  "codeBlockCount": 0,
  "imageCount": 1,
  "contentLinkCount": 1,
  "externalLinkCount": 0,
  "feedTitle": "Artificial Intelligence on Medium",
  "feedDescription": "Latest stories tagged with Artificial Intelligence on Medium",
  "feedUrl": "https://medium.com/feed/tag/artificial-intelligence",
  "feedPageUrl": "https://medium.com/tag/artificial-intelligence/latest",
  "feedTag": "artificial-intelligence",
  "feedLastBuildAt": "2026-10-25T21:08:41.000Z",
  "sourceQuery": "artificial intelligence",
  "sourceUrl": "https://medium.com/feed/tag/artificial-intelligence",
  "scrapedAt": "2026-10-25T21:11:09.421Z"
}
```

### 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` | Feed access outcome. |
| `found` | Whether any 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` | Target description. |
| `sourceUrl` | Primary feed URL. |
| `sourceWebsite` | Medium website URL. |
| `startedAt` | Start time in ISO UTC. |
| `finishedAt` | Summary write time in ISO UTC. |
| `durationMs` | Run duration in milliseconds. |
| `itemCount` | Items saved. |
| `articleRecords` | Article rows produced. |
| `itemsStored` | Items written to the dataset. |
| `totalDatasetItems` | Total dataset count reported by the Actor. |
| `diagnosticsStored` | Diagnostic entries written. |
| `diagnosticCount` | Operational issues recorded. |
| `feedPagesVisited` | Feed pages requested. |
| `requestCount` | HTTP requests made. |
| `requestsAttempted` | Total attempts. |
| `successfulRequests` | Successful requests. |
| `failedRequests` | Failed requests. |
| `failedRequestCount` | Failed request count. |
| `totalAttempts` | Attempts including retries. |
| `recordsParsed` | Feed items parsed. |
| `duplicateRecords` | Duplicate records removed. |
| `requestedQueries` | Topic count. |
| `requestedItems` | Requested limit. |
| `feedUrls` | Feeds used. |
| `visitedUrls` | URLs actually visited. |
| `filters` | Effective input values. |
| `generatedBy` | Generator metadata. |
| `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` | Articles were saved, but an optional write or later feed 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:

```json
{
  "recordId": "medium_articles_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_articles_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 Articles RSS Scraper",
  "actorSlug": "medium-articles-scraper",
  "targetHint": "Public Medium article RSS feeds",
  "sourceUrl": "https://medium.com/feed/tag/artificial-intelligence",
  "sourceWebsite": "https://medium.com/",
  "startedAt": "2026-10-25T21:11:09.054Z",
  "finishedAt": "2026-10-25T21:11:10.324Z",
  "durationMs": 1270,
  "itemCount": 5,
  "articleRecords": 5,
  "itemsStored": 5,
  "totalDatasetItems": 5,
  "diagnosticsStored": 0,
  "diagnosticCount": 0,
  "feedPagesVisited": 2,
  "requestCount": 2,
  "requestsAttempted": 2,
  "successfulRequests": 2,
  "failedRequests": 0,
  "failedRequestCount": 0,
  "totalAttempts": 2,
  "recordsParsed": 5,
  "duplicateRecords": 0,
  "requestedQueries": 1,
  "requestedItems": 5,
  "feedUrls": [
    "https://medium.com/feed/tag/artificial-intelligence",
    "https://medium.com/feed/tag/artificial"
  ],
  "visitedUrls": [
    "https://medium.com/feed/tag/artificial-intelligence",
    "https://medium.com/feed/tag/artificial"
  ],
  "filters": {
    "query": "artificial intelligence",
    "queries": ["artificial intelligence"],
    "mode": "tag",
    "maxItems": 5,
    "maxFeedsPerQuery": 5,
    "timeoutMs": 30000,
    "requestDelayMs": 500,
    "maxResponseBytes": 5000000,
    "retries": 1
  },
  "generatedBy": "OpenAI Codex with GPT-6",
  "scrapedAt": "2026-10-25T21:11:10.324Z",
  "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 used `query: "artificial intelligence"` in `tag` mode and requested five rows. Two candidate tag feeds were read, five unique articles were saved, and the summary reports `PARTIAL` because the optional compatibility `OUTPUT` key failed schema validation; the dataset and `OUTPUT_SUMMARY` were written normally.

Topic search is a feed-discovery convenience, not a complete Medium search index. The expanded feeds are derived from the phrase, so results vary with Medium's tag pages and can overlap. `feedUrls` is the deterministic option for a known tag, author, publication, or custom feed. RSS supplies item content that is often an excerpt rather than the full article body, so `contentCompleteness` is `rss_excerpt` in the saved run and `estimatedReadMinutes`, `headings`, `publicationSlug`, `publicationUrl`, and engagement fields may be absent. The Actor does not use a browser or proxy, navigate paywalled pages, or recover items that Medium removes from a feed.

### Usage and support

Cost is driven by Apify compute, the number of candidate feeds per query, retries, and the item limit. Start with one query and a low `maxFeedsPerQuery`; for repeatable collection, supply explicit `feedUrls` instead of relying on expansion. See the Actor's Pricing tab for current rates.

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

# Actor input Schema

## `query` (type: `string`):

Topic phrase used to build candidate public Medium tag feeds.

## `queries` (type: `array`):

Optional list of topic phrases. When supplied, the maximum is divided across topics.

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

Optional public Medium /feed URLs for a tag, author, publication, or custom feed.

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

Compatibility alias that builds a public /feed/tag/<tag> feed.

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

Compatibility alias that builds a public /feed/@<author> feed.

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

Compatibility alias that builds a public /feed/<publication> feed.

## `username` (type: `string`):

Compatibility alias for author.

## `usernames` (type: `array`):

Compatibility aliases; the first username is used for an author feed.

## `mode` (type: `string`):

Stored on records; search expands the phrase into candidate tag feeds and tag keeps the same feed builder.

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

Maximum number of unique public article records across all selected feeds.

## `maxFeedsPerQuery` (type: `integer`):

Maximum candidate tag feeds requested for each topic query.

## `timeoutMs` (type: `integer`):

Maximum time allowed for each public RSS request.

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

Delay between feed requests.

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

Maximum RSS response size accepted before the request is marked failed.

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

Retries for transient HTTP and network errors.

## Actor input object example

```json
{
  "query": "artificial intelligence",
  "mode": "search",
  "maxItems": 50,
  "maxFeedsPerQuery": 5,
  "timeoutMs": 30000,
  "requestDelayMs": 500,
  "maxResponseBytes": 5000000,
  "retries": 1
}
```

# Actor output Schema

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

Public Medium article metadata, RSS excerpts, and truthful access or parsing 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 = {
    "query": "artificial intelligence"
};

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

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

```

## MCP server setup

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