Shields endpoint JSON
Endpoints
Badge (Shields endpoint)
GET
Shields endpoint JSON
Return Shields.io-compatible JSON for a dynamic badge.
Replace
An example of this in action with my own deployment is
You can add this into your own github profile to view the views on your site, (must be in allowed origins in the .env of your vercel deployment)
Example
The following example demonstrates how to use the Shields endpoint to create a badge for your project’s homepage hits:<deployment> with your actual deployment URL. This command, when run in a terminal, will open a URL that returns a JSON response compatible with Shields.io, allowing you to display dynamic badge data.
An example of this in action with my own deployment is