Dynamic Badge API

Instantly Create Live Data Badges 🏆

Create badges that display live GitHub stars for your websites, landing pages, online stores, and applications.

Perfect for: SaaS, e-commerce, marketing & social proof

How It Works

Get your live badges in 3 simple steps

1

Sign In & Get API Key

Sign in and generate an API key for badges usage.

Your API Key:
bk_b5c5a2242...
2

Design Your Badge

Use our visual editor to create custom badges with themes, colors, and styles.

📦 Orders2,847

Live Preview

3

Get Your Badge URL

Copy the API endpoint and make authenticated requests from your backend.

API Endpoint Format
https://getbadge.io/api/v1/badge?id={badgeId}&label={dynamicLabel}&value={dynamicValue}
Example (Next.js Server Function or API Route)
// Define your badge parameters
const label = encodeURIComponent('📦 Orders');
const value = encodeURIComponent('2,847');

// Build URL with proper encoding
const badgeUrl = `https://getbadge.io/api/v1/badge?id=123&label=${label}&value=${value}`;

// Make authenticated request
const response = await fetch(badgeUrl, {
headers: {
'x-api-key': 'YOUR_API_KEY'
}
});

const svg = await response.text();
Returns SVG image
Secure API authentication • Real-time updates • Works everywhere

Dynamic Badge Features

Embed live data badges anywhere with our fast, reliable API

Universal Embed

Works everywhere images are supported - from landing pages to newsletters, and GitHub.

No JavaScript Required

Pure image URLs that work anywhere - websites, READMEs, emails, and apps.

High Customization

Customize themes, colors, and styling to match your brand perfectly.

Use Your Data

Display any metrics or numbers from your applications and services.