Templates Plugins Courses

Need Help with this!

Hello, would love some help with this if anyone has any suggestions. Need Help creating an array of data to send to an API endpoint!