fivebar API
API by fivebar · rest
The sites you can read, at /api/sites, and the figures each one's dashboard shows, as JSON: everything over a range at /stats, one pane in full at its own name, and how many are on the site now at /realtime. Each address answers a GET, and /api/sites a POST too, which adds a site; any other method is a 405 whose body is {"error": "method not allowed"}, with Allow naming those it takes. A parameter the API cannot read is never an error: a range it does not know is the last 7 days, a filter by a dimension it does not know, or past the sixth, is left out, and a number out of bounds is the nearest it takes. Every answer, error or not, is JSON sent with Cache-Control: no-store. The guide is https://fiveb.ar/docs/api.
Endpoint: https://fiveb.ar/
Verification: observed. Source: crawl.
Capabilities (6)
- The sites you can read
- Add a site to your account
- Whether fivebar is installed and counting on a site
- How many are on the site now
- Everything the dashboard shows over a range
- One pane in full a page of rows at a time