What the checker reads
X has an About this account screen on every public profile. It lists where the account is based, how it connects, when it joined, and how many times its username has changed. The checker reads that screen through Weir's API for up to 10 accounts at once and puts the username facts first. For where an account is based, use the X account location checker, which reads the same screen.
Finding the old names
X does not publish them, so no tool can list them from X. Old names survive in archived copies of the profile, in replies that still mention the old handle, and in posts by other people. Our guide to Twitter username history shows each method with an example. To get the permanent ID of an account first, use the Twitter ID finder.