Live

Medium logo

Medium API and MCP server

medium.com

Medium has an old REST API, but it is no longer supported and Medium does not allow new integrations (checked 11 Oct 2026). Cotlet is a hosted MCP server and REST API for Medium with 13 endpoints (6 read, 7 write): your AI agent signs in as you and does the work.

Endpoints
13 6 read, 7 write
Updated
How Cotlet connects your agent to Medium
  1. Your agent

    Claude Code, Codex, Cursor or a script

  2. Cotlet

    MCP server and REST API · 13 endpoints

    cotlet.dev/mcp/v1

  3. Medium logo

    Medium

    Signed in as you on medium.com

You sign in once. We never store your password.

Official API

Does Medium have an official API?

Medium has an old REST API, but it is no longer supported and Medium does not allow new integrations (checked 11 Oct 2026). Accounts that still hold a token can only create posts, list publications and upload images, with no editing, stats or responses.

What Medium's own tools do compared with Cotlet
Task Medium official Cotlet
Create a draft from Markdown Partly Only with a token that existed before the shutdown Yes
Edit a draft or published story No Yes
Schedule a story No Scheduling exists in the Medium editor only Yes
Cross-post with a canonical link Partly canonicalUrl on create, old tokens only Yes
Submit a story to a publication Partly Create as a draft in a publication you write for Yes
Views, reads and earnings per story No Yes
Read and reply to responses No Yes
List your drafts and scheduled stories No Yes

Sources: Medium API documentation (archived, read-only) · Medium Help: Schedule to publish · Medium Help: Story stats page · Medium Help: Importing a post to Medium

Common use cases

What can an AI agent do in Medium?

Cotlet is best for Medium writers who publish on their own blog too and want their AI agent to cross-post, schedule, edit and report on stories without running or fixing a server.

  • Cross-post blog articles with a canonical link Runs: Weekly

    Every Monday, check yourname.dev/blog for posts that are not on Medium yet, import each one with a canonical link back to my blog, and schedule them for Thursday 9:00 my time. Your agent calls list_stories, import_story, get_story, create_draft and schedule_story.

  • Publish Markdown to Medium on a schedule Runs: Weekly

    Turn posts/shipping-small.md into a Medium draft with the topics Python, Programming and Software Engineering, put it behind the paywall, and schedule it for Tuesday 8:00 my time. Your agent calls create_draft, get_story and schedule_story.

  • Weekly Medium stats and earnings report Runs: Weekly

    Every Monday, send me last month's views and reads against the month before, my top 5 stories by reads, and any paywalled story whose member read ratio dropped. Your agent calls get_account_stats, list_stories and get_story_stats.

  • Update old Medium stories in bulk

    Find every published story that still links to oldblog.example.com, swap the links for yourname.dev, and show me the list before you save anything. Your agent calls list_stories, get_story and update_story.

  • Submit drafts to a Medium publication

    Submit my newest draft to the publication I write for. Your agent calls list_publications and submit_to_publication.

  • Reply to responses on your stories Runs: Daily

    List yesterday's unanswered responses on my stories and draft a reply to each for me to approve. Your agent calls list_stories, list_responses and reply_to_response.

Endpoints

What is the Medium API?

Cotlet's Medium API exposes 13 endpoints for your own Medium account: list stories, get story, get story stats, get account stats, list responses, list publications, create draft, import story, update story, publish story, schedule story, submit to publication and reply to response. The list_stories endpoint returns your stories, newest first, with status, publication, tags and URL. Each endpoint takes simple JSON inputs like story_id, cursor or status and works both as an MCP tool for agents and as a REST call for scripts.

All endpoints · 13 total

