DEV Community

Sebastian Casvean
Sebastian Casvean

Posted on • Originally published at zenndra.com

Programmatic SEO with Medium Tag Hubs (Done Ethically)

Programmatic SEO with Medium Tag Hubs (Done Ethically)

Thousands of long-tail tags carry real intent. tag info + archived_articles + related_tags let you ship hubs that help readers—not thin spam.

Tool outcome: Static generator script that builds /topics/{slug}/index.html for your top 50 tags.


Stack

  1. Seed slugs from /root_tags and keyword search.
  2. For each tag: stats from /tag/{tag}, feed from /latestposts/{tag} or topfeeds.
  3. Paginate depth with /archived_articles/{tag}.
  4. Internal links via /related_tags/{tag}.

Page builder sketch

const API = 'https://api.zenndra.com';
const headers = { Authorization: `Bearer ${process.env.ZENNDRA_API_KEY}` };

async function buildTagHub(tag) {
  const [info, archive, related] = await Promise.all([
    fetch(`${API}/tag/${encodeURIComponent(tag)}`, { headers }).then((r) => r.json()),
    fetch(`${API}/archived_articles/${encodeURIComponent(tag)}`, { headers }).then((r) => r.json()),
    fetch(`${API}/related_tags/${encodeURIComponent(tag)}`, { headers }).then((r) => r.json()),
  ]);

  return {
    tag,
    title: `Articles about ${info.name ?? tag}`,
    stats: {
      followers: info.followers_count,
      stories: info.posts_count,
    },
    articles: archive.articles ?? [],
    relatedTags: related.tags ?? [],
    intro: writeHumanIntro(tag, info), // YOU write this template once
  };
}
Enter fullscreen mode Exit fullscreen mode

writeHumanIntro is where ethics live: one paragraph explaining why this topic matters, not keyword stuffing.


Avoid penalties

Google still punishes thin duplicate pages. Add:

  • Real editorial intro (even 80 words helps).
  • Stats readers cannot get elsewhere easily.
  • Clear attribution links to Medium originals.
  • noindex on ultra-low-value slugs until you improve them.

Read Google helpful content guidance.


Link graph

/topics/javascript → related: react, node, typescript
Enter fullscreen mode Exit fullscreen mode

Crawl paths matter as much as keywords.


Keywords

medium tag seo, programmatic seo medium, topic hub generator, medium archived articles api, long tail topic pages.


Further reading

Top comments (0)