I fixed the issue, I can now get the data correctly, I just need to format it