API & Kaltura media player in D2L

Hello,
Is it possible to add and run API in the Kaltura video embedded in D2L? Use Kaltura API call to get caption URL by video ID? Like in D2L video media HTML editing, add API call?

Thank you,
Phyllis