How do I create an array with specific data from an api request?