Is it possible to write code to call an API to do that? Yes.
Should it be done? No.
If there is any appearance of people getting together to coordinate actions to move stock prices in a certain way, that becomes the textbook definition of collusion and market manipulation and will land them in hot water, so I would advise against it.
Right now it may feel like an uphill battle, but this is moving in favor of the retail investor. Just keep doing what you’re doing….buy and hodl. It does take time but this way safe and effective.
Be careful apes. Don’t put yourselves or others in dangerous situations that can land you in legal trouble.