How to export data obtained via the API in CSV?

Hello!
There is an example of receiving data via the API looks like this
curl -H 'ecom-auth: ...' \
 -H 'Content-Type: application/json' \
 https://api2.xxxxx.com/integrat/v1/products


The answer gives a list of products.
Tell me how to get the answer in the form of links to a CSV file of products?
Preferably with an example....
I would be very grateful!
March 19th 20 at 08:34
1 answer
March 19th 20 at 08:36
1. To obtain the data via the API.
2. To perform the parsing of JSON by putting the list of products in a variable of type list.
3. To open a CSV file and write each element of the list of goods to serialize as a string in CSV format.
4. Upload to some server (HTTP, FTP) and get the path to the file.
Thank you, now a little more clear about that API....
Or maybe there is ready solution, Converter of some sort , do you know?
Here's an example that won't work ? https://json-csv.com/api - favian_Yo commented on March 19th 20 at 08:39
@favian_Yo, then https://json-csv.com/csvshortcuts - Maria.Tillm commented on March 19th 20 at 08:42

Find more questions by tags CSVJSONAPI