Perhaps the NSA could create an API and sell licenses to other countries? ;-)
In the Netherlands they ask for data about Dutch people via the NSA. Doing it this way they don't officially have direct access to the data so they don't need a warrant for it.