The location data is visible in a new "about this account" tab which appears on every profile.
It also contains a warning that the location data may be affected by recent travel, temporary relocation and the use of virtual private networks (VPNs).
However, according to X's head of product, Nikita Bier, the information is 99% accurate.
On Saturday, Trump shared on Truth Social a screenshot of a post from an X account called "TRUMP_ARMY_" celebrating a Supreme Court ruling it says will allow the president to deport criminals to El Salvador.
This account has gathered more than half a million followers, including a senior Republican senator.
But X's data has revealed the account is based in India and the username changed four times since March 2022, the last of which was in July 2022.