Python Export Json string into a CSV

Hi i was able to successfully export all user data using
However, i need some help exporting this data into a csv using python

Can you share more details on what you need help with? Do you have any code samples you can share?

Assuming that API responds with JSON, you should be able to use python to export to CSV following a pattern similar to what is described here: Convert JSON to CSV in Python - GeeksforGeeks