Medium Scraper: Articles & Authors

Tested medium scraper guide: open RSS feeds, tag JSON-LD, robots-allowed API paths, and where the Cloudflare wall stands. Every command ran 2026-10-29.

MMotherlode Lab12 min read
Magpie title card: Medium Scraper: Articles & Authors

Try to fetch a Medium article with curl in 2026 and you get a 403 from Cloudflare before the HTML even loads. I tested it today on the homepage, on tag pages, on author profiles, and on posts: every HTML path answered with the same 5,016-byte “Attention Required!” challenge page. Yet a medium scraper still has four working doors into this site: open RSS feeds, tag pages, a set of internal API paths that Medium’s robots.txt explicitly invites crawlers to read, and a 28,163-file sitemap index. The trick is knowing which paths answer, which ones pretend to, and which are dead.

Everything below ran on 2026-10-29 from a home connection using Magpie, a local CLI scraper (free, AGPL/commercial dual license). Sites change; re-test before you build on this.

Can you scrape Medium articles in 2026?

First, the wall map. Same afternoon, same IP, two clients: plain curl with a browser User-Agent, and Magpie’s static fetch, which impersonates a real browser’s TLS fingerprint.

Path curl + browser UA Magpie static Magpie + --render browser
medium.com/ (homepage) 403 challenge 37 words: the sign-up stub not needed
/tag/artificial-intelligence 403 challenge 551 words of story cards not needed
/tag/machine-learning 403 challenge 454 words not needed
/@author (profile) 403 challenge quality blocked (empty) quality blocked (empty)
/@author/post-slug (article) 403 challenge quality blocked (empty) quality blocked (empty)
/feed/@author, /feed/tag/<tag> 200, full RSS works not needed
/_/api/posts/{id}/responses 403 challenge 200, real JSON not needed

Three things fall out of that table. One: Cloudflare fronts every HTML path, and plain HTTP clients get nothing. Two: Magpie’s TLS impersonation passes the check on light paths (home, tags) but not on profile and article paths, and the headless browser does no better there. Three: the RSS feeds sit outside the challenge entirely, which makes them the only door that survives any client.

One more expectation to reset: the logged-out homepage is a 37-word sign-up stub. Medium moved “trending” behind the wall (robots.txt disallows /trending), so there is no anonymous front door to browse the site from. Tags and feeds are the browse.

The rules, in Medium’s own words

The User-agent: * block of medium.com/robots.txt reads like a negotiation, because it is one.

