Returns an SVG badge displaying the view count for a specific page/profile. Automatically increments the view count unless increment=false is specified.
Query parameters
-
Username or identifier for the profile
Default value is
EXELVI. -
Page identifier to track views for
Default value is
github-profile. -
Visual style of the badge
Values are
modern,flat,flat-square,for-the-badge, orplastic. Default value ismodern. -
Badge color(s) as hex values. Can be specified multiple times for gradients. The '#' prefix is optional (e.g., both "0366d6" and "#0366d6" work).
-
Whether to increment the view count. Set to 'false' to only display the current count without incrementing.
Default value is
true.
GET
/profile-views
curl \
--request GET 'http://localhost:3000/api/profile-views'
Response examples (200)
# Headers
Content-Type: image/svg+xml
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
# Payload
string
Response examples (500)
# Headers
Content-Type: image/svg+xml
# Payload
string