← All guides

DIY guide · Medium API

LLMs need text, not hero images

HTML embeds are for humans; **plain content** is for chunking, embeddings, and summarization. One call returns body text without nav, clap bars, or script tags.

Pipeline

  1. Discover ids via user feed or search
  2. Fetch /article/{id}/content
  3. Chunk → embed → store in vector DB
  4. Optionally fetch info for title/tags metadata

Compliance

Respect Medium terms and author rights. Many teams only index their own posts or licensed partners.

Endpoints

  • /article/{article_id}/content
  • /article/{article_id} (metadata)

Starter code

javascript
const articleId = 'f5ef1da2850d';
const res = await fetch(`https://api.zenndra.com/article/${articleId}/content`, {
  headers: { Authorization: `Bearer ${process.env.ZENNDRA_API_KEY}` },
});
const { content } = await res.json();
// chunk `content` for your vector store