Kimai itself offers the API for importing data.
The other option is the importer plugin.
There is a dedicated chapter about migrating data from Kimai v1.
See the importer plugin documentation
See the importer plugin documentation
See the importer plugin documentation
See the importer plugin documentation
See the importer plugin documentation