missing one? request an endpoint

  • POST

    list_stories

    read

    Lists your own stories, newest first. Filter by status to find drafts or scheduled stories. Each item has the story_id used by the other tools. Pages hold up to 50 stories; pass next_cursor back as cursor for the next page.

    POST /api/v1/medium/list_stories

    Input

    Input: list_stories
    Parameter Type Description
    status enum published, draft or scheduled. Default: published.
    limit integer 1 to 50. Default: 20.
    cursor string Next page cursor from the previous call.

    Example response

    {
      "stories": [
        {
          "story_id": "3f9a1c27b84e",
          "title": "Shipping small",
          "status": "published",
          "publication": null,
          "tags": [
            "Python",
            "Programming"
          ],
          "published_at": "2026-10-02T09:00:00-04:00",
          "url": "https://medium.com/@yourname/shipping-small-3f9a1c27b84e"
        }
      ],
      "next_cursor": null
    }
  • POST

    get_story

    read

    Returns one story with its body as Markdown. Use it before update_story so your agent changes only the part you asked for. Works for drafts, scheduled and published stories.

    POST /api/v1/medium/get_story

    Input

    Input: get_story
    Parameter Type Description
    story_id required string Story ID from list_stories.

    Example response

    {
      "story_id": "3f9a1c27b84e",
      "title": "Shipping small",
      "subtitle": "Why small releases win",
      "body_markdown": "Small releases beat big ones.\n\nHere is why.",
      "tags": [
        "Python",
        "Programming"
      ],
      "canonical_url": "https://yourname.dev/blog/shipping-small",
      "paywalled": false,
      "status": "published"
    }
  • POST

    get_story_stats

    read

    Returns the numbers from the story's detailed stats page. Member read ratio is member reads divided by member views, the figure Medium uses to adjust earnings. Earnings appear only for stories behind the paywall.

    POST /api/v1/medium/get_story_stats

    Input

    Input: get_story_stats
    Parameter Type Description
    story_id required string Story ID from list_stories.

    Example response

    {
      "story_id": "3f9a1c27b84e",
      "views": 1840,
      "reads": 912,
      "member_read_ratio": 0.42,
      "claps": 143,
      "responses": 6,
      "earnings": {
        "amount": 18.4,
        "currency": "USD"
      }
    }
  • POST

    get_account_stats

    read

    Returns the account-level figures Medium shows on your stats page for one month. Use list_stories and get_story_stats to find which stories drove them.

    POST /api/v1/medium/get_account_stats

    Input

    Input: get_account_stats
    Parameter Type Description
    month string YYYY-MM. Default: current month.

    Example response

    {
      "month": "2026-09",
      "views": 9420,
      "reads": 4310
    }
  • POST

    list_responses

    read

    Lists the responses under one story, with the author, text and whether you already replied. Hidden responses are not returned. Pass response_id to reply_to_response.

    POST /api/v1/medium/list_responses

    Input

    Input: list_responses
    Parameter Type Description
    story_id required string Story ID from list_stories.
    unanswered_only boolean Skip responses you already replied to.
    cursor string Next page cursor from the previous call.

    Example response

    {
      "responses": [
        {
          "response_id": "r_41b9c2",
          "author": "Dana Whitfield",
          "body": "The third example has a typo.",
          "created_at": "2026-10-03T11:20:00Z",
          "replied": false
        }
      ],
      "next_cursor": null
    }
  • POST

    list_publications

    read

    Returns every publication you belong to with your role. Use the publication_id with submit_to_publication. Each publication sets its own rules for what it accepts.

    POST /api/v1/medium/list_publications

    Input

    No parameters.

    Example response

    {
      "publications": [
        {
          "publication_id": "pub_7d21",
          "name": "Better Programming",
          "role": "writer"
        }
      ]
    }
  • POST

    create_draft

    write

    Creates a draft from Markdown and returns its story_id. The draft is private. It reaches no one and is deleted or edited in one call, so it asks for no confirmation.

    POST /api/v1/medium/create_draft

    Input

    Input: create_draft
    Parameter Type Description
    title required string Story title.
    body_markdown required string Story body. Images by URL.
    subtitle string Shown under the title and in previews.
    tags string[] Up to 5 tags.
    canonical_url string Original URL if the story was first published elsewhere.
    paywalled boolean Member-only story (Partner Program). Default: false.

    Example response

    {
      "story_id": "3f9a1c27b84e",
      "status": "draft",
      "url": "https://medium.com/p/3f9a1c27b84e/edit"
    }
  • POST

    import_story

    write

    Runs Medium's importer on a public URL. The draft keeps the original date and gets a canonical link to the source. If Medium cannot read the page, the call fails and create_draft is the fallback. The draft is private, so no confirmation.

    POST /api/v1/medium/import_story

    Input

    Input: import_story
    Parameter Type Description
    url required string Public URL of the original post.

    Example response

    {
      "story_id": "3f9a1c27b84e",
      "status": "draft",
      "canonical_url": "https://yourname.dev/blog/shipping-small"
    }
  • POST

    update_story

    write

    Changes only the fields you send. On a published story the change is visible to readers at once. By default you confirm each call; you can switch that off for this tool.

    POST /api/v1/medium/update_story

    Input

    Input: update_story
    Parameter Type Description
    story_id required string Story ID from list_stories.
    fields required object Any of title, subtitle, body_markdown, tags, canonical_url, paywalled.

    Example response

    {
      "story_id": "3f9a1c27b84e",
      "status": "published",
      "updated_fields": [
        "tags"
      ]
    }
  • POST

    publish_story

    write

    Publishes a draft under your name, or in the publication it belongs to. Readers and followers can see it at once. By default you confirm each call; you can switch that off for this tool.

    POST /api/v1/medium/publish_story

    Input

    Input: publish_story
    Parameter Type Description
    story_id required string Story ID from list_stories.

    Example response

    {
      "story_id": "3f9a1c27b84e",
      "status": "published",
      "url": "https://medium.com/@yourname/shipping-small-3f9a1c27b84e"
    }
  • POST

    schedule_story

    write

    Schedules a draft. Medium publishes it at the set time, and the story stays in your drafts until then. By default you confirm each call; you can switch that off for this tool.

    POST /api/v1/medium/schedule_story

    Input

    Input: schedule_story
    Parameter Type Description
    story_id required string Story ID from list_stories.
    publish_at required datetime ISO 8601 with time zone.

    Example response

    {
      "story_id": "3f9a1c27b84e",
      "status": "scheduled",
      "publish_at": "2026-10-15T09:00:00-04:00"
    }
  • POST

    submit_to_publication

    write

    Submits a draft to a publication. Its editors review it and decide when to publish. A publication can accept only drafts, only published stories, or both. By default you confirm each call; you can switch that off for this tool.

    POST /api/v1/medium/submit_to_publication

    Input

    Input: submit_to_publication
    Parameter Type Description
    story_id required string Story ID from list_stories.
    publication_id required string Publication ID from list_publications.

    Example response

    {
      "story_id": "3f9a1c27b84e",
      "publication_id": "pub_7d21",
      "status": "submitted"
    }
  • POST

    reply_to_response

    write

    Posts a reply under one response, under your name. By default you confirm each call; you can switch that off for this tool.

    POST /api/v1/medium/reply_to_response

    Input

    Input: reply_to_response
    Parameter Type Description
    response_id required string Response ID from list_responses.
    body required string Reply text.

    Example response

    {
      "response_id": "r_41b9c2",
      "reply_id": "r_41ba07",
      "status": "published"
    }

