That’s what @Frank419 said yes, and what the article says too.
We provide website hosting only, i.e. things that produce pages that are viewed through web browsers. That security system is intended to keep out bad bots, but as a side effect, prevents the hosting of APIs with us. But since we provide website hosting, that’s an acceptable side effect.
And to be very clear, which is something the article says, this system is only present on free hosting. Although premium hosting is also primarily intended for websites, not APIs, there is nothing to technically prevent you from hosting APIs on premium hosting.
If that API needs to be accessed from anywhere other than your own website, then yes.
If you are looking to host an API to use with a Javascript frontend (like React or Vue), then you can host it with us, as long as the API and the main site are on the same hostname. In other words, if your website is on www.example.com, then the API must also be on www.example.com, or a subdirectory like www.example.com/api/. Hosting the API on api.example.com or example-api.com would not work.