Usage:
https://badge.land/badge/{subject}[/{text}][?params]
Path:
/subject string
/text (Optional) string. Text can also be comma separated numbers for sparkline
Query Params:
color badge color. Must be a valid css color
icon icon can be any "Brand" or "Solid" icons from fontawesome
icon_color icon color. Must be a valid css color
style [possible values: flat, classic] defaults to classic
size [possible values: large, medium, small] defaults to small
Icon cany be any Brand or Solid icons from fontawesome Color can be any 6 or 8 digit hex color, a valid css color name or RGB / RGBA color
Generate live badges from your own endpoint.
-
URL
https://badge.land/url
-
Method
GET
-
Query Params
param | type | required | Description |
---|---|---|---|
source |
url |
✅ | Source for the badge |
color |
string |
Any valid css color. Supports Color name, RGB and hex | |
icon |
string |
Icon can be any "Brand" or "Solid" icons from fontawesome | |
icon_color |
string |
Any valid css color. Supports Color name, RGB and hex | |
style |
flat | classic |
Style of the badge | |
size |
large | medium | small |
Size of the badge |
-
Source Param is expected to be as following
-
METHOD
GET
-
Response Type
application/json
-
Response Body
{ text?: string subject: string style?: "Flat" | "Classic" size?: "Large" | "Medium" | "Small" color?: string // Can be any valid CSS color icon?: string // Icon can be any "Brand" or "Solid" icons from fontawesome icon_color?: string // Can be any valid CSS color data?: number[] }
-
Query params take presidence if any option is passed in both query param and endpoint.
Runkit example