The Geo-location API allows websites to get a user's current location in HTML5 after getting their approval, which is more accurate for devices with GPS like smartphones. The main method is getCurrentPosition, which retrieves the current geographical position of the user's device by calling navigator.geolocation.getCurrentPosition().