HN has unofficial write APIs, since they don't prevent cross-site request forgery. This enables HN apps that upvote/comment/post to work. Thanks, HN ;)
Your exemple is more a third-party API than an unofficial api as the one from this post.
The one from this post are self-hosted scrapper-wrapper library API.