10 endpoints

Medium Data API

Pull Medium post content, author profiles, publication data, tag feeds, and full-text search โ€” all via Anysite's structured REST API. No Medium account or API key required.

10 endpoints Post content & metadata Author & publication data REST, MCP & CLI

What Medium data unlocks

Medium hosts millions of articles across technology, business, self-improvement, design, and data science โ€” each with rich structured metadata: author, publication, clap count, response count, reading time, tags, and a paywall flag. Getting that data at scale โ€” across specific publications, authors, or tags โ€” without building scrapers that break on session rotation has historically been difficult. Anysite's Medium endpoints give you ten structured access points covering post retrieval, author discovery, publication intelligence, tag-based feeds, and keyword search. The full post text is available on the /posts endpoint โ€” useful for content pipelines, research tools, and editorial dashboards.

All Medium Endpoints

Ten endpoints across posts, publications, users, and tags. All return structured JSON via the Anysite REST API at /api/medium/....

EndpointWhat It Returns
/api/medium/posts Full post data by post ID or URL โ€” title, subtitle, full text, tags, images, clap count, response count, word count, reading time, paywall flag, author profile, and publication details.
/api/medium/posts/responses Responses (threaded comments) on a post โ€” each response with its own author, content, clap count, and timestamps.
/api/medium/posts/search Keyword search across Medium posts โ€” returns post cards with title, author, publication, clap count, reading time, tags, and paywall flag.
/api/medium/publications Publication profile by slug or URL โ€” name, description, tagline, logo, follower count, tags, custom domain, and social handles (Twitter, Facebook, Instagram).
/api/medium/publications/posts Posts within a given publication โ€” ordered feed of post cards with title, author, clap count, reading time, and paywall status.
/api/medium/publications/search Search publications by keyword โ€” publication cards with name, description, follower count, and topic tags.
/api/medium/tags/posts Latest posts for a given tag โ€” post cards with title, subtitle, author, publication, clap count, reading time, and paywall flag. Supports any tag slug (e.g. python, machine-learning, startups).
/api/medium/users User profile by username โ€” name, bio, follower count, following count, post count, top writer tags, and social handles.
/api/medium/users/posts Posts by a specific user โ€” feed of that author's articles with clap counts, reading times, and publication affiliation.
/api/medium/users/search Search Medium users by keyword โ€” user cards with name, bio, follower count, and post count.

What You Can Build

Content research pipelines

Search Medium posts by keyword with /posts/search and fetch full text with /posts to build content gap analyses, topic clustering models, or editorial research tools โ€” without scraping or session management.

Publication intelligence

Discover publications in a niche with /publications/search, then track follower counts and post velocity via /publications/posts over time โ€” useful for competitive benchmarking and partnership research.

Author discovery and outreach

Find prolific writers in your domain with /users/search and inspect their output via /users/posts โ€” ideal for identifying contributors, influencers, or potential hires based on published work and audience size.

Tag-based content monitoring

Poll /tags/posts on a schedule to track the latest articles in any tag (e.g. llm, rust, vc) โ€” useful for trend monitoring, newsletter curation, or competitive awareness feeds.

Quick Start

Search for recent posts on a topic, then fetch a post's full text and its responses.

SHELL
# Search Medium for posts about "large language models" (top 10)
curl https://api.anysite.io/api/medium/posts/search   -H "access-token: YOUR_KEY"   -d '{"query":"large language models","count":10}'

# Get the full text of a specific post by ID
curl https://api.anysite.io/api/medium/posts   -H "access-token: YOUR_KEY"   -d '{"post":"ba0ad5190f16"}'

# Get latest posts tagged "python" (top 20)
curl https://api.anysite.io/api/medium/tags/posts   -H "access-token: YOUR_KEY"   -d '{"tag":"python","count":20}'

Plans

Every endpoint is included in all Anysite plans โ€” there's no per-endpoint pricing to track. Use MCP Unlimited for flat-rate access through your AI tools, or a credit plan for REST & CLI at scale.

Frequently Asked Questions

Do I need a Medium account or API key?
No. Anysite handles the underlying data access โ€” you authenticate with your Anysite API key only. There is no separate Medium account, developer registration, or OAuth flow required to use any of these endpoints.
Can I retrieve the full text of a Medium article?
Yes. The /api/medium/posts endpoint returns the complete article text in the text field, along with the title, subtitle, author, tags, clap count, reading time, and paywall status.
Does the API return paywall (member-only) content?
The is_member_only flag is returned on every post record so you can filter programmatically. Whether full content is accessible depends on the post's member-only status โ€” the flag lets you handle this in your application logic.
How do I identify a Medium post to look up?
Pass either the post ID (the alphanumeric string at the end of the URL โ€” e.g. ba0ad5190f16 from https://medium.com/@author/title-ba0ad5190f16) or the full post URL. Both formats are accepted by /api/medium/posts.
Can I use these endpoints inside Claude, Cursor, or ChatGPT?
Yes. All Medium endpoints are available via the Anysite MCP server and can be called directly from Claude Desktop, Claude Code, Cursor, and ChatGPT on the MCP Unlimited plan โ€” no additional setup required.
What tag slugs can I use with the tags endpoint?
Any tag slug that exists on Medium โ€” for example programming, python, machine-learning, startup, design, data-science. Pass the slug exactly as it appears in Medium tag URLs (e.g. https://medium.com/tag/python โ†’ slug python).

Related Endpoints

Start querying Medium data today

Post content, author profiles, publication data, tag feeds, and keyword search โ€” via REST, MCP, or CLI. No Medium account required.