They're just querying the app store search API:
http://itunes.apple.com/search?entity=software&term=$APP...
This is the same search API that Apple uses for the App Store, and returns the same order and results as Kickfolio. The first result is usually correct, but you could always double check with the developer.
Example: http://itunes.apple.com/search?entity=software&term=Shar...