Blog badges


#1

Was messing around with shields.io this morning, and it’s really easy to create badges for your blog with our API.

In both of the examples, just replace api%2Fcollections%2Fblog with api%2Fcollections%2Fyourblogname to get your stats.

https://img.shields.io/badge/dynamic/json.svg?label=Write.as&url=https%3A%2F%2Fwrite.as%2Fapi%2Fcollections%2Fblog&query=%24.data.total_posts&suffix=%20posts

https://img.shields.io/badge/dynamic/json.svg?label=Write.as&url=https%3A%2F%2Fwrite.as%2Fapi%2Fcollections%2Fblog&query=%24.data.views&colorB=1283c4&suffix=%20views