The only way to get the experience of a unit currently is to pass a filter for every unit and record the amount of experience that was attempted to be added. This is sketchy and will interfere if any other library attempts to use an experience filter. It would be nice to have a native way to do this, as well as a way to get the experience required for the next levelup.