

It can protect APIs as much as any other URL. Or more simply you could disallow any unauthenticated API access in gitea or at the reverse proxy level?
cannot protect against bot traffic coming from many different residential proxies
It can block anything that doesn’t pass the proof-of-work/JS challenge. Most bots don’t interpret JS.
unattended-upgrades