All Projects → spencerwooo → Substats

spencerwooo / Substats

Licence: mit
📈📉 Shhhh...we're counting your subscribers!

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Substats

Kanye.rest
🌊 A free REST API for random Kanye West quotes (Kanye as a Service)
Stars: ✭ 558 (+40.91%)
Mutual labels:  api, cloudflare
Bbc Rss
BBC iPlayer programmes / Nitro API to RSS adaptor app
Stars: ✭ 10 (-97.47%)
Mutual labels:  api, rss
Datafire
A framework for building integrations and APIs
Stars: ✭ 487 (+22.98%)
Mutual labels:  api, rss
Cloudflare Cli
CLI utility managing CloudFlare services using CloudFlare API
Stars: ✭ 61 (-84.6%)
Mutual labels:  api, cloudflare
Flaresolverr
Proxy server to bypass Cloudflare protection
Stars: ✭ 241 (-39.14%)
Mutual labels:  api, cloudflare
Graphql Starter
💥 Monorepo template (seed project) pre-configured with GraphQL API, PostgreSQL, React, Relay, and Material UI.
Stars: ✭ 3,377 (+752.78%)
Mutual labels:  api, cloudflare
Jackett
API Support for your favorite torrent trackers
Stars: ✭ 6,690 (+1589.39%)
Mutual labels:  api, rss
Cloudflare
CloudFlare API - PHP
Stars: ✭ 192 (-51.52%)
Mutual labels:  api, cloudflare
Cfpmp
Cloudflare Partner Management Panel
Stars: ✭ 194 (-51.01%)
Mutual labels:  api, cloudflare
inkrss
Notify when rss feeds are updated | RSS 更新通知
Stars: ✭ 234 (-40.91%)
Mutual labels:  rss, cloudflare
Api.rss
RSS as RESTful. This service allows you to transform RSS feed into an awesome API.
Stars: ✭ 340 (-14.14%)
Mutual labels:  api, rss
Node Vault
Client for HashiCorp's Vault
Stars: ✭ 391 (-1.26%)
Mutual labels:  api
Cordova Plugin Badge
Access and modify badge numbers
Stars: ✭ 386 (-2.53%)
Mutual labels:  badge
Easy To Rss
🚀 Chrome/Firefox Extension to retreive RSS feeds URLs from WebSite, RSSHub supported
Stars: ✭ 386 (-2.53%)
Mutual labels:  rss
Awesome Ocelot
A curated list of awesome ocelot books, courses, trainings, conference talks, blogs and most inspiring open source contributors
Stars: ✭ 386 (-2.53%)
Mutual labels:  api
Diet
A tiny, fast and modular node.js web framework. Good for making fast & scalable apps and apis.
Stars: ✭ 394 (-0.51%)
Mutual labels:  api
Flutter badges
A flutter package for creating badges.
Stars: ✭ 391 (-1.26%)
Mutual labels:  badge
Lib
Autocode CLI and standard library tooling
Stars: ✭ 3,773 (+852.78%)
Mutual labels:  api
Polr
🚡 A modern, powerful, and robust URL shortener
Stars: ✭ 4,147 (+947.22%)
Mutual labels:  api
Figma To Google Slides
Convert Figma frames into a Google Slides presentation 🍭
Stars: ✭ 385 (-2.78%)
Mutual labels:  api
substats-logo
Serverless Function to Count How Many People are Subscribed to You in Your Favorite Services

Now on Cloudflare Workers Uptime Robot status Deploy Vercel

🚩 API endpoint · 🚦 Status monitor · 📖 Documentation

🚀 NEW: Substats now takes advantage of Cloudflare Workers' caching mechanism, thereby making itself faster than ever. You should see huge performance gains in terms of load time and responsiveness. Huge shout out to @chawyehsu who made this possible!

Table of contents

Why I did this?

I initially wanted to combine the subscriber numbers of Feedly and Inoreader — two of the most popular RSS providers, to calculate how many people are subscribed to my blog's RSS. Then it occured to me: I could actually make this into a "Hub", where you can provide a service name, a query key, and out comes the total subscribers of all your services...Hence, I proudly introduce: Substats!

PROs

  • 🧊 Serverless deployment, minimum overhead (powered by Cloudflare)
  • 🚀 Ultra-fast reachablility for all services (even in mainland China!)
  • 🎈 Simple integration, easy-to-use API with nice badges provided by Shields.io

Further reading

Examples

📖 For a detailed documentation on the query format, please see: Docs | Substats Query format.

API endpoint

🚦 Only 'GET' requests are handled in order to integrate with badges.
https://api.spencerwoo.com/substats/

Single query

You can make a single query to request your RSS subscribers on Feedly.

GET /?source=feedly&queryKey=https://blog.spencerwoo.com/posts/index.xml

Which returns:

{ "status": 200, "data": { "totalSubs": 13, "subsInEachSource": { "feedly": 13 }, "failedSources": {} } }

You can then use the numbers in data.totalSubs in a dynamic badge:

Multiple sources with a single query string

GET /?source=feedly|inoreader|newsblur&queryKey=https://blog.spencerwoo.com/posts/index.xml

Which returns:

{
  "status": 200,
  "data": {
    "totalSubs": 49,
    "subsInEachSource": {
      "feedly": 17,
      "inoreader": 29,
      "newsblur": 3
    },
    "failedSources": {}
  }
}

Enter the badge! (NewsBlur is too slow to load, below is a static badge for demo purposes.)

Multiple queries

GET /?source=telegram&queryKey=realSpencerWoo&source=sspai&queryKey=spencerwoo&source=twitter&queryKey=realSpencerWoo

Which returns:

{
  "status": 200,
  "data": {
    "totalSubs": 1552,
    "subsInEachSource": {
      "telegram": 786,
      "sspai": 638,
      "twitter": 128
    },
    "failedSources": {}
  }
}

And of course, our badges!

Supported services

📖 For a detailed documentation on the API request rules of each service, please see: Docs | Substats API Details.

afdian bilibili coolapk feedly Feeds Pub github inoreader instagram jike medium neteaseMusic newsblur reddit sspai steam telegram twitter unsplash weibo Wikipedia (zh) zhihu

Contributing

Development

This is a serverless function deployed on Cloudflare Workers. Please check: Docs | How to contribute if you want to contribute.

Contributors

This project exists thanks to all the people who contribute.

Sponsoring

Thank you for considering donations and sponoring our project. We currently support sponsoring via Open Collective.

Backers Sponsors
Support this project by becoming a backer. Thank you to all our backers! 🙏 [Become a backer] Support this project by becoming a sponsor. Your logo will show up here with a link to your website. 🌏 [Become a sponsor]

对于国内用户,我们支持直接通过微信和支付宝进行小额赞助!

微信支付 支付宝支付
微信支付 支付宝支付

您也可以利用「爱发电」来对我进行支持!

爱发电

Disclaimer

All APIs used in this project are by no means in any relationship with the original content provider. APIs are subject to change. Your mileage may vary, so use this at your own risk.


📈📉 Substats ©Spencer Woo. Released under the MIT License.

Authored and maintained by Spencer Woo.

@Portfolio · @Blog · @GitHub

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].