Directive Meaning for you
Disallow /m/, /me/, /@me Member-only app paths; nothing public there anyway
Disallow /*/edit, /media/, /p/*/share, /r/ Editor, media uploads, share redirects, link shortener
Disallow /trending The logged-out discovery page; crawl tags instead
Disallow /search?q= (all variants) Keyword search is off-limits to crawlers
Allow /_/api/users/*/meta Author metadata API, crawler-sanctioned
Allow /_/api/users/*/profile/stream Author post stream API, crawler-sanctioned
Allow /_/api/posts/*/responses (+2 more) Post responses/related API, crawler-sanctioned
No Crawl-delay Politeness is yours to enforce; I kept 2–3s

The robots.txt scraping guide covers directive mechanics; the interesting part is what Medium chose to allow.

Then the AI clause. Eight agents are banned site-wide: GPTBot, ClaudeBot, Bytespider, GoogleOther, Amazonbot, Applebot-Extended, FacebookBot, and meta-externalagent. Each gets a carve-out list of seven marketing pages (about, membership, partner-program and friends) it may still read. That is Medium telling you exactly which collector it is optimizing against.

Last line is the odd one: License: https://medium.com/license.xml, a non-standard directive pointing at a licensing manifest. The file itself 403’d for plain curl in my test, so treat the declaration as signal, not as a working endpoint. If you publish scraped Medium text anywhere, the license question is real; the legal explainer covers the general frame, and I am not a lawyer.

The medium rss feed is open

This is the door I would build on. No TLS tricks, no cookies, no impersonation: plain curl gets a 200 with the full XML.

$ curl -s "https://medium.com/feed/@crisvelasquez" -o author.xml
$ curl -s "https://medium.com/feed/tag/artificial-intelligence" -o tag.xml

Both returned 10 items on my run (16,010 and 16,992 bytes). Per item: title, link, pubDate, dc:creator, category tags, and a description containing the cover image plus a snippet. That is enough for monitoring and for building an index of an author’s or a tag’s latest posts.

Magpie’s zero-LLM RSS vertical parses both feed shapes:

$ magpie vertical "https://medium.com/feed/@crisvelasquez" --name rss

The record comes back with items[] carrying link, published, title, and summary. Two field notes. The RSS vertical drops dc:creator and category (by design; its parser keeps title/link/date/description only), so keep --name rss output for structure and go back to the raw XML when you need the author or tags. And the links arrive with a tracking suffix, ?source=rss-5d03660dcbe0------2, which contains the author’s user ID. Strip the query string, keep the ID: it is the key to an API path below.

More feed plumbing, including webhook-on-change setups, lives in the RSS feed monitor guide.

Tag pages: one HTML door still answers

The tag pages are the only HTML that answered a static fetch for me, 2 for 2 (Artificial Intelligence, Machine Learning). They do not answer for curl, so whatever client you use needs a modern TLS fingerprint. That is exactly the fragile kind of win I do not trust for production, but the data is good enough to take while it lasts.

The cleaned markdown is disappointing: about 500 words of author · time-ago · title · dek rows with zero links. Titles without URLs are a teaser. The payload hides in the page’s JSON-LD, which Magpie’s sidecar currently mangles (it returns the block’s key names as strings instead of the object; same failure class I hit on Eventbrite, and worth an upstream issue). Get the raw page and parse it yourself:

$ magpie scrape "https://medium.com/tag/machine-learning" --page-format raw --out tag.html
$ python3 - <<'EOF'
import json, re
html = open("tag.html", encoding="utf-8").read()
ld = re.search(r'application/ld\+json[^>]*>(.*?)</script>', html, re.S).group(1)
stories = json.loads(ld)["mainEntity"]      # 20 SocialMediaPosting records
for s in stories:
    print(s["url"], "|", s["headline"], "| free:", s["isAccessibleForFree"])
EOF

Twenty records per load, each with the story URL the markdown omits, plus headline, author (name, profile URL, handle), publish and modify dates, cover image, and two fields that make this worth the trouble. isAccessibleForFree says whether the story is member-only; on my Machine Learning run it split 13 free / 7 locked. And url occasionally points off-platform entirely: one record in my run carried a dev.to URL instead of a medium.com one, a cross-posted story sitting in Medium’s tag feed.

The internal API paths Medium allows crawlers to read

Here is where Medium’s robots.txt earns its keep. The Allow: lines name three usable endpoints, and Magpie’s TLS impersonation is enough to reach them where curl gets challenged. Two caveats apply to everything in this section: the responses arrive wrapped in Medium’s XSSI guard (])}while(1);</x> prefix), and when fetched with default Accept headers they come inside an HTML <pre> viewer, so strip both layers before parsing.

Reader responses, per post. The post ID is the hex suffix of the story URL (12 characters in my examples). Feed it to the endpoint the robots file explicitly allows:

$ magpie scrape "https://medium.com/_/api/posts/fce400518ceb/responses" \
    --page-format raw --out responses.html

The payload holds each response as a post-shaped record, 75+ fields apiece. The useful ones: the response text sits in title, virtuals.recommends carries the like count (3, 0, and 0 on my three-record test post), createdAt gives the timestamp, and flags like isLockedResponse mark moderation state. Author fields came back empty in my test (bare creatorId only), so plan on joining identities yourself.

Author metadata. Take the user ID your feed links leaked (5d03660dcbe0 for this author) and ask for meta:

$ magpie scrape "https://medium.com/_/api/users/5d03660dcbe0/meta" \
    --page-format raw --out author.html

Back comes numberOfPostsPublished: 62, a featuredPostId, and authorTags: the 16 tags this author writes in, each with the site-wide post count. That last number is a free dataset about Medium itself. The machine-learning tag reports 334,670 posts, data-science 311,753, python 262,300. Tag-size rankings, no scraping of tag pages required.

The third sanctioned path, /_/api/users/*/profile/stream, paginates an author’s posts; the robots file also allows responsesStream and related. I verified the two above and left the streaming variants at “exist and are allowed” rather than claim them tested.

Finding stories at scale: the sitemap index

Medium publishes a sitemap index at medium.com/sitemap/sitemap.xml, and it is enormous: 28,163 sub-sitemaps in my fetch (a 3.4 MB index), split across nine families: 10,247 post files, 5,199 user, 4,284 tag, 4,114 publication, 1,963 catalog, 1,962 list, 75 topic, 1 static-paths file, and 318 removed-content manifests. Post files are day-partitioned (posts-2024-05-27.xml) with lastmod dates per URL.

Do not point magpie map at this index; 28,163 fetches is not discovery, it is a denial-of-service against yourself. Parse the index with curl and a few lines of Python, pick the date ranges or families you need, fetch those sub-sitemaps directly, and you have a compliant URL stream for any enrichment job. This is the same pattern that worked on Goodreads, scaled up: let the site’s own sitemaps do the enumeration.

Watching a tag for new stories

Tag pages rotate constantly, which makes them a decent new-story tripwire. Magpie’s watch mode diffs the cleaned page on an interval and prints only the change:

