One way that these lawsuits work is that the social media sites copyright their posts. And any API that accesses them in way that the site doesn't want simply becomes a copyright violation machine. And you can sue for each separate violation. So archiving the 5,000 tweets of one account would be 5,000 violations that they can sue over and at that point these archiving tools don't have the money or legal muscle to fight this.
This was fought out over VHS copying of broadcast shows or movies through cable or satellite. Then another fight was over things like CD or DVD copying or emulation on computers. Now we have an internet that is actively fighting against users being able to simply "save as" any data that they want. There are legal precedents to copying data that almost always side with the users.
But now with meatballs like Musk, Bill Gates, Maxwell, Epstein, and others controlling the modern internet. It's getting more and more difficult to be able to control your own browser, computer, or simply save and copy data. Imagine being told in the 90s that the internet in the future would have armies of coders doing everything possible to disable stuff like "copy-paste" or "save as" from working in browsers or computers.