developers / API reference
Utilities & Others API
The Utilities & Others API: ping the API to check it answers, with every endpoint's fields, who may call it, its rate limit and a curl example.
This page as MarkdownPing the server
get/ping
- 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.
Query
delaynumberThe delay in milliseconds to wait before returning the response
At most 10000, more than 0
Response
Returns a "pong".
curl 'https://api.hematite.gg/v1/ping'"pong"Report something on hematite (docs/concepts/14-reports-and-moderation.md §2, §3; Art
post/reports
16 DSA): an image, a folder or a profile (or one of its parts), found from the address it was made from: a share page on any domain, a file on the cdn, a profile. Signed in or out: signed out, a `name` and an `email` for every reason but child sexual abuse material and a threat to someone's life. One report a person and thing: a second answers with the first (`duplicate: true`) and adds nothing. A receipt goes to the reporter's address at once (at most three a day to one address). A report hides nothing by itself: a person at hematite looks at it. Signed in, 10 an hour and 30 a day; signed out, 5 an hour from one address. Never an app's: a report is a person's, made on hematite.
- Needs
- No token needed
- Anyone may call it.
- Rate limit
- 30 an hour
- Per address, for this endpoint.
- App scope
- Not open to apps
- A report is a person's, made on hematite. Nor to API keys.
Body
locationstringrequiredThe address it's reported from: a share page (on any domain), a file on the cdn, a profile.
1 to 512 characters
partenum | nullA profile's part, when only that's wrong.
One of
namepicturebiocategoryenumrequiredOne of
IllegalPornographyHarassmentSpamImpersonationMisleadingPreviewShouldBeNsfwSomethingElselegalKindenum | nullFor Illegal: which kind.
One of
ChildSexualAbuseThreatToLifeTerrorismHatePrivacyFraudCopyrightOtherIllegalexplanationstringWhat's wrong, in the reporter's words: required for illegal content but child sexual abuse material, impersonation (who) and something else.
At most 2000 characters
namestring | nullemailstring | nullgoodFaithboolean"I believe what I've said is accurate and complete": required for illegal content but child sexual abuse material.
Response
Returns an object with these fields:
idintegerThe report's number, R-<id>
duplicatebooleanYou'd reported it already: this is your first report
curl -X POST 'https://api.hematite.gg/v1/reports' \
-H "Content-Type: application/json" \
-d '{"location":"string","category":"Illegal"}'{
"id": 1,
"duplicate": false
}What a hematite address is, for `/report` (docs/concepts/14-reports-and-moderation.md §2): a share page on any domain, a file on the cdn, a profile
get/reports/resolve
Only what the address shows to whoever asks: a private image's share, a held image or anything gone answers `found: false`; an uploader the image hides, or only a file's link, names nobody. Never a title or a picture.
- Needs
- No token needed
- Anyone may call it.
- Rate limit
- 60 a minute
- Per address, for this endpoint.
- App scope
- Not open to apps
- A report is a person's, made on hematite. Nor to API keys.
Query
urlstringrequiredThe address, as it was copied
1 to 512 characters
Response
Returns an any.
curl 'https://api.hematite.gg/v1/reports/resolve?url=https%3A%2F%2Fcdn.hematite.gg%2Fimages%2Fa1b2c3d4e5f6.png'null