Medium API
Read lists of Medium articles by topic tag, by author or by publication as JSON with one EveryInfra API key, from $1.39 per 1,000 calls.
All you need is one API key, no Medium account or cookie. It also works as an MCP tool in Claude and Cursor. Star our two GitHub repositories to claim $1 in trial credit and try it first. The credit is valid for 24 hours after you claim it.
- 3 endpoints, one key.
- Failed calls and empty results are not charged.
- No Medium access token needed.
Real sample values for one tag read
POST /api/v1/social params {"tag":"software-engineering"}
Platform availability
- 24h health
- Normal
Last 30 days
Available capabilities
Retrieve Medium articles from authors, publications, or tags using handles and short names.
Fetch articles by tag or publication URL. Full text of member-only stories is not guaranteed.
Articles
- TagNormal
List Medium stories filed under a topic tag slug in
tag, such as machine-learning.tag$1.39 per 1,000 callsEvery 10 rows count as one call - Posts by userNormal
Collect the stories one Medium author has published, given as a handle or profile URL in
username.user_posts$1.39 per 1,000 callsEvery 10 rows count as one call - PublicationNormal
Browse the stories in a Medium publication, given as a slug or URL in
publication.publication$1.39 per 1,000 callsEvery 10 rows count as one call
5 questions to ask before choosing a data API for Medium
Do I need to log in to Medium or provide a cookie to make calls?
No. Send Authorization: Bearer with your API key in the request header, and put platform, action and the capability parameters in the request body. There is no QR-code login, no login state to maintain and no browser to run.
How is it billed? Are failed requests charged? Is there a free trial?
Billing is per request, $1.39 per 1,000 requests. Failed requests, empty results, invalid parameters and authentication failures are not charged. Star both everyinfra/everyinfra-agent-plugins and everyinfra/seo-skills on GitHub, then claim $1 under Balance & top-ups in the console. It is valid for 24 hours after you claim it, and no credit card is needed.
Can I connect this Medium API to Claude or Cursor?
Yes. The remote MCP URL is https://api.everyinfra.com/mcp. Add Authorization: Bearer and your API key as a request header; there is no local program to install. Setup for Claude, Cursor, ChatGPT and Claude Code is on https://everyinfra.com/en/mcp-server.
What compliance points apply when using Medium data?
The EveryInfra Terms of Service require you to make sure your use of the data complies with applicable law and the platform's terms. They prohibit unlawful use, violating privacy or intellectual property, and bulk scraping for harassment, fraud or other malicious purposes. If you use personal information such as nicknames and avatars, keep only the fields your business needs.
What Medium data can I get?
Available Medium capabilities (3): Tag, Posts by user, Publication. The parameters and response fields of each capability are in the API reference on this page.
Use cases
Research topics to write about
Read the articles under a tag to see what is published on a topic, then read a publication to see what an industry publication covers. Save the titles and links in your topic list.
Usestagpublication
Follow authors and publications
Read the article list of an author or a publication on a schedule and use
posted_atto see what was posted lately.Build a reading list
Use
is_members_onlyto separate members-only articles from the rest, then followurlback to the article.Usestaguser_posts
Medium API documentation (GitHub) vs EveryInfra
The official Medium API documentation lives in the medium-api-docs repository on GitHub. It describes an OAuth2 API that acts for a Medium account with an authorization token, with resources for users, publications, posts and images, and its first page says the API is no longer supported. That is a different read from listing public articles by tag, author or publication, so the platform page has no comparison row.
| Compared | Medium API documentation (GitHub) | EveryInfra |
|---|
The endpoint pages have no comparison row either. Each page gives its own reason. Official sources:
What does each Medium action accept?
Parameter table for all 3 actions
Sync delivery for every action.
| Action | Required | Optional | Limit | Per 1,000 | Response fields |
|---|---|---|---|---|---|
tagTag List Medium stories filed under a topic tag slug in | tag | — | Catalog values: defaultLimit=10, maxLimit=25. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $1.39 per 1,000 requestsEvery 10 rows count as one call | id · url · title · text · author_name · author_username · author_url · publication_name · like_count · comment_count · reading_time_minutes · is_members_only · posted_at · image_url · platform · tags |
user_postsPosts by user Collect the stories one Medium author has published, given as a handle or profile URL in | username | url | Catalog values: defaultLimit=10, maxLimit=25. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $1.39 per 1,000 requestsEvery 10 rows count as one call | id · url · title · text · author_name · author_username · author_url · publication_name · like_count · comment_count · reading_time_minutes · is_members_only · posted_at · image_url · platform · tags |
publicationPublication Browse the stories in a Medium publication, given as a slug or URL in | publication | url | Catalog values: defaultLimit=10, maxLimit=25. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $1.39 per 1,000 requestsEvery 10 rows count as one call | id · url · title · text · author_name · author_username · author_url · publication_name · like_count · comment_count · reading_time_minutes · is_members_only · posted_at · image_url · platform · tags |
What each action's parameters mean (3 actions)
Each answer below pairs one callable action with its real inputs. Parameter meanings and allowed values are action-specific; a familiar name does not carry the same meaning across every platform.
Official sources are linked only to clarify the platform term beside them. They do not imply platform authorization or endorsement, and features of the official site are not part of the EveryInfra API unless this page lists them.
What do the Medium tag parameters mean?
List Medium stories filed under a topic tag slug in tag, such as machine-learning. Get author, publication, reading time, like and comment counts and a members-only flag. It is not a full-text search and does not get past the paywall. It may not return every story under the tag.
tagRequired- Specifies the Medium topic tag slug (such as machine-learning), which strips leading # symbols, converts text to lowercase, and replaces spaces with hyphens. It does not perform arbitrary full-text searches.Medium: Topic Content Feeds and Paywalled Article Boundaries — Medium's official documentation separately lists content feed URLs for authors, publications, and Topics, and explicitly notes that full articles behind a paywall are not included in RSS feeds. This reference clarifies object types and visible content without expanding into arbitrary full-text search or paywalled full-text retrieval. · Checked
What do the Medium user_posts parameters mean?
Collect the stories one Medium author has published, given as a handle or profile URL in username. Get title, excerpt, publication, reading time and like and comment counts. Drafts are excluded, and the whole archive is not guaranteed. Members-only stories are flagged but not unlocked.
usernameRequired- Specifies a Medium author handle or full author profile URL, formatting standalone handles into https://medium.com/@<handle> to fetch the author's published post list rather than profile metadata.Medium: Claps Do Not Represent Unique Reader Counts — Medium allows a single reader to clap multiple times for an article, meaning the total clap count cannot be treated as unique reader volume. This interface does not provide author-visible per-person clap breakdowns, nor does the presence of the field guarantee that clap counts will always be returned. · Checked
urlOptional- Provides a compatibility input for full author or publication URLs in user_posts and publication; required username or publication parameters must still be supplied. Returned post lists may include restricted posts without granting access to paywalled full text.
What do the Medium publication parameters mean?
Browse the stories in a Medium publication, given as a slug or URL in publication. Each story has author, reading time, like and comment counts and a members-only flag. Article titles and author handles do not work as input. Members-only text stays locked.
publicationRequired- Specifies a Medium publication slug or full publication URL rather than an article title or author handle, expanding standalone slugs into medium.com/<publication>.Medium: Publications and Author Pages Use Distinct Content Feeds — Medium separates Publications from @username author pages, and specifies distinct content feed formats for publications on custom domains. This citation highlights object differences; inputs for this interface still follow the parameter specified above without requiring users to pass feed URLs, and no guarantee is made that all custom domains are verified. · Checked
urlOptional- Provides a compatibility input for full author or publication URLs in user_posts and publication; required username or publication parameters must still be supplied. Returned post lists may include restricted posts without granting access to paywalled full text.
How to use the Medium API
- 01Choose a platform action from the public catalog.
- 02Send the platform, action, and required parameters to POST /api/v1/social.
- 03Read the result from the response. For an asynchronous action, poll the returned job ID.
- 04Store the response fields that your application needs.
curl -X POST https://api.everyinfra.com/api/v1/social \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"platform":"medium","action":"tag","params":{"tag":"<tag>"}}'
Medium API questions
What can I retrieve with the Medium API?
Set platform to medium. The current catalog lists tag, posts by user, and publication. These action names identify different Medium objects or views; they are not interchangeable search modes.
Which input starts the Medium tag request?
Specifies the Medium topic tag slug (such as machine-learning), which strips leading # symbols, converts text to lowercase, and replaces spaces with hyphens. It does not perform arbitrary full-text searches. Send it as tag inside params.
Which fields can Medium tag return?
Its declared schema includes title, text, author_name, and author_username. A declared field can still be absent from an individual record, and every other action has its own field list.
Does every Medium action return immediately?
Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add "mode": "async" to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.