Skip to content
Dashboard

developers / API reference

Stats API

The Stats API: hematite's public counts as JSON, and as badges for a README, with every endpoint's fields, who may call it, its rate limit and a curl example.

This page as Markdown

Get hematite's public counts: accounts, images, uploads and views of the last 7 days, storage and custom domains

get/stats

Counted every 15 minutes, never per request, each rounded down to two significant digits, so every number holds as a floor. Before the first count, every number and `countedAt` are null. Each is also a badge for a README, the same value as an SVG in shields.io's flat style: `/stats/users.svg`, `images.svg`, `uploads.svg`, `storage.svg`, `views.svg` and `domains.svg`, kept 15 minutes (`Cache-Control: public, max-age=900`) with an ETag.

Needs
No token needed
Anyone may call it.
Rate limit
120 a minute
Per address, for this endpoint.
App scope
Any app token
No scope needed.

Response

Returns an object with these fields:

  • usersinteger | null

    Accounts with a confirmed email. Rounded down to two significant digits (1,250 is 1,200), as its badge shows it; null before the first count.

  • imagesinteger | null

    Images hosted, private ones included; deleted ones aren't. Rounded down to two significant digits (1,250 is 1,200), as its badge shows it; null before the first count.

  • uploads7dinteger | null

    Of those, the ones uploaded in the 7 days before countedAt. Rounded down to two significant digits (1,250 is 1,200), as its badge shows it; null before the first count.

  • storageinteger | null

    The images' bytes, as a plan's storage limit counts them. Rounded down to two significant digits (1,250 is 1,200), as its badge shows it; null before the first count.

  • views7dinteger | null

    Views of images and folders in the 7 days before countedAt, each address once per item and week. Rounded down to two significant digits (1,250 is 1,200), as its badge shows it; null before the first count.

  • domainsinteger | null

    Custom domains connected and working, hematite's own left out. Rounded down to two significant digits (1,250 is 1,200), as its badge shows it; null before the first count.

  • countedAtdate-time | null

    When they were counted; null before the first count.

Request
curl 'https://api.hematite.gg/v1/stats'
Example data
{
  "users": 0,
  "images": 0,
  "uploads7d": 0,
  "storage": 0,
  "views7d": 0,
  "domains": 0,
  "countedAt": "2026-11-10T18:24:00.000Z"
}