API and terminal

Everything on the site works from a terminal. curl gets plain text, so you can split a word without opening a browser:

$ curl hackna.me/dancing
$ curl hackna.me/check/danci.ng

JSON

The JSON API lives under /api/v1/. Free endpoints share the same hourly limits as the site: 20 registry checks per hour, answers we already have in cache don't count.

$ curl https://hackna.me/api/v1/hacks/dancing
$ curl https://hackna.me/api/v1/check/danci.ng
$ curl https://hackna.me/api/v1/tlds/ng

status is taken, free, unknown, or null when nobody has asked the registry yet. basis says why.

Errors

Errors come back as {"error": "...", "message": "..."}: bad_key (401), pass_required (402), not_found (404), invalid_word (422), rate_limited (429, with Retry-After), use_https (400).