Setup

How do I connect Medium to Claude Code, Codex or Cursor?

Connecting Medium takes three steps: request access, sign in to Medium once, then add one MCP server or call the REST API with the same key.

Connect Medium over MCP

  1. 1

    Create an account

    Sign up and add Medium in the console. Your API key is there too.

  2. 2

    Sign in to Medium once

    Open the connect page from the console and sign in to Medium the way you always do. We keep the session, never your password, and you can revoke it anytime.

  3. 3

    Add Cotlet to your agent

    Claude Code
    claude mcp add --transport http cotlet \
      https://cotlet.dev/mcp/v1 \
      --header "Authorization: Bearer $COTLET_API_KEY"
    Cursor
    {
      "mcpServers": {
        "cotlet": {
          "url": "https://cotlet.dev/mcp/v1",
          "headers": {
            "Authorization": "Bearer ${COTLET_API_KEY}"
          }
        }
      }
    }
    Codex
    # ~/.codex/config.toml
    [mcp_servers.cotlet]
    url = "https://cotlet.dev/mcp/v1"
    bearer_token_env_var = "COTLET_API_KEY"

    Paste the snippet for your client. The same server and key serve every app you connect, so you do this once.

  4. 4

    Ask your agent

    Prompt

    Every Monday, check yourname.dev/blog for posts that are not on Medium yet, import each one with a canonical link back to my blog, and schedule them for Thursday 9:00 my time.

    Ask in plain words. Your agent finds the Medium tools on the server and calls them for you; anything that reaches other people waits for your OK unless you switch that off for a tool.

Call Medium over REST

  1. 1

    Export your API key

    Shell

    export COTLET_API_KEY="cotlet_..."

    Your scripts use the same API key as your agent. Keep it in an environment variable, never in your code.

  2. 2

    Call a tool

    curl

    curl https://cotlet.dev/api/v1/medium/schedule_story \
      -H "Authorization: Bearer $COTLET_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"story_id":"3f9a1c27b84e","publish_at":"2026-10-15T09:00:00-04:00"}'

    Every tool is a POST endpoint at /api/v1/medium/{tool}. Send its parameters as JSON, exactly as listed in the endpoints above.

  3. 3

    Read the result

    Example response · schedule_story

    {
      "story_id": "3f9a1c27b84e",
      "status": "scheduled",
      "publish_at": "2026-10-15T09:00:00-04:00",
      "canonical_url": "https://yourname.dev/blog/shipping-small",
      "url": "https://medium.com/@yourname/shipping-small-3f9a1c27b84e"
    }

    You get plain JSON back, ready for your script. A failed call costs nothing.

