TikTok is introducing a data portability API to help comply with new European regulations designed to rein in Big Tech.