This is the correct approach. If these American companies want to operate in our countries, and maintain their positions as our primary information channels, then they need to obey laws.
We need open APIs, transparent algorithms, and above all, accountability.