APIs fail differently from web pages. There's no HTML to hide behind, every endpoint is a documented door, and an attacker can script thousands of requests a minute against any of them.
OWASP keeps a separate Top 10 for exactly this, distinct from its main list for web applications. The current edition is the 2023 list, which is still the latest on OWASP's project page as I write this.
Each risk below gets a plain-English summary and a Node.js fix. The examples use Express 5, where a rejected promise in an async handler reaches your error handler automatically (on Express 4, wrap async handlers yourself).…