Skip to content

Embed overview

GitStars.io embeds are public, cacheable endpoints for repository trend cards. They are useful in project READMEs, dashboards, landing pages, and internal reports.

  • Use /api/embed/gitstars.svg when you need an image.
  • Use /api/embed/gitstars when you need JSON plus a generated SVG URL.
<img
src="https://gitstars.io/api/embed/gitstars.svg?provider=github&repo=vercel/next.js"
alt="GitStars.io trend for vercel/next.js"
/>

The repository must exist in GitStars.io and have enough metric data for the selected range.