DIY guide · Medium API
Session depth wins the attribution game
One article view is a bounce waiting to happen. **Related** and **recommended** endpoints exist so you can show a second and third story without sending traffic back to medium.com.
Placement ideas
- End-of-article rail on embeds
- Sidebar on documentation blogs
- "More from this author" after portfolio posts
Tips
Mix API recommendations with your own rules (same tag, exclude already read). Cache per article_id for 24h.
Endpoints
/article/{article_id}/related/article/{article_id}/recommended