Yeah, if the API design prevents this, parsing HTML is about as hard. But I've seen a lot of cases where a single request will get you _all_ the data you could ever want, a lot of it not even rendered on the frontend, no need to deal with pagination or anything. Kinda full database access as long as you have an auth token, which any logged in user has.

those are the cases that make it into the news when someone reports the insecurity of a API they found, and then gets accused for breaking into the website or database.

there are many reasons to prefer SSR over SPA, but covering up incompetence should not be one of them. designing an API is not hard.