# Medium API

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.

- Request: POST https://api.everyinfra.com/api/v1/social with `{"platform": "medium", "action": "<action>", "params": {...}}`
- Canonical page: [https://everyinfra.com/en/medium-api](https://everyinfra.com/en/medium-api?utm_medium=ai_doc&utm_campaign=page_md)
- Each capability uses the price recorded in the public catalog. The response includes the amount charged. Authentication failures, invalid parameters, failed calls, and empty results are not charged.

## Actions

### tag — Tag
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.
- Sync delivery · Price: $1.39 per 1,000 requests (every 10 rows count as one call)
- 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.
- Parameters:
  - `tag` (required): 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.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/medium-api/tag](https://everyinfra.com/en/medium-api/tag?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/medium-api/tag.md)

### user_posts — Posts by user
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.
- Sync delivery · Price: $1.39 per 1,000 requests (every 10 rows count as one call)
- 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.
- Parameters:
  - `username` (required): 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.
  - `url` (optional): 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.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/medium-api/user_posts](https://everyinfra.com/en/medium-api/user_posts?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/medium-api/user_posts.md)

### publication — Publication
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.
- Sync delivery · Price: $1.39 per 1,000 requests (every 10 rows count as one call)
- 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.
- Parameters:
  - `publication` (required): Specifies a Medium publication slug or full publication URL rather than an article title or author handle, expanding standalone slugs into medium.com/<publication>.
  - `url` (optional): 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.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/medium-api/publication](https://everyinfra.com/en/medium-api/publication?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/medium-api/publication.md)

## 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.

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog?platform=medium
- API guide for AI clients: https://everyinfra.com/llms.txt · agents guide: https://everyinfra.com/agents.md
