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 MarkdownGet 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 | nullAccounts 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 | nullImages 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 | nullOf 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 | nullThe 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 | nullViews 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 | nullCustom 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 | nullWhen they were counted; null before the first count.
curl 'https://api.hematite.gg/v1/stats'{
"users": 0,
"images": 0,
"uploads7d": 0,
"storage": 0,
"views7d": 0,
"domains": 0,
"countedAt": "2026-11-10T18:24:00.000Z"
}