Call it
curl https://api.peume.com/v1/call/posts-of-a-medium-tag-author-or-publication \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"author": "unclecode",
"limit": 10,
"publication": "towardsdatascience.com",
"tag": "rust"
}
}'const res = await fetch("https://api.peume.com/v1/call/posts-of-a-medium-tag-author-or-publication", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"author": "unclecode",
"limit": 10,
"publication": "towardsdatascience.com",
"tag": "rust"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/posts-of-a-medium-tag-author-or-publication",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"author": "unclecode",
"limit": 10,
"publication": "towardsdatascience.com",
"tag": "rust"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: posts-of-a-medium-tag-author-or-publication.
Parameters
authorstringa Medium username without the @
Example: unclecode
limitintegerthe feed carries about 10 items, so a larger limit gives no more; default 10
Example: 10
publicationstringa publication slug
Example: towardsdatascience.com
tagstringa tag slug such as rust; set one of `tag`, `author` or `publication` (`tag` wins)
Example: rust
