Is there an API for loading VST 2 saved data into VST 3 plugin

Sure, developers need to be aware of this. But they usually are, because this situation should only happen if the developer explicitly designed the plug-in to replace the VST2.x version of it by supplying the same UID for the VST3 and VST2 version.

Cheers,
Arne