報
Medium API
3 endpointsNews & MediaGlobalsocial:read3 real examples
Returns the latest Medium stories of a user, a topic or a publication.
View as Markdown| GET | /medium/user | The latest stories of one Medium user. |
| GET | /medium/tag | The latest stories on one Medium topic. |
| GET | /medium/publication | The latest stories of one Medium publication, from its RSS feed. |
user
GET
/v1/medium/userThe latest stories of one Medium user.
scope social:read1 unitcached 15 minpaginated
Parameters
usernamestring required | Medium username, with or without the @. e.g. medium |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
14 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
id | string |
imageUrl | string |
publishedAt | string |
source | string |
summary | string |
tags | string[] |
title | string |
url | string |
curl "https://api.hoshime.com/v1/medium/user?username=medium" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/medium/user?username=medium", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/medium/user?username=medium", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "Medium", "url": "", "username": "" }, "id": "", "imageUrl": "", "publishedAt": "2023-06-28T18:01:22Z", "source": "", "summary": "", "tags": [ "rules", "medium" ], "title": "Updating Our Rules — June 2023", "url": "https://medium.com/blog/updating-our-rules-june-2023-62edea66ffa4" }, { "author": { "avatarUrl": "", "id": "", "name": "Medium", "url": "", "username": "" }, "id": "", "imageUrl": "", "publishedAt": "2021-11-08T17:24:26Z", "source": "", "summary": "", "tags": [], "title": "Email Import Terms of Use", "url": "https://policy.medium.com/email-import-terms-of-use-cccf29534bf4" } ], "meta": { "cached": false, "endpoint": "user", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "medium", "requestId": "req_2Xb9kQ…", "units": 1 } }
tag
GET
/v1/medium/tagThe latest stories on one Medium topic.
scope social:read1 unitcached 15 minpaginated
Parameters
tagstring required | Topic slug in lower case, such as programming. e.g. programming |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
14 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
id | string |
imageUrl | string |
publishedAt | string |
source | string |
summary | string |
tags | string[] |
title | string |
url | string |
curl "https://api.hoshime.com/v1/medium/tag?tag=programming" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/medium/tag?tag=programming", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/medium/tag?tag=programming", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "Engineering Unfiltered | Prodrescue By Devrim", "url": "", "username": "" }, "id": "", "imageUrl": "", "publishedAt": "2026-11-06T17:57:39Z", "source": "", "summary": "He was our most productive backend engineer, our CTO’s favorite success story, and the reason three teams were shipping faster than ever… Co…", "tags": [ "artificial-intelligence", "programming" ], "title": "Our Fastest Engineer Shipped 47 Features. Then Finance Asked Why AWS Cost $180,000 a Month", "url": "https://medium.com/engineering-playbook/our-fastest-engineer-shipped-47-features-then-finance-asked-why-aws-cost-180-000-a-month-4b8e24dd015…" }, { "author": { "avatarUrl": "", "id": "", "name": "Sohail Saifi", "url": "", "username": "" }, "id": "", "imageUrl": "", "publishedAt": "2026-11-06T17:54:54Z", "source": "", "summary": "Count the agent SDKs that landed in the last year. OpenAI shipped one. Anthropic shipped one. Google shipped one. Each is genuinely good… Co…", "tags": [ "computer-science", "software-development" ], "title": "TanStack AI Shipped 1.0 and It Refuses to Lock You to One Model Provider", "url": "https://medium.com/@sohail_saifi/tanstack-ai-shipped-1-0-and-it-refuses-to-lock-you-to-one-model-provider-b55f4e316d3e" } ], "meta": { "cached": false, "endpoint": "tag", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "medium", "requestId": "req_2Xb9kQ…", "units": 1 } }
publication
GET
/v1/medium/publicationThe latest stories of one Medium publication, from its RSS feed.
scope social:read1 unitcached 10 minpaginated
Parameters
slugstring required | Publication slug, the last part of its address, such as towards-data-science. e.g. towards-data-science |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
14 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
id | string |
imageUrl | string |
publishedAt | string |
source | string |
summary | string |
tags | string[] |
title | string |
url | string |
curl "https://api.hoshime.com/v1/medium/publication?slug=towards-data-science" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/medium/publication?slug=towards-data-science", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/medium/publication?slug=towards-data-science", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "", "name": "Jacob Ingle", "url": "", "username": "" }, "id": "", "imageUrl": "", "publishedAt": "2025-02-03T18:54:44Z", "source": "", "summary": "How to implement a linear regression model in Python without using machine learning libraries Continue reading on TDS Archive »", "tags": [ "machine-learning", "ai" ], "title": "DIY AI: How to Build a Linear Regression Model from Scratch", "url": "https://medium.com/data-science/diy-ai-how-to-build-a-linear-regression-model-from-scratch-7b4cc0efd235" }, { "author": { "avatarUrl": "", "id": "", "name": "Jimin Kang", "url": "", "username": "" }, "id": "", "imageUrl": "", "publishedAt": "2025-02-03T18:49:54Z", "source": "", "summary": "", "tags": [ "support-vector-classifier", "support-vector-machine" ], "title": "Support Vector Machines: A Progression of Algorithms", "url": "https://medium.com/data-science/support-vector-machines-a-progression-of-algorithms-841d63574825" } ], "meta": { "cached": false, "endpoint": "publication", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "medium", "requestId": "req_2Xb9kQ…", "units": 1 } }