$ magpie watch "https://medium.com/tag/machine-learning" --every 5m
changed=true old=59b8a96f... new=cf3f35b4...
- Şevki Dumankaya·17h ago DeepInfra'dan API Jetonu Nasıl Alınır
+ Crystina Amelya·2h ago ARIMA vs RNN, LSTM... Model Mana yang Paling Akurat...

That output is real: within one 30-second cycle of my test run, the page had already swapped a story. Add --webhook and each rotation POSTs to your endpoint. One honest warning: the --once cron mode silently stored nothing in my build (exit 0, zero rows in the snapshot store, twice), so run the loop or verify persistence on your version before trusting it. Watching feeds rather than pages is the sturdier design; the trade-offs are in the feed monitor guide.

Article bodies and the medium paywall

Now the part most people came for, and the part with the shortest answer: I could not get article bodies anonymously, through any route.

Static fetch: blocked. Browser render: blocked. Chrome TLS profile: blocked. The Cloudflare challenge on /@author/... paths did not clear once for me. The routes that remain, honestly priced:

  • Your own logged-in browser session. Magpie’s profile save persists cookies per site, and a logged-in fetch of an article you can read will return the body. This works, and it violates Medium’s terms if you automate it at scale, so the ceiling is your own reading volume, not a pipeline.
  • Third-party mirrors. Several commercial scrapers route through Freedium, a reader mirror for paywalled posts. freedium.cfd never answered a single request from my connection today (the connection failed before HTTP, twice), so I cannot recommend building on it.
  • The Wayback Machine. Coverage is real but uneven: the tag page and big publication fronts (medium.com/swlh was archived 2026-10-23) are there; three out of three long-tail author posts I checked had no snapshot at all.
  • The feed snippet. Each feed item’s description carries the cover image and opening snippet. For “monitor what authors I follow publish”, that is usually the actual requirement.

The isAccessibleForFree flag from tag JSON-LD tells you which stories are behind the paywall before you spend a request. The paywall is Medium’s revenue; my position is to respect it and model around it, not to route around it.

What the Medium API can and cannot do

The medium api that still exists is a publishing API: integration tokens let you post and list your own stories, and nothing in it reads other people’s content. The GraphQL endpoint the site itself uses is session-gated and undocumented. So every “Medium API” product you find for sale is a scraping service with extra steps, usually a Cloudflare-solving proxy or a Freedium dependency. Pricing accordingly.

If your actual goal is a corpus of Medium writing for research, scraping the live site is the hard way. And for newsletter-style writing in general, Substack is the friendlier cousin target; the Substack scraper guide covers it separately.

Which medium scraper door for which job

Goal Door that worked today
Monitor an author or tag for new posts The medium rss feed, in any reader or via watch mode
See what a topic is surfacing right now Tag page JSON-LD: 20 stories per load, paywall-flagged, with URLs
Count engagement on one post The responses API (virtuals.recommends, timestamps)
Profile an author’s beat and its size The users meta API: authorTags with site-wide post counts
Build a bulk URL list for enrichment The sitemap index, parsed by family and date
Article text at scale Nothing anonymous works; logged-in session at reading volume, or Wayback for popular posts

If I were building on Medium tomorrow, I would start from the feeds and treat the rest as enrichment: tags for discovery, the two API paths for engagement and author stats, sitemaps for scale. Bodies are the one thing I would not automate, because the only reliable route is a logged-in session and the terms say no.

More site-by-site guides like this one live in the scrapers for popular websites hub.

FAQ

Is scraping Medium legal? Scraping public pages is generally lawful in the US after hiQ v. LinkedIn, but Medium’s terms prohibit it, AI-training crawlers are banned in robots.txt by name, and member-only article text is the product they sell. The legal guide is the primer; I am not a lawyer.

Does Medium have an API for reading articles? No. The official REST API publishes to your own account and lists your own stories only. The site’s internal GraphQL needs your logged-in session. The robots-sanctioned /_/api/ paths give responses and author metadata, not article bodies.

How do I monitor an author’s new posts? Subscribe to their feed URL (medium.com/feed/@username) with watch mode or any RSS reader. Ten latest items, no challenge, plain HTTP.

Can a medium scraper get member-only articles? Not anonymously. The wall clears only for logged-in sessions, and automating those at scale breaks Medium’s terms. Tag JSON-LD marks which stories are locked so you can exclude them cheaply.

Why does Medium block scrapers but leave feeds open? Feeds are infrastructure Medium chose to keep open, and robots.txt proves the rest is deliberate: search and trending are disallowed while three metadata API paths are explicitly allowed. The wall is selective, not absolute.

Stop renting credits.

One flat price, your machine, your keys.

Download free for Windows, macOS and Linux

Windows · macOS · Linux $49/mo flat, cancel anytime