Why Cotlet

Why use Cotlet for Medium? Hosted, safe and kept working.

  • Built for agents

    • One MCP server for every app you connect.
    • The same tools as a REST API for scripts and cron jobs.
    • Works with Claude Code, Codex and Cursor.
  • Your login stays yours

    • You sign in to Medium yourself. We keep only the session, encrypted with AES-256.
    • The model never sees a login.
    • No stored passwords, no CAPTCHA solving, no MFA bypass.
  • You stay in control

    • Pick read only, or read and write.
    • Anything that reaches other people waits for your OK, unless you switch it off per tool.
    • Revoke access in one click.
  • Kept working for you

    • We test every integration daily.
    • When Medium changes, the tool pauses until we fix it.
    • Failed calls cost nothing.

Alternatives

Is there a Medium MCP server on GitHub?

Yes. Open-source Medium MCP servers exist on GitHub, usually maintained by one person. Some use the old API token, which new accounts cannot get. Others drive a browser with your login. You install one on your own computer and keep it running; when Medium changes its site, it stops working until you or the maintainer fix it. Cotlet hosts the same kind of server for you, and our team keeps it working.

Cotlet compared with a GitHub MCP server
GitHub MCP server Cotlet
Setup Clone the repo, install it, sign it in to Medium, add it to each MCP client Request access, sign in to Medium once, add one MCP server or API key
When Medium changes It breaks until you or the maintainer fix it Our team tests it daily and fixes it for you; failed calls are free
Your Medium session In a file or browser profile on your computer, readable by any program you run Encrypted in an EU vault, limited to the actions you allow, revoked in one click
When the session expires Tools fail until you sign in again by hand We keep it alive; if Medium logs you out, your agent gets a link to sign in again
Upkeep You update, monitor and debug it yourself Nothing to host or update
Where it runs Your computer, while it is on Hosted: Claude Code, Codex, Cursor, n8n and scripts, also on a schedule
Price Free, paid for with your time Free 7-day trial with 5,000 credits, then credits per call

Which one fits you

Pick Cotlet if

  • you are not a developer, or you do not want to maintain a server
  • you need it to keep working when Medium changes, without checking it yourself
  • your agent or a script should run it on a schedule, also while your computer is off

Pick an open-source server if

  • you are comfortable installing, updating and fixing it yourself
  • you want the session to stay on your own computer
  • you only need it now and then, from one MCP client

For AI agents

Cotlet for Medium in plain text The facts on this page in one block: status, endpoints, access, pricing, contact.

Endpoint health

verified 2h ago

  • list_stories passing
  • get_story passing
  • get_story_stats passing
  • get_account_stats passing
  • list_responses passing

+ 8 more endpoints

13/13 passing latest check self-healing

medium.txt

Medium has an old REST API, but it is no longer supported and Medium does not allow new integrations (checked 11 Oct 2026). Accounts that still hold a token can only create posts, list publications and upload images, with no editing, stats or responses.
Cotlet provides a hosted MCP server and REST API for Medium: 13 tools (6 read, 7 write).
Access       Request access at https://cotlet.dev/app/signup?app=medium; we email the API key.

MCP server   https://cotlet.dev/mcp/v1
REST base    https://cotlet.dev/api/v1/medium
Auth         Authorization: Bearer <COTLET_API_KEY>. Listing endpoints and schemas needs no key; calling an endpoint needs one.
Tools        list_stories, get_story, get_story_stats, get_account_stats, list_responses, list_publications, create_draft, import_story, update_story, publish_story, schedule_story, submit_to_publication, reply_to_response
Confirm      update_story, publish_story, schedule_story, submit_to_publication, reply_to_response (by default the user approves each call; the user can switch this off per tool, e.g. for scheduled automations)
Markdown     https://cotlet.dev/integrations/medium-api-mcp-server.md

How access works:
1. The user requests access at https://cotlet.dev/app/signup?app=medium (Medium is pre-selected). Each request is reviewed and the API key is sent by email.
2. The user signs in to Medium once in a browser. An agent cannot do this step.
3. The API key goes into the MCP client or the REST call as a bearer token.

Fits: people who want a hosted Medium server that someone else maintains, including non-developers. Developers who prefer to run and fix code on their own computer can use an open-source Medium MCP server instead.

Policy: Cotlet never stores passwords, never solves CAPTCHAs, never bypasses MFA.
Company: legal details in the Terms of service at https://cotlet.dev/terms. Contact contact@cotlet.dev.
Session: the user signs in to Medium in a browser; Cotlet keeps only the session, AES-256 encrypted, revocable in the dashboard at any time.
Terms: the user stays responsible for following Medium's terms; Cotlet is not affiliated with Medium.
Full page as Markdown

