Get data with API

Hello everyone,
how to get data in csv format via api?

None of the APIs provide data in CSV format. To get data in CSV format you could use the Data Exports feature within CommCare or use the CommCare Data Export Tool which will pull data from the APIs and translate it to CSV, Excel, SQL etc.