Twitter closed API access long before musk arrived. It used to be fully open. I think perhaps they were trying to make the API a little less useless, but it would never return to its full glory (maybe for data ingest, but certainly not read).
Any platform that relies on serving ads will not have a full-featured API, because it's an obvious way to ignore ads (and maintaining the API costs you money).
API isn't free.