Hi @kenpeter,
Please see my reply here:
Also, you can use the following repo as reference:
Running accountdump.php
will produce an XLSX with all the entries, or of entries matching certain criteria.
See https://github.com/kaltura/Kaltura-Library-Export-Excel/#configurations-and-running-the-script
https://github.com/kaltura/Kaltura-Library-Export-Excel/blob/master/accountdump.php#L13