How to get local Participant ID with Iframe API?

I need a way to get the ID of the local participant, as I need to pass this data on to an external tool that monitors their activities. I am currently using the getParticipantsInfo method and filtering its content, but I believe it is an unnecessary cost, as user information must be stored in some easily accessible location.

I thank the community, the work that is being done here is incredible!

You definitely get it if you listen to videoConferenceJoined but I’m wondering if you found a way to query it beyond that. One dumb idea I had was to add another item to the api object variable, something like api.localID or something. I guess that would work as long as localID isn’t already a key in the api variable.

I am using videoConferenceJoined to get Id and storing in database and use it when required.