Scratch-Stats-Badge
Create customized Badges with stats of Scratch User, Studio or Project. Use those badges in Github readmes, etc.
Examples
Documentation
Endpoint URLs
- Root: https://scratch-stats-badge.sid72020123.repl.co/
- User Badge: https://scratch-stats-badge.sid72020123.repl.co/user?username=griffpatch
- Studio Badge: https://scratch-stats-badge.sid72020123.repl.co/studio?id=100
- Project Badge: https://scratch-stats-badge.sid72020123.repl.co/project?id=104
User Badge
Endpoint URL: https://scratch-stats-badge.sid72020123.repl.co/user?username=:username
Required Parameters
username
- The username
Optional Parameters
data
- The data of the user you want. You can select one from:- id
- username
- scratchteam
- joined
- status
- bio
- country
- loves
- favorites
- comments
- views
- followers
- following
- messages
- More optional parameters and styling options
Examples
Studio Badge
Endpoint URL: https://scratch-stats-badge.sid72020123.repl.co/studio?id=:id
Required Parameters
id
- The ID of studio
Optional Parameters
data
- The data of the studio you want. You can select one from:- id
- title
- comments
- followers
- managers
- projects
- More optional parameters and styling options
Examples
Project Badge
Endpoint URL: https://scratch-stats-badge.sid72020123.repl.co/project?id=:id
Required Parameters
id
- The ID of project
Optional Parameters
data
- The data of the project you want. You can select one from:- id
- title
- views
- loves
- favorites
- remixes
- More optional parameters and styling options
Examples
Styles-and-Labels
Try the following parameters for style and labels:
label
- The label or the main titlecolor
- The background color of the data part. You can give any color and hex values(but without the '#' sign)label_color
- The background color of the label part. You can give any color and hex values(but without the '#' sign)style
- The style of the badge. You can set it to anyone from:flat
,plastic
,flat-square
,for-the-badge
,social
Note
Some of the data is taken from Scratch DB made by DatOneLefty on Scratch. The data is not always updated.
Credits
This project is made by Sid72020123 on Scratch. Scratch DB made by DatOneLefty on Scratch.
Main credits to Shields.io for the badges and their styles.