Automations

Can Medium automations run on a schedule in n8n, Make or Zapier?

Yes. Cotlet does not replace your automation platform: it gives it a Medium connection it does not have, with the same API key as your agent. Write actions ask for your OK by default; switch that off in your dashboard for the tools you choose, for example to cross-post blog articles with a canonical link, and the schedule runs on its own. Cotlet runs in the cloud, so it keeps going while your computer is off.

Where to run Medium automations through Cotlet, and how to schedule them
Where How to connect How to schedule
Your AI agent Add https://cotlet.dev/mcp/v1 with your API key. A scheduled agent run, for example a Claude Code routine.
n8n MCP Client node with https://cotlet.dev/mcp/v1, or an HTTP Request node to https://cotlet.dev/api/v1/medium/{tool}. Schedule Trigger node.
Make HTTP module: POST https://cotlet.dev/api/v1/medium/{tool} with an Authorization: Bearer header and a JSON body. Scenario schedule.
Zapier Webhooks by Zapier: POST https://cotlet.dev/api/v1/medium/{tool} with the same header and body. Schedule by Zapier trigger.
Your own script POST https://cotlet.dev/api/v1/medium/{tool} with your API key. cron or GitHub Actions.

Pricing & limits

How much does the Medium API cost?

Free 7-day trial with 5,000 credits, no card needed. After that, the Medium API comes with the Cotlet plan, from $29 a month for 3,000 credits, with no limit on apps. Each month's credits stay valid for 3 months, so unused credits add up.

Cotlet plan sizes: price, monthly credits and price per credit
Size Price Credits / month Per credit
Solo $29/mo 3,000 about $0.0097
Pro $99/mo 12,000 about $0.0083
Agency $299/mo 40,000 $0.0075

Each successful call uses credits for the work it takes; failed calls and timeouts cost nothing. A hard spend cap is on by default. Authenticate with the Authorization: Bearer header.

About Cotlet

How Cotlet holds your access

Cotlet hosts MCP servers and REST APIs for apps with no usable API. Your agent works in your own Medium account.

Company details
The legal name, address and registration numbers of the company behind Cotlet are in the Terms of service. Terms
Your session
You sign in to Medium yourself, in your browser. We keep only the session, never your password: encrypted with AES-256 in an EU vault, isolated to your account and used only when your agent calls a Medium tool you allowed. When it expires, your agent gives you a link to sign in again. Security
Revoking access
Disconnect Medium in your dashboard: the session is deleted and access ends at once. Actions that reach other people wait for your OK unless you switch that off per tool.
What we never do
Store passwords, solve CAPTCHAs or bypass MFA.
Medium's terms
You use your own Medium account and stay responsible for following Medium's terms. Cotlet is independent and not affiliated with Medium. Terms
Contact
Questions about the company, security or an app: contact@cotlet.dev
About Cotlet

Frequently asked questions

How do I get access?

Request access and pick Medium. Cotlet reviews each request and emails you your API key.

Do I need to be technical?

No. You sign in to Medium once in your browser and paste one command into your agent, or one URL into n8n. Your agent can walk you through it. There is no server to install, update or fix.

Is a hosted server safe? My Medium session would leave my computer.

Cotlet keeps your Medium session encrypted with AES-256 in an EU vault, isolated to your account and used only for the tools you allow: read only, or read and write. The AI model never sees it, and you revoke it in one click. A local server keeps the same session in a file on your computer, readable by any program you run, and needs a fresh sign-in whenever it expires.

Do I need the Partner Program to see earnings?

Earnings appear only for stories behind the paywall in the Partner Program. For other stories get_story_stats returns views, reads and claps, and no earnings. Medium updates the member read ratio daily.

Can my agent post or send messages in Medium without asking me?

No. Every call to update_story, publish_story, schedule_story, submit_to_publication or reply_to_response waits for your OK by default. For scheduled automations you can switch confirmation off per tool in your dashboard, for example only for approvals. create_draft, import_story runs without asking, because it sends nothing to anyone and one call undoes it.

Can I use the Medium API in n8n?

Yes. Add https://cotlet.dev/mcp/v1 with your API key in n8n's MCP Client node, or call https://cotlet.dev/api/v1/medium/{tool} from the HTTP Request node.

Give your agent access to Medium.

Request access and pick it. We review each request and email you your API key. Free 7-day trial with 5,000 credits